GET Requests
Last updated
Was this helpful?
Data type:
URLs:
All Multi-source, Clean and Base data
https://api.coresignal.com/cdapi/v2/data_requests/{data_request_id}/files https://api.coresignal.com/cdapi/v2/data_requests/{data_request_id}/files/{file_name}
Send a GET request to each of the specified GET endpoints to retrieve data in bulk:
Make a query in the /v2/data_requests/{data_request_id}/files endpoint to see the status of your data request. Collect the file name to use further.
Collect the data request ID and the file name. Make a query in the /v2/data_requests/{data_request_id}/files/{file_name} endpoint and download the data in a JSON.gz file.
You can download the prepared dataset as many times as you like within 30 days of the query submission.
Send a GET request to the endpoint /v2/data_requests/{data_request_id}/files to see the status of your data request.
Take the data request ID (obtained from any of the POST endpoints). Paste it in the following cURL request instead of {request_id} and your API Key instead of {API Key}:
curl -X 'GET' \
'https://api.coresignal.com/cdapi/v2/data_requests/{data_request_id}/files' \
-H 'accept: application/json' \
-H 'apikey: {API Key}'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.
Each JSON.gz file contains a maximum of 10,000 JSON records. Requests that exceed the limit will be rejected.
The following message indicates that your query is too expensive.
Try adding "limit": {integer} parameter to your query.
Request downloadable files by making a GET request to the /v2/data_requests/{data_request_id}/files/{file_name} endpoint.
Paste the data request ID and file name in the following template. Use your API Key instead of {API Key}:
The data request ID is obtained via the POST requests. The file name is obtained using the data request ID in the /v2/data_requests/{data_request_id}/files endpoint.
Import the cURL to any API-compatible application.
Send the request
Download the data
Check for similar methods to retrieve the file using other API-compatible applications.
Last updated
Was this helpful?
Was this helpful?
{
"data_request_files": [
"json/part-00000-2c3d41c2-99c2-43ff-a39c-7ad7h63h7cd9-h000.json.gz"
]
}{
"detail": "Insufficient credits"
}curl -X 'GET' \
'https://api.coresignal.com/cdapi/v2/data_requests/{data_request_id}/files/{file_name}' \
-H 'accept: application/json' \
-H 'apikey: {API Key}'