APIs & Integrations

PPSimon
Member

V3 paging missing next link

SOLVE

Creating a search for companies

https://api.hubapi.com/crm/v3/objects/companies/search?&hapikey=
Documentation suggests I should get a link like 
"paging": {"next": {"after": "NTI1Cg%3D%3D","link": "?after=NTI1Cg%3D%3D"}

But get below

{"total":95,"results":[{"REDACTED"}],"paging":{"next":{"after":"10"}}}
How do I page based on this? Using Ansible but same results if I try python.
1 Accepted solution
JBeatty
Solution
Guide | Diamond Partner
Guide | Diamond Partner

V3 paging missing next link

SOLVE

Hi @PPSimon,


The paging.next.after value tells you what you should set the query parameter after to be. For example your like would go from:

https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=00000000-0000-0000-0000-000000000000

To this:

https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=00000000-0000-0000-0000-000000000000&after=100

 

Best,

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

View solution in original post

1 Reply 1
JBeatty
Solution
Guide | Diamond Partner
Guide | Diamond Partner

V3 paging missing next link

SOLVE

Hi @PPSimon,


The paging.next.after value tells you what you should set the query parameter after to be. For example your like would go from:

https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=00000000-0000-0000-0000-000000000000

To this:

https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=00000000-0000-0000-0000-000000000000&after=100

 

Best,

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk