CRM

DA8
Member

Association of companies with contacts

SOLVE

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 Upvotes
2 Accepted solutions
alicemorgan3303
Solution
Member

Association of companies with contacts

SOLVE

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!

View solution in original post

0 Upvotes
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Association of companies with contacts

SOLVE

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

View solution in original post

0 Upvotes
2 Replies 2
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Association of companies with contacts

SOLVE

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 Upvotes
alicemorgan3303
Solution
Member

Association of companies with contacts

SOLVE

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 Upvotes