Pagination
Pagination information for the /v1/professional_network/employee/search/es_dsl endpoint.
Examples of pagination usage with cURL requests.
This tutorial requires prior knowledge of how to compile POST requests in Employee API.
Use parameterx-next-page-after to retrieve a second page of IDs.
- Navigate to the Headers section to the right of the (response) Body:
2. Click on the Headers section.
You will need information from x-next-page-after , x-total-pages, and x-total-results lines.
- x-next-page-after displays the last ID on the page.
- x-total-pages lists the total number of pages with ID results.
- x-total-resultsshows the total number of IDs returned by your search.
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.
All personal/company information mentioned within this context is entirely fictional and is solely intended for illustrative purposes.
Pagination using ID sorting 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.