Download coverage report by DQL query
Request
| Authentication | |
|---|---|
token | Cache and insert token into example requests (15d expiry) |
| Query parameters | |
|---|---|
query | DQL Query |
from | Return results starting at Please note that the from parameter is no longer applicable to Article queries and has been deprecated. In the future, using this parameter will result in an error. (default: |
size | Maximum number of results to return. |
filter | Semi-colon separated path filter to filter response json. You can use a simple dot notation |
filterExclude | Semi-colon separated path filter to filter and exclude data from response json. You can use a simple dot notation |
exportspec | 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 |
Example request
curl --request GET \
--url 'https://kg.diffbot.com/kg/v3/dql/report?query=%3Cquery%3E&from=0&size=50&token=<DIFFBOT_TOKEN>' \
--header 'Accept: text/csv'
Response
| 200Coverage report |
|---|
DiffbotID,Name,$.name,$.nbEmployees
"",,1.0,1.0
El0wZJw_cOn-MAyp_hZZ5Tw,Yandex,1,1
EUFq-3WlpNsq0pvfUYWXOEA,Google,1,1
Ec5P22-6EPLOXo1-z6-4NzA,Instagram,1,1
| 401Unauthorized | |
|---|---|
code | |
message | |
requestId |
{
"code": 401,
"message": "Unauthorized. Incorrect token.",
"requestId": "a9cbf96bb0e2084d5c1595ae8f526576"
}
| 500Internal Server Error | |
|---|---|
code | |
message |
{
"code": 500,
"message": "HTTP 500 Internal Server Error"
}