Using the since
parameter, you can retrieve data for companies whose data has changed since the time specified.
Endpoint
URL | Method |
---|---|
https://api.intricately.com/api/v2/bulk_jobs/<job_id>/results?since=<epoch_time> | GET |
For example, if you wanted data for companies whose data had changed after October 1st, 2017, your API request would be as follows.
https://api.intricately.com/api/v2/bulk_jobs/<job_id>/results?since=1506841200
Parameters
Parameter | Description |
---|---|
job_id | ID of the Bulk Job |
since | Epoch time of when the company data was last updated. |
Code Examples
cURL
curl -XGET https://api.intricately.com/api/v2/bulk_jobs/<job_id>/results?since=<epoch_time>
-H "X-API-KEY: <YOUR_API_KEY>"
#Response:
{
"page": 1,
"total": 200,
"results": [
{
"shortname" : "nike",
"name" : "Nike",
"location" : {
"country_code" : "us",
"state" : "OR",
"country" : "United States",
"city" : "Beaverton",
"region_code" : "NA"
},
"domain": "nike.com",
...,
}
},
{ ... }
]
}
Python
headers = { 'X-API-KEY': <YOUR_API_KEY> }
params = { 'since': '<epoch_time>' }
r = requests.get("https://api.intricately.com/api/v2/bulk_jobs/<job_id>/results", params=params, headers=headers)
json_response = r.json()
#Response:
{
"page": 1,
"total": 200,
"results": [
{
"shortname" : "nike",
"name" : "Nike",
"location" : {
"country_code" : "us",
"state" : "OR",
"country" : "United States",
"city" : "Beaverton",
"region_code" : "NA"
},
"domain": "nike.com",
...,
}
},
{ ... }
]
}
Ruby
headers = { "X-API-KEY" => <YOUR_API_KEY>, content_type: :json, accept: :json }
RestClient.get "https://api.intricately.com/api/v2/bulk_jobs/<job_id>/results?since=<epoch_time>", headers
#Response:
{
"page": 1,
"total": 200,
"results": [
{
"shortname" : "nike",
"name" : "Nike",
"location" : {
"country_code" : "us",
"state" : "OR",
"country" : "United States",
"city" : "Beaverton",
"region_code" : "NA"
},
"domain": "nike.com",
...,
}
},
{ ... }
]
}
Comments
0 comments
Please sign in to leave a comment.