Employee API
...
Endpoints
Bulk Collect

GET Requests

12min

Overview

Send a GET request to each of the specified GET endpoints to retrieve employee data in bulk:

  1. Make a query in the /v1/bulk_collect/{data_request_id}/files endpoint to see the status of your data request. Collect the file name to use further.
  2. Collect the data request ID and the file name. Make a query in the /v1/bulk_collect/{data_request_id}/files/{file_name} endpoint and download the job posting data in a JSON.gz file.

You can download the prepared dataset as often as you like within 30 days of the query submission.



Instructions

GET the file name

Send a GET request to the endpoint /v1/bulk_collect/{data_request_id}/files to see the status of your data request.

Collect the file name for further usage in request to the /v1/bulk_collect/{data_request_id}/files/{file_name} endpoint.

Endpoint usage

  • Take the data request ID (obtained from any of the job POST endpoints).
  • Paste it in the following cURL request instead of {request_id}:
Request body template

  • Paste your Employee API token instead of {JWT}.
  • Import the cURL request to any API-compatible application.
  • Send the request.
  • If you do not see a file name, the data request is not ready. Send the request again until you can see the file name.
  • Retrieve the file name.
File name

  • Each JSON.gz file contains a maximum of 10,000 JSON records. If you submitted more than 10,000 IDs or your filter request returned more than 10,000 profiles, you will see several file names.

Insufficient credits

The following message indicates that your query is too expensive.

Insufficient credits


Try adding "limit": {integer}parameter to your query.



GET the file

Request downloadable files by making a GET request to the /v1/bulk_collect/{data_request_id}/files/{file_name} endpoint.

Endpoint usage

  • Paste the data request ID and file name in the following template:
Request body template


The data request ID is obtained via the POST requests. The file name is obtained using the data request ID in the /v1/bulk_collect/{data_request_id}/files endpoint.

  • Insert your Employee API token instead of {JWT}.
  • Import the cURL to any API-compatible application.
  • If you use Postman, click the arrow down and select Send and Download:
Document image


Check for similar methods to retrieve the file using other API-compatible applications.