Use Asynchronous (batch) Target Company List Build Results to retrieve the result of a job submitted previously. You need to download the results from the URL returned in the response.
Endpoint
GET https://api.insideview.com/api/v1/target/companies/export/job/{jobId}/results
Request
HTTP Headers
Header Name | Type | Required | Description |
accessToken | String | Yes | Valid access token. See Authentication and Authorization Overview for more details. |
Accept | String | No | Selects the response's content type. Valid values are application/json and application/xml (default). |
URI Parameters
Parameter Name | Type | Required | Description |
jobId | String | Yes | Job ID |
Responses
Here are the major responses the API may return.
For details on the errors, please refer to the API Error Codes article.
HTTP 200
Returns either a JSON or XML data structure depending on the request Accept header.
application/json Example
{ "jobId": "s04eabq2bt0ncgpa1095", "jobType": "targetCompanySearchAsyncExport", "jobStatus": "finished", "createdDate": "2016-09-15T03:36:05.000-07:00", "creditsConsumed": 0, "resultsUrl": "https://dwk2zqmtd2046.cloudfront.net/targetCompanySearchAsyncExport/s04eabq2bt0ncgpa1095/response/ta..." }
application/xml Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <bulkJob> <createdDate>2016-09-15T03:36:05.000-07:00</createdDate> <creditsConsumed>0</creditsConsumed> <jobId>s04eabq2bt0ncgpa1095</jobId> <jobStatus>finished</jobStatus> <jobType>targetCompanySearchAsyncExport</jobType> <resultsUrl>https://dwk2zqmtd2046.cloudfront.net/targetCompanySearchAsyncExport/s04eabq2bt0ncgpa1095/response/targetCompanySearchAsyncExport_s04eabq2bt0ncgpa1095_2016-09-15T03-36-05-000-07-00?Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHBzOi8vZHdrMnpxbXRkMjA0Ni5jbG91ZGZyb250Lm5ldC90YXJnZXRDb21wYW55U2VhcmNoQXN5bmNFeHBvcnQvczA0ZWFicTJidDBuY2dwYTEwOTUvcmVzcG9uc2UvdGFyZ2V0Q29tcGFueVNlYXJjaEFzeW5jRXhwb3J0X3MwNGVhYnEyYnQwbmNncGExMDk1XzIwMTYtMDktMTVUMDMtMzYtMDUtMDAwLTA3LTAwIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNDc2NTI3NzY1fSwiSXBBZGRyZXNzIjp7IkFXUzpTb3VyY2VJcCI6IjAuMC4wLjAvMCJ9LCJEYXRlR3JlYXRlclRoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTQ3MzkzNjQ3OX19fV19&Signature=WFuzSleSFK1JWnrh6clTMpj1rkkcOishywgte~IfUIxH8HFPE7wwR2Olv9Hwo4U1MoT0QH-h2XX1sC-31KOFWFFBczL8D5uv2pklKeGA-8rmD524Ax1vFQh40Q6am9lCNrL7rzV8av8ARveHb4G6OFKuLu7idNk8FyuPq0Rj1NV1Ivj08aBFAIZVOu2jQ~5MEoYwzDijf1Gw9KZemA7RMpJnfe6GCz1HkdnPzxpgJwHM4DVAliRiJTK4lwNd3sAUSw~eUkHbfbXABA5Wa~cwMzfje1rT9EePqJlXq-AuRA1AcZpWr0BQYuommMSt8OsqXIQx73DeLT4A1AIW-O1Cfw__&Key-Pair-Id=APKAIIOSMLC3MB3GXLJQ</resultsUrl> </bulkJob>
HTTP 400
Invalid query parameter(s).
HTTP 401
Unauthorized Error - Cannot use API's without setting a valid accessToken in header.
HTTP 405
Method Not Allowed - Your are not allowed to access this API.
HTTP 404
Invalid ID, record not found.
HTTP 429
Request is throttled.
Comments
0 comments
Please sign in to leave a comment.