CRM

DA8
Membre

Association of companies with contacts

Résolue

Hey @PamCotton,  Thanks for your response it is really helpfull. I found this API endpoint https://api.hubapi.com/crm/v4/associations/{fromObjectType}/{toObjectType}/batch/read for associtaion of contacts. But my further question is in this API, is there any limit of result? Because i found "after" field here but not found any limit. i think it is retriving all records depends on input id

0 Votes
2 Solutions acceptées
alicemorgan3303
Solution
Membre

Association of companies with contacts

Résolue

Hi @PamCotton, I appreciate your helpful response! Regarding the API endpoint you mentioned for associating contacts, it's great that you found it. To answer your question, there is indeed a limit on the number of results returned by the API. Typically, HubSpot APIs have a default limit (often around 100) on the number of records returned in a single request, but you can use pagination to retrieve additional results.

The "after" field you mentioned is used for pagination, allowing you to fetch the next set of records. If you need to retrieve more records, you would include the "after" parameter in your subsequent requests to continue from where the last batch left off. Always check the API documentation for specific details on pagination limits and handling results! Let me know if you have any more questions!

Voir la solution dans l'envoi d'origine

0 Votes
himanshurauthan
Solution
Leader d'opinion | Partenaire solutions Elite
Leader d'opinion | Partenaire solutions Elite

Association of companies with contacts

Résolue

Hi @DA8

 

When using the HubSpot API endpoint for associations (https://api.hubapi.com/crm/v4/associations/{fromObjectType}/{toObjectType}/batch/read), keep in mind the following key points: HubSpot APIs generally limit results to a maximum of 100 records per request, though this may not be explicitly stated. The after field in the response indicates pagination, allowing you to retrieve additional results by using the provided after value in subsequent requests. You can specify multiple input IDs in the request body to get associations for those specific IDs. use this https://api.hubapi.com/crm/v3/objects/contacts?limit=100&archived=falsev Accordingly you can add the limit, take the reference https://developers.hubspot.com/docs/api/crm/contacts

 

Best regards!

Digital Marketing & Inbound Expert In Growth Hacking Technology

Voir la solution dans l'envoi d'origine

0 Votes
2 Réponses
himanshurauthan
Solution
Leader d'opinion | Partenaire solutions Elite
Leader d'opinion | Partenaire solutions Elite

Association of companies with contacts

Résolue

Hi @DA8

 

When using the HubSpot API endpoint for associations (https://api.hubapi.com/crm/v4/associations/{fromObjectType}/{toObjectType}/batch/read), keep in mind the following key points: HubSpot APIs generally limit results to a maximum of 100 records per request, though this may not be explicitly stated. The after field in the response indicates pagination, allowing you to retrieve additional results by using the provided after value in subsequent requests. You can specify multiple input IDs in the request body to get associations for those specific IDs. use this https://api.hubapi.com/crm/v3/objects/contacts?limit=100&archived=falsev Accordingly you can add the limit, take the reference https://developers.hubspot.com/docs/api/crm/contacts

 

Best regards!

Digital Marketing & Inbound Expert In Growth Hacking Technology
0 Votes
alicemorgan3303
Solution
Membre

Association of companies with contacts

Résolue

Hi @PamCotton, I appreciate your helpful response! Regarding the API endpoint you mentioned for associating contacts, it's great that you found it. To answer your question, there is indeed a limit on the number of results returned by the API. Typically, HubSpot APIs have a default limit (often around 100) on the number of records returned in a single request, but you can use pagination to retrieve additional results.

The "after" field you mentioned is used for pagination, allowing you to fetch the next set of records. If you need to retrieve more records, you would include the "after" parameter in your subsequent requests to continue from where the last batch left off. Always check the API documentation for specific details on pagination limits and handling results! Let me know if you have any more questions!

0 Votes