Employee Data
...
Clean Employee API
Endpoints

Bulk Collect

12min

Discover the Bulk API (Bulk Collect) capabilities and explore potential uses for efficiently retrieving Clean Employee data in bulk.

Bulk Collect requests' retrieved profiles limit is 10k. Requests that exceed the limit will be rejected.

Bulk API (Bulk Collect) is an extension of Clean Employee API and includes two POST and two GET endpoints. Obtain Clean Employee data in bulk using either the ID list or the Elasticsearch DSL schema.

Endpoints

Function

Endpoint

POST

/v1/professional_network/clean_member/bulk_collect/id_file

POST

/v1/professional_network/clean_member/bulk_collect/es_dsl

GET

/v1/bulk_collect/{data_request_id}/files

GET

/v1/bulk_collect/{data_request_id}/files/{file_name}

Credits and tokens

Use the same token you have received for your Clean Employee API usage. Your credits for Clean Employee API will also apply to Bulk API data collection requests.

The credits are deducted after making the POST request.

The number of credits deducted from your account is based on the downloadable file size. For instance, collecting 100 profiles will consume 100 credits.

Test POST requests using Clean data API to see how many credits the request will consume.

The returned record count will show how many credits will be deducted for the Bulk Collect query.

Limiting returned record count

Include the parameter "limit": int to control the number of records returned by your queries in /v1/professional_network/clean_member/bulk_collect/id_file and /v1/professional_network/clean_member/bulk_collect/es_dsl endpoints. This parameter is entirely optional; however, use it to make sure you don't use too many credits with your Bulk API queries.

Input the exact number of records you want to be returned, or delete the parameter if you don't need a set limit for your request.

ES DSL


Authorization

To start using our API, you need a (JWT) token. Your account manager or sales will generate the token for you upon your request for the API plan.

Use the token to authorize and begin your queries. If you are unsure about the process, check out the tutorials on authorization located at the bottom of this section for guidance.



All requests to the Bulk API must contain an Authorization header consisting of aĀ BearerĀ authentication string and theĀ JSON Web TokenĀ (JWT).

All Clean data API requests must be made overĀ HTTPS. Requests made overĀ HTTP will fail.

Use any API-compatible tool to authorize and start querying in the API. If you're unsure where to begin, check out the cURL authorization tutorials below:

Rate limits

Bulk Collect endpoints have limited requests allowed per client's API token per second.

Function

Endpoint

Rate limit

POST

/v1/professional_network/clean_member/bulk_collect/id_file

27 requests per second

POST

/v1/professional_network/clean_member/bulk_collect/es_dsl

27 requests per second

GET

/v1/bulk_collect/{data_request_id}/files

27 requests per second

GET

/v1/bulk_collect/{data_request_id}/files/{file_name}

27 requests per second

Webhooks

POST endpoints allow you to add webhooks and get notified when your data request is ready.

ES DSL template
ID file cURL template


Keep in mind that webhook_url is optional.

How to use the API?

Check the endpoint usage tutorials in the following articles: