Pagination

Overview

General information about the pagination is listed in Results Pagination topic.

Here you can find:

Examples of pagination usage with cURL requests.

Using pagination in cURL requests

This tutorial requires prior knowledge of compiling and executing POST requests in Base Employee API.

Use parameter x-next-page-after to retrieve a second page of IDs.

  1. Navigate to the Headers section and click it:

  1. Find the following information: – x-next-page-afterx-total-pagesx-total-results

  2. Add parameter ?after={x-next-page-after} to the POST request to see the next results page:

Pagination example
curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/employee_base/search/filter?after="2024-05-20 15:35:28",40513386' \
  -H 'accept: application/json' \
  -H 'apikey: {API Key}' \
  -H 'Content-Type: application/json' \
  -d '{
  "updated_at_gte": "2022-05-26 12:41:10",
  "certification_title": "Data Processing",
  "experience_title": "python developer"
}'
  1. Execute the request, and you will see the next page in the Body section:

[
1000,
1001,
3000,
4004
]

Limiting search results per page

Query parameter ?items_per_page={int} allows you to specify the number of results retrieved per Search results page. The current limit is 1,000. Thus, this parameter lets you set a smaller limit value for the results page.

Items per page
curl -X 'POST' \
'https://api.coresignal.com/cdapi/v2/employee_base/search/filter?items_per_page=250' \
  -H 'accept: application/json' \
  -H 'apikey: {API Key}' \
  -H 'Content-Type: application/json' \
  -d '{
  "updated_at_gte": "2022-05-26 12:41:10",
  "certification_title": "Data Processing",
  "experience_title": "python developer"
}'

Last updated

Was this helpful?