curl --request GET \
--url https://api.companyenrich.com/v2/batches/{id}/results \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.companyenrich.com/v2/batches/{id}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.companyenrich.com/v2/batches/{id}/results"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"index": 123,
"state": "pending",
"credits": 123,
"customId": "<string>",
"statusCode": 123,
"contentType": "<string>",
"body": "<unknown>",
"error": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Download raw batch results
Streams a fixed snapshot of eligible HTTP outcomes as NDJSON, one record per line, in input order. Unfinished and unsettled results are excluded. Requires the batch owner’s credentials, or the signature from rawResultsUrl in a status response.
curl --request GET \
--url https://api.companyenrich.com/v2/batches/{id}/results \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.companyenrich.com/v2/batches/{id}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.companyenrich.com/v2/batches/{id}/results"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"index": 123,
"state": "pending",
"credits": 123,
"customId": "<string>",
"statusCode": 123,
"contentType": "<string>",
"body": "<unknown>",
"error": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
API Token used for authentication. Example: "Authorization: Bearer {token}"
Path Parameters
Query Parameters
The signature from a download URL in a status response. Not needed with the batch owner's credentials.
1024Response
OK
The zero-based position of this request in the batch.
The recorded outcome of the request.
pending, running, succeeded, failed, unknown, cancelled The charged cost of this request, in user-visible credits.
The original input domain for a company enrichment batch.
The HTTP response status, or null if no response was recorded.
The response content type, when a response was recorded.
The saved endpoint response body, without task-specific projection.
The execution error, if any.