This endpoint allows you to retrieve all results for a Bulk Job.
Endpoint
URL | |
---|---|
https://api.intricately.com/api/v2/bulk_jobs/<job_id>/results?size=10&from=0 | GET |
The results will be an array of Company Objects which you will need to page through using the size
and from
parameters.
Parameters
Parameter | Description |
---|---|
job_id | ID of the Bulk Job |
size | (Optional) Number of results per page. Default is 10 and maximum is 100. |
from | (Optional) Page start offset. Default is 0. |
Code Examples
cURL
curl -XGET https://api.intricately.com/api/v2/bulk_jobs/1234/results?size=10&from=0
-H "X-API-KEY: <YOUR_API_KEY>"
#Response:
{
"total": 3343,
"results": [
{
"shortname" : "nike",
"name" : "Nike",
"submitted_domain": "www.nike.com",
"domain": "nike.com",
"location" : {
"country_code" : "us",
"state" : "OR",
"country" : "United States",
"city" : "Beaverton",
"region_code" : "NA"
}
...,
}
},
{ ... }
]
}
Python
headers = { 'X-API-KEY': <YOUR_API_KEY> }
params = { 'size': 10, 'from': 0 }
job_id = 1234
request_url = "https://api.intricately.com/api/v2/bulk_jobs/{}/results".format(job_id)
r = requests.get(request_url, params=params, headers=headers)
json_response = r.json()
#Response:
{
"total": 3343,
"results": [
{
"shortname" : "nike",
"name" : "Nike",
"submitted_domain": "www.nike.com",
"domain": "nike.com",
"location" : {
"country_code" : "us",
"state" : "OR",
"country" : "United States",
"city" : "Beaverton",
"region_code" : "NA"
}
...,
}
},
{ ... }
]
}
Ruby
headers = { "X-API-KEY" => <YOUR_API_KEY>, content_type: :json, accept: :json }
job_id = 1234
request_url = "https://api.intricately.com/api/v2/bulk_jobs/#{job_id}/results"
RestClient.get request_url, headers
#Response:
{
"total": 3343,
"results": [
{
"shortname" : "nike",
"name" : "Nike",
"submitted_domain": "www.nike.com",
"domain": "nike.com",
"location" : {
"country_code" : "us",
"state" : "OR",
"country" : "United States",
"city" : "Beaverton",
"region_code" : "NA"
}
...,
}
},
{ ... }
]
}
Comments
0 comments
Article is closed for comments.