Returns account plan, usage, child tokens, and other account details.
Request
| Authentication | |
|---|---|
token | Cache and insert token into example requests (15d expiry) |
| Query parameters | |
|---|---|
days | Pass the number of days ( |
Example request
curl --request GET \
--url 'https://api.diffbot.com/v4/account?token=<DIFFBOT_TOKEN>' \
--header 'Accept: application/json'
Response
| 200Successful API Response | |
|---|---|
name | Name associated with the token. |
email | Email address associated with the token. |
plan | Current plan for the token. |
planCredits | Amount of monthly calls included. |
status | Status of the token. |
created | |
token | |
childTokens | List of child or sub-tokens, if there are any associated with your account. |
usage | An array of days and call volume amounts for each day. By default this will return data from the most recent 31 days. Use the |
date | Date, e.g. |
nlp | Total number of Natural Language API calls made. |
credits | Total number of credits consumed. |
extractions | Total number of Extraction API calls made. |
proxies | Total number of calls made using proxy servers. Read more. |
entities | Total number of entities downloaded from the Diffbot Knowledge Graph. |
refresh | Total number of entity refreshes requested. |
facets | Total number of facet values returned. |
videos | Total number of videos downloaded. |
subtitles | Total number of subtitles requested. |
{
"created": "2020-04-22",
"usage": [
{
"date": "2022-05-04",
"subtitles": 0,
"nlp": 0,
"entities": 10,
"credits": 258,
"refresh": 0,
"proxies": 0,
"videos": 0,
"extractions": 8,
"facets": 0
},
{
"date": "2022-05-03",
"subtitles": 0,
"nlp": 0,
"entities": 75,
"credits": 1875,
"refresh": 0,
"proxies": 0,
"videos": 0,
"extractions": 0,
"facets": 0
}
],
"name": "Diffy",
"childTokens": [
"xxxx",
"xxxx"
],
"plan": "diffy-plans-to-hangout-all-day",
"email": "sales@diffbot.com",
"token": "xxxx",
"status": "active"
}
| 401Unauthorized | |
|---|---|
errorCode | |
error |
{
"errorCode": 401,
"error": "Not authorized API token."
}