Skip to content

Download Results of Bulkjob

GEThttps://kg.diffbot.com/kg/v3/enhance/bulk/{bulkjobId}

Download the result of a completed Enhance Bulkjob.

Returns the bulkjob's results. The response shape depends on the format parameter; the default is JSON lines (one result per line). For an options-in-body variant, see Download Results of Bulkjob (POST).

Example

bash
curl --get 'https://kg.diffbot.com/kg/v3/enhance/bulk/abc123?token=<DIFFBOT_TOKEN>&format=jsonl'
json
{"version":3,"hits":1,"data":[{"score":0.98,"entity":{"id":"EYX1i02YVPsuT7fPLUYgRhQ","name":"Diffbot","diffbotUri":"http://diffbot.com/entity/EYX1i02YVPsuT7fPLUYgRhQ","origins":["crunchbase.com/organization/diffbot","linkedin.com/company/diffbot"]}}]}

With format=json the response is a JSON array of these records; with format=csv, xls, or xlsx the response is a file download whose columns are controlled by exportspec.

API Definition

Generated from v3.0.0 of the ENHANCE API OpenAPI specification.

Download the result of a completed Enhance Bulkjob

Request

Authentication
tokenquery
Cache and insert token into example requests (15d expiry)
Path parameters
bulkjobIdstring required

Enhance Bulkjob ID

Query parameters
headinteger (int32)

Return first n results (default: 0)

frominteger (int32)

1-based index of the first result to return (1 = first result). (default: 0)

sizeinteger (int32)

Maximum number of results to return starting from the ‘from’ position. (default: -1)

onlyMatchesstring

Return only records that have a match (default: false)

One of: truefalse

formatstring

Export format

One of: jsonjsonlcsvxlsxlsx

exportspecstring

The spec defines the columns to export. This is applicable for csv, xls and xslx formats.

Export spec specifies how to export the entity JSON to a csv. A simple export spec looks like name;summary. To specify more complex export spec, including specifying how many of a list of industries to return, or the ideal employment record, see Exporting Columnar Format and JsonPath Filtering.

exportfilestring

File name of the export file

exportseparatorstring

Separator for multi-value fields when exporting columnar results

exportquerystring

Prefixes the enhance query parameters to the CSV export result (default: false)

One of: truefalse

filterstring

Semi-colon separated path filter to filter response json. You can use a simple dot notation skills.name or a JsonPath expression such as $.name;$.locations.country.name. For more advanced options, see JsonPath Filtering for syntax.

filterExcludestring

Semi-colon separated path filter to filter and exclude data from response json. You can use a simple dot notation skills.name or a JsonPath expression such as $.name;$.locations.country.name. For more advanced options, see JsonPath Filtering for syntax.

waitinteger (int32)

Seconds to wait for bulkjob results to export. Results will continue to export in the background. To only trigger an export, use 0. (default: 120)

Example request

bash
curl --request GET \
  --url 'https://kg.diffbot.com/kg/v3/enhance/bulk/<bulkjobId>?head=0&from=0&size=-1&onlyMatches=false&exportquery=false&wait=120&token=<DIFFBOT_TOKEN>' \
  --header 'Accept: application/json'

Response

200Result data. Depends on format (default is json lines).
201Bulkjob or result export is still executing or is stopped
codeinteger (int32)

Status code (same as the HTTP status code)

messagestring

Status message

request_ctxobject

Request context

queryobject | object | string

Submitted query

typestring

Diffbot entity type

namestring[]

Name of the entity to enhance. Parameter can be used with types Person and Organization

urlstring[]

Origin or homepage URI of entity to enhance. Parameter can be used with types Person and Organization

locationstring

Location of the entity to enhance. Parameter can be used with types Person and Organization

ipstring

IP address of the entity to enhance. Parameter can be used with types Person and Organization

phonestring

Phone of the entity to enhance. Parameter can be used with types Person and Organization

descriptionstring

Description of the entity to enhance. Parameter can be used with types Person and Organization

emailstring[]

Email of the entity to enhance. Parameter can be used only with type Person

employerstring

Employer of the entity to enhance. Parameter can be used only with type Person

titlestring

Title of the entity to enhance. Parameter can be used only with type Person

schoolstring

School of the entity to enhance. Parameter can be used only with type Person

query_ctxobject

Query context. Example: submitted query parameters etc.

bulkjobStatusobject

Bulkjob status

job_idstring

Bulkjob Id

namestring

Bulkjob name

refreshboolean

Is Refresh enabled for this job?

searchstring

Is Search enabled for this job?

messagestring

Bulkjob status message

jobs_totalinteger (int32)

Number of jobs in bulkjob

jobs_completedinteger (int32)

Number of jobs completed in bulkjob.

statusstring

Status of Bulkjob. One of {NOT_STARTED, IN_PROCESS, COMPLETE, COMPLETE_WITH_FAILURES, STOPPED, ERROR_FINALIZING, UNKNOWN}

estimate_remaining_timeinteger (int64)

Estimated remaining time for bulkjob to complete (in seconds). null if job is completed or not started.

submit_time_msinteger (int64)

Bulkjob submit time

start_time_msinteger (int64)

Bulkjob start time

completed_time_msinteger (int64)

Bulkjob completed time

total_resultsinteger (int32)

Total results

bulkjobIdstring
totalJobsinteger (int32)
finishedJobsinteger (int32)
estimateRemainingTimeSecinteger (int64)
submitTimeMsinteger (int64)
startTimeMsinteger (int64)
completedTimeMsinteger (int64)
totalResultsinteger (int32)
fileSizeBytesinteger (int64)

Size of download file in bytes

reportsobject[]

Coverage reports generated for this bulkjob

reportIdstring

Coverage Report ID

statusstring

Status of report generation. One of {NOT_STARTED, IN_PROCESS, COMPLETE, UNKNOWN}

formatstring

Export format

specstring

The spec defines the columns to export. This is applicable for csv, xls and xslx formats.

Export spec specifies how to export the entity JSON to a csv. A simple export spec looks like name;summary. To specify more complex export spec, including specifying how many of a list of industries to return, or the ideal employment record, see Exporting Columnar Format and JsonPath Filtering.

exportfilestring
exportSeparatorstring

Separator for multi-value fields when exporting columnar results

filterstring

Semi-colon separated path filter to filter response json. You can use a simple dot notation skills.name or a JsonPath expression such as $.name;$.locations.country.name. For more advanced options, see JsonPath Filtering for syntax.

onlyMatchesboolean

Return only records that have a match

errorboolean

true if error

400Invalid bulkjobId
codeinteger (int32)

Status code (same as the HTTP status code)

messagestring

Status message

request_ctxobject

Request context

queryobject | object | string

Submitted query

typestring

Diffbot entity type

namestring[]

Name of the entity to enhance. Parameter can be used with types Person and Organization

urlstring[]

Origin or homepage URI of entity to enhance. Parameter can be used with types Person and Organization

locationstring

Location of the entity to enhance. Parameter can be used with types Person and Organization

ipstring

IP address of the entity to enhance. Parameter can be used with types Person and Organization

phonestring

Phone of the entity to enhance. Parameter can be used with types Person and Organization

descriptionstring

Description of the entity to enhance. Parameter can be used with types Person and Organization

emailstring[]

Email of the entity to enhance. Parameter can be used only with type Person

employerstring

Employer of the entity to enhance. Parameter can be used only with type Person

titlestring

Title of the entity to enhance. Parameter can be used only with type Person

schoolstring

School of the entity to enhance. Parameter can be used only with type Person

query_ctxobject

Query context. Example: submitted query parameters etc.

bulkjobStatusobject

Bulkjob status

job_idstring

Bulkjob Id

namestring

Bulkjob name

refreshboolean

Is Refresh enabled for this job?

searchstring

Is Search enabled for this job?

messagestring

Bulkjob status message

jobs_totalinteger (int32)

Number of jobs in bulkjob

jobs_completedinteger (int32)

Number of jobs completed in bulkjob.

statusstring

Status of Bulkjob. One of {NOT_STARTED, IN_PROCESS, COMPLETE, COMPLETE_WITH_FAILURES, STOPPED, ERROR_FINALIZING, UNKNOWN}

estimate_remaining_timeinteger (int64)

Estimated remaining time for bulkjob to complete (in seconds). null if job is completed or not started.

submit_time_msinteger (int64)

Bulkjob submit time

start_time_msinteger (int64)

Bulkjob start time

completed_time_msinteger (int64)

Bulkjob completed time

total_resultsinteger (int32)

Total results

bulkjobIdstring
totalJobsinteger (int32)
finishedJobsinteger (int32)
estimateRemainingTimeSecinteger (int64)
submitTimeMsinteger (int64)
startTimeMsinteger (int64)
completedTimeMsinteger (int64)
totalResultsinteger (int32)
fileSizeBytesinteger (int64)

Size of download file in bytes

reportsobject[]

Coverage reports generated for this bulkjob

reportIdstring

Coverage Report ID

statusstring

Status of report generation. One of {NOT_STARTED, IN_PROCESS, COMPLETE, UNKNOWN}

formatstring

Export format

specstring

The spec defines the columns to export. This is applicable for csv, xls and xslx formats.

Export spec specifies how to export the entity JSON to a csv. A simple export spec looks like name;summary. To specify more complex export spec, including specifying how many of a list of industries to return, or the ideal employment record, see Exporting Columnar Format and JsonPath Filtering.

exportfilestring
exportSeparatorstring

Separator for multi-value fields when exporting columnar results

filterstring

Semi-colon separated path filter to filter response json. You can use a simple dot notation skills.name or a JsonPath expression such as $.name;$.locations.country.name. For more advanced options, see JsonPath Filtering for syntax.

onlyMatchesboolean

Return only records that have a match

errorboolean

true if error

401Token not specified or other client errors
requestIdstring

Identifier of the rejected request, also returned in the X-Diffbot-RequestId header

codeinteger (int32)

Status code (same as the HTTP status code)

messagestring

Status message

404Bulkjob not found
codeinteger (int32)

Status code (same as the HTTP status code)

messagestring

Status message

request_ctxobject

Request context

queryobject | object | string

Submitted query

typestring

Diffbot entity type

namestring[]

Name of the entity to enhance. Parameter can be used with types Person and Organization

urlstring[]

Origin or homepage URI of entity to enhance. Parameter can be used with types Person and Organization

locationstring

Location of the entity to enhance. Parameter can be used with types Person and Organization

ipstring

IP address of the entity to enhance. Parameter can be used with types Person and Organization

phonestring

Phone of the entity to enhance. Parameter can be used with types Person and Organization

descriptionstring

Description of the entity to enhance. Parameter can be used with types Person and Organization

emailstring[]

Email of the entity to enhance. Parameter can be used only with type Person

employerstring

Employer of the entity to enhance. Parameter can be used only with type Person

titlestring

Title of the entity to enhance. Parameter can be used only with type Person

schoolstring

School of the entity to enhance. Parameter can be used only with type Person

query_ctxobject

Query context. Example: submitted query parameters etc.

bulkjobStatusobject

Bulkjob status

job_idstring

Bulkjob Id

namestring

Bulkjob name

refreshboolean

Is Refresh enabled for this job?

searchstring

Is Search enabled for this job?

messagestring

Bulkjob status message

jobs_totalinteger (int32)

Number of jobs in bulkjob

jobs_completedinteger (int32)

Number of jobs completed in bulkjob.

statusstring

Status of Bulkjob. One of {NOT_STARTED, IN_PROCESS, COMPLETE, COMPLETE_WITH_FAILURES, STOPPED, ERROR_FINALIZING, UNKNOWN}

estimate_remaining_timeinteger (int64)

Estimated remaining time for bulkjob to complete (in seconds). null if job is completed or not started.

submit_time_msinteger (int64)

Bulkjob submit time

start_time_msinteger (int64)

Bulkjob start time

completed_time_msinteger (int64)

Bulkjob completed time

total_resultsinteger (int32)

Total results

bulkjobIdstring
totalJobsinteger (int32)
finishedJobsinteger (int32)
estimateRemainingTimeSecinteger (int64)
submitTimeMsinteger (int64)
startTimeMsinteger (int64)
completedTimeMsinteger (int64)
totalResultsinteger (int32)
fileSizeBytesinteger (int64)

Size of download file in bytes

reportsobject[]

Coverage reports generated for this bulkjob

reportIdstring

Coverage Report ID

statusstring

Status of report generation. One of {NOT_STARTED, IN_PROCESS, COMPLETE, UNKNOWN}

formatstring

Export format

specstring

The spec defines the columns to export. This is applicable for csv, xls and xslx formats.

Export spec specifies how to export the entity JSON to a csv. A simple export spec looks like name;summary. To specify more complex export spec, including specifying how many of a list of industries to return, or the ideal employment record, see Exporting Columnar Format and JsonPath Filtering.

exportfilestring
exportSeparatorstring

Separator for multi-value fields when exporting columnar results

filterstring

Semi-colon separated path filter to filter response json. You can use a simple dot notation skills.name or a JsonPath expression such as $.name;$.locations.country.name. For more advanced options, see JsonPath Filtering for syntax.

onlyMatchesboolean

Return only records that have a match

errorboolean

true if error

500Internal Server Error
codeinteger (int32)

Status code (same as the HTTP status code)

messagestring

Status message

request_ctxobject

Request context

queryobject | object | string

Submitted query

typestring

Diffbot entity type

namestring[]

Name of the entity to enhance. Parameter can be used with types Person and Organization

urlstring[]

Origin or homepage URI of entity to enhance. Parameter can be used with types Person and Organization

locationstring

Location of the entity to enhance. Parameter can be used with types Person and Organization

ipstring

IP address of the entity to enhance. Parameter can be used with types Person and Organization

phonestring

Phone of the entity to enhance. Parameter can be used with types Person and Organization

descriptionstring

Description of the entity to enhance. Parameter can be used with types Person and Organization

emailstring[]

Email of the entity to enhance. Parameter can be used only with type Person

employerstring

Employer of the entity to enhance. Parameter can be used only with type Person

titlestring

Title of the entity to enhance. Parameter can be used only with type Person

schoolstring

School of the entity to enhance. Parameter can be used only with type Person

query_ctxobject

Query context. Example: submitted query parameters etc.

bulkjobStatusobject

Bulkjob status

job_idstring

Bulkjob Id

namestring

Bulkjob name

refreshboolean

Is Refresh enabled for this job?

searchstring

Is Search enabled for this job?

messagestring

Bulkjob status message

jobs_totalinteger (int32)

Number of jobs in bulkjob

jobs_completedinteger (int32)

Number of jobs completed in bulkjob.

statusstring

Status of Bulkjob. One of {NOT_STARTED, IN_PROCESS, COMPLETE, COMPLETE_WITH_FAILURES, STOPPED, ERROR_FINALIZING, UNKNOWN}

estimate_remaining_timeinteger (int64)

Estimated remaining time for bulkjob to complete (in seconds). null if job is completed or not started.

submit_time_msinteger (int64)

Bulkjob submit time

start_time_msinteger (int64)

Bulkjob start time

completed_time_msinteger (int64)

Bulkjob completed time

total_resultsinteger (int32)

Total results

bulkjobIdstring
totalJobsinteger (int32)
finishedJobsinteger (int32)
estimateRemainingTimeSecinteger (int64)
submitTimeMsinteger (int64)
startTimeMsinteger (int64)
completedTimeMsinteger (int64)
totalResultsinteger (int32)
fileSizeBytesinteger (int64)

Size of download file in bytes

reportsobject[]

Coverage reports generated for this bulkjob

reportIdstring

Coverage Report ID

statusstring

Status of report generation. One of {NOT_STARTED, IN_PROCESS, COMPLETE, UNKNOWN}

formatstring

Export format

specstring

The spec defines the columns to export. This is applicable for csv, xls and xslx formats.

Export spec specifies how to export the entity JSON to a csv. A simple export spec looks like name;summary. To specify more complex export spec, including specifying how many of a list of industries to return, or the ideal employment record, see Exporting Columnar Format and JsonPath Filtering.

exportfilestring
exportSeparatorstring

Separator for multi-value fields when exporting columnar results

filterstring

Semi-colon separated path filter to filter response json. You can use a simple dot notation skills.name or a JsonPath expression such as $.name;$.locations.country.name. For more advanced options, see JsonPath Filtering for syntax.

onlyMatchesboolean

Return only records that have a match

errorboolean

true if error