V3 paging missing next link

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.

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,