Use this example to paginate through search results. The first request returns a next_cursor value that you pass in subsequent requests.
API reference: Search person
First page
Request (curl)
Expected response
curl --request POST \
--url https://api.crustdata.com/person/search \
--header 'authorization: Bearer YOUR_API_KEY' \
--header 'content-type: application/json' \
--header 'x-api-version: 2025-11-01' \
--data '{
"filters": {
"field": "basic_profile.location.country",
"type": "=",
"value": "United States"
},
"limit": 2
}'
Next page
Pass the next_cursor from the previous response to get the next page.
curl --request POST \
--url https://api.crustdata.com/person/search \
--header 'authorization: Bearer YOUR_API_KEY' \
--header 'content-type: application/json' \
--header 'x-api-version: 2025-11-01' \
--data '{
"filters": {
"field": "basic_profile.location.country",
"type": "=",
"value": "United States"
},
"limit": 2,
"cursor": "H4sIAFYRoWkC_xXMMQ7CMAxA0atU..."
}'
When next_cursor is null in the response, there are no more pages to fetch.