Pagination
Pagination information for the /v1/professional_network/company/search/es_dsl endpoint.
Examples of pagination usage with cURL requests.
This tutorial requires prior knowledge of how to compile and execute POST requests in Company API.
Use parameterx-next-page-after to retrieve a second page of IDs.
- Navigate to the Headers section and click it:
2. Find the following information:
- x-next-page-after
- x-total-pages
- x-total-results
- x-next-page-after displays the last ID on the page.
- x-total-pages lists the total number of pages available for your search.
- x-total-resultsshows the total number of IDs available.
3. Add parameter ?after={last_ID} to the POST request to see the next results page:
4. Execute the request, and you will see the next page in the Body section:
Pagination, when sorting by ID, works the same way as pagination without sorting.
Pagination using score sorting has a different ID format. The format difference is seen by the x-next-page-after parameter.
The number preceding the comma is for the score, and the one after the score - is the last ID on the page.