APIs & Integrations

testuser27
Participant

How to show next page record using api

Hello,
I have implemented contact search for specific property value using CRM api

POST https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=yourhubspotapi

{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "referring_office_test",
          "operator": "EQ",
          "value": "61693"
        }
      ]
    }
  ],
  "limit": 4,
  "query": "",
  "sorts": [
    {
      "propertyName": "lastmodifieddate",
      "direction": "DESCENDING"
    }
  ],
  "paging": {
        "next": {
            "after": "8"
        },
        "prev": null
    }
}

As i mentioned  above limit was set successfully but i want fetch next page records  using same api . 
FY: I have one php script which in which i have to fetch this records and implement pagination for same.
 Please help me to resolve this issue 

0 Upvotes
1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

How to show next page record using api

Hello @testuser27 

Thanks for the question, you are going to want to create a loop. 

@quentin_lamamy is a wiz at this stuff.  Perhaps he can guide you a bit here 😄

0 Upvotes