APIs & Integrations

PPSimon
Membre

V3 paging missing next link

Résolue

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 Solution acceptée
JBeatty
Solution
Guide | Partenaire solutions Diamond
Guide | Partenaire solutions Diamond

V3 paging missing next link

Résolue

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

Voir la solution dans l'envoi d'origine

1 Réponse
JBeatty
Solution
Guide | Partenaire solutions Diamond
Guide | Partenaire solutions Diamond

V3 paging missing next link

Résolue

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