Datarova
Account

get_usage

Read API usage ยท Read-only, idempotent

Read the account's current allowance cycle: the credits object (credit allowance, credits used, credits held for unfinished exports and reports, credit balance, and credits used per action with each action's readable name and billing group), plus current project, keyword and ASIN consumption against plan limits.

  • Held credits reduce the balance but are not counted as used.
  • The request, error, endpoint and exported-record fields are deprecated and blank (null or 0) for this account; they are removed one month after credits go live.
  • Use it before large work or after insufficient_credits.

Cost and limits: Costs no credits.

Input

No fields.

Output

Read this object from the result's structuredContent. The result's content carries a text version for the model, which is not always the same JSON.

Fields of data:

NameTypeRequiredDescription
period_startstring (date)RequiredFirst day of the usage period, as a UTC date.
period_endstring (date)RequiredLast day of the usage period, as a UTC date. The credit allowance resets after it.
creditsobjectOptionalYour credits for this allowance cycle, shared by the app, the User API and MCP. Present when your account is charged in credits. The balance resets to the full allowance when the cycle ends, on the UTC date in period_end; 402 insufficient_credits gives the exact time in resets_at.
request_limitinteger | nullRequiredDeprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits.
requests_remaininginteger | nullRequiredDeprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits.
request_countintegerRequiredDeprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits.
error_countintegerRequiredDeprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits.
export_record_allowanceinteger | nullRequiredDeprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits. Minimum 0.
export_records_usedintegerRequiredDeprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits. Minimum 0.
endpoint_countsUsageEndpointCountsRequiredDeprecated: blank (every count 0) when the account is charged in credits; removed one month after credits go live. Use credits.
resource_usageResourceUsageRequiredCurrent plan consumption, calculated when the request is handled.
updated_atstring | null (date-time)RequiredWhen this period's usage record was last updated. This timestamp does not apply to resource_usage, which is calculated when the request is handled.

data.credits

NameTypeRequiredDescription
allowanceintegerRequiredCredits granted for this cycle: your plan's credit allowance, raised by any mid-cycle upgrade or adjustment. Minimum 0.
usedintegerRequiredCredits consumed this cycle by successful actions in the app, the User API and MCP. Held credits are not included. Minimum 0.
heldintegerRequiredCredits reserved for exports and reports still running. They are consumed or released when the work finishes. Minimum 0.
balanceintegerRequiredCredits left to spend: allowance less used and held, never below 0. Minimum 0.
used_by_actionobject[]RequiredCredits used this cycle per action, ordered by group then by credits (most first). Actions with no credits used are omitted.

data.endpoint_counts

NameTypeRequiredDescription
project_createintegerRequiredMinimum 0.
project_deleteintegerRequiredMinimum 0.
project_label_updateintegerRequiredMinimum 0.
item_label_updateintegerRequiredMinimum 0.
keywordsintegerRequired
projectsintegerRequired
project_detailintegerRequired
project_asinsintegerRequired
project_asins_updateintegerRequiredMinimum 0.
project_asins_addintegerRequiredSuccessful POST /v0/projects/{projectId}/asins requests. Missing counters in older usage rows map to zero.
project_asins_removeintegerRequiredSuccessful DELETE /v0/projects/{projectId}/asins requests. Missing counters in older usage rows map to zero.
project_keywordsintegerRequired
project_keywords_updateintegerRequiredMinimum 0.
project_keywords_addintegerRequiredSuccessful POST /v0/projects/{projectId}/keywords requests.
project_keywords_removeintegerRequiredSuccessful DELETE /v0/projects/{projectId}/keywords requests.
project_ranks_by_asinintegerRequired
project_labelsintegerRequiredMinimum 0.
project_label_deleteintegerRequiredMinimum 0.
item_label_deleteintegerRequiredMinimum 0.
project_label_createintegerRequiredMinimum 0.
item_labelsintegerRequiredMinimum 0.
item_label_createintegerRequiredMinimum 0.
project_updateintegerRequiredMinimum 0.
export_createintegerRequiredMinimum 0.
exportsintegerRequiredMinimum 0.
export_detailintegerRequiredMinimum 0.
export_downloadintegerRequiredMinimum 0.
project_notesintegerRequiredMinimum 0.
project_note_detailintegerRequiredMinimum 0.
project_note_createintegerRequiredMinimum 0.
project_note_deleteintegerRequiredSuccessful project note deletion requests, including absent-note retries.
project_note_updateintegerRequiredMinimum 0.
live_searchintegerRequiredMinimum 0.
asin_familyintegerRequiredSuccessful MCP get_asin_family calls. The tool has no User API endpoint but is charged from the same credit balance. Minimum 0.

data.resource_usage

NameTypeRequiredDescription
projectsResourceUsageDimensionRequiredProject groups compared with the plan's project limit.
keywordsResourceUsageDimensionRequiredDistinct normalized keyword and marketplace pairs compared with the plan's keyword limit. Not the sum of attachments.
asinsResourceUsageDimensionRequiredDistinct ASIN and marketplace pairs compared with the plan's ASIN limit. Not the sum of attachments.
Full input and output JSON Schema
JSONCode
{ "inputSchema": { "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": {}, "additionalProperties": false }, "outputSchema": { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "period_start", "period_end", "request_limit", "requests_remaining", "request_count", "error_count", "endpoint_counts", "resource_usage", "updated_at", "export_record_allowance", "export_records_used" ], "properties": { "period_start": { "type": "string", "format": "date", "description": "First day of the usage period, as a UTC date." }, "period_end": { "type": "string", "format": "date", "description": "Last day of the usage period, as a UTC date. The credit allowance resets after it." }, "credits": { "type": "object", "description": "Your credits for this allowance cycle, shared by the app, the User API and MCP. Present when your account is charged in credits. The balance resets to the full allowance when the cycle ends, on the UTC date in `period_end`; `402 insufficient_credits` gives the exact time in `resets_at`.", "required": [ "allowance", "used", "held", "balance", "used_by_action" ], "properties": { "allowance": { "type": "integer", "minimum": 0, "description": "Credits granted for this cycle: your plan's credit allowance, raised by any mid-cycle upgrade or adjustment." }, "used": { "type": "integer", "minimum": 0, "description": "Credits consumed this cycle by successful actions in the app, the User API and MCP. Held credits are not included." }, "held": { "type": "integer", "minimum": 0, "description": "Credits reserved for exports and reports still running. They are consumed or released when the work finishes." }, "balance": { "type": "integer", "minimum": 0, "description": "Credits left to spend: allowance less used and held, never below 0." }, "used_by_action": { "type": "array", "description": "Credits used this cycle per action, ordered by group then by credits (most first). Actions with no credits used are omitted.", "items": { "type": "object", "required": [ "action", "name", "group", "credits" ], "properties": { "action": { "type": "string", "description": "The action, for example `live_search`, `keywords`, `keywords_for_keyword` (Keyword Spy searches and reports, in the app or the API) or `keywords_for_asin` (ASIN Insights searches and reports). `research_combined` holds Keyword Spy and ASIN Insights credits recorded before they were reported separately." }, "name": { "type": "string", "description": "A readable name for the action, for example `ASIN Insights (keywords for an ASIN)`." }, "group": { "type": "string", "enum": [ "reports", "exports", "live_searches", "keyword_data", "standard_requests" ], "description": "The billing page group the action's credits are shown under." }, "credits": { "type": "integer", "minimum": 1, "description": "Credits the action used this cycle." } } } } } }, "request_limit": { "type": [ "integer", "null" ], "deprecated": true, "description": "Deprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits." }, "requests_remaining": { "type": [ "integer", "null" ], "deprecated": true, "description": "Deprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits." }, "request_count": { "type": "integer", "deprecated": true, "description": "Deprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits." }, "error_count": { "type": "integer", "deprecated": true, "description": "Deprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits." }, "export_record_allowance": { "type": [ "integer", "null" ], "minimum": 0, "deprecated": true, "description": "Deprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits." }, "export_records_used": { "type": "integer", "minimum": 0, "deprecated": true, "description": "Deprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits." }, "endpoint_counts": { "$ref": "#/$defs/UsageEndpointCounts", "deprecated": true, "description": "Deprecated: blank (every count 0) when the account is charged in credits; removed one month after credits go live. Use credits." }, "resource_usage": { "$ref": "#/$defs/ResourceUsage" }, "updated_at": { "type": [ "string", "null" ], "format": "date-time", "description": "When this period's usage record was last updated. This timestamp does not apply to resource_usage, which is calculated when the request is handled." } } } }, "$defs": { "UsageEndpointCounts": { "type": "object", "properties": { "project_create": { "type": "integer", "minimum": 0 }, "project_delete": { "type": "integer", "minimum": 0 }, "project_label_update": { "type": "integer", "minimum": 0 }, "item_label_update": { "type": "integer", "minimum": 0 }, "keywords": { "type": "integer" }, "projects": { "type": "integer" }, "project_detail": { "type": "integer" }, "project_asins": { "type": "integer" }, "project_asins_update": { "type": "integer", "minimum": 0 }, "project_asins_add": { "type": "integer", "description": "Successful `POST /v0/projects/{projectId}/asins` requests. Missing counters in older usage rows map to zero." }, "project_asins_remove": { "type": "integer", "description": "Successful `DELETE /v0/projects/{projectId}/asins` requests. Missing counters in older usage rows map to zero." }, "project_keywords": { "type": "integer" }, "project_keywords_update": { "type": "integer", "minimum": 0 }, "project_keywords_add": { "type": "integer", "description": "Successful `POST /v0/projects/{projectId}/keywords` requests." }, "project_keywords_remove": { "type": "integer", "description": "Successful `DELETE /v0/projects/{projectId}/keywords` requests." }, "project_ranks_by_asin": { "type": "integer" }, "project_labels": { "type": "integer", "minimum": 0 }, "project_label_delete": { "type": "integer", "minimum": 0 }, "item_label_delete": { "type": "integer", "minimum": 0 }, "project_label_create": { "type": "integer", "minimum": 0 }, "item_labels": { "type": "integer", "minimum": 0 }, "item_label_create": { "type": "integer", "minimum": 0 }, "project_update": { "type": "integer", "minimum": 0 }, "export_create": { "type": "integer", "minimum": 0 }, "exports": { "type": "integer", "minimum": 0 }, "export_detail": { "type": "integer", "minimum": 0 }, "export_download": { "type": "integer", "minimum": 0 }, "project_notes": { "type": "integer", "minimum": 0 }, "project_note_detail": { "type": "integer", "minimum": 0 }, "project_note_create": { "type": "integer", "minimum": 0 }, "project_note_delete": { "type": "integer", "description": "Successful project note deletion requests, including absent-note retries." }, "project_note_update": { "type": "integer", "minimum": 0 }, "live_search": { "type": "integer", "minimum": 0 }, "asin_family": { "type": "integer", "minimum": 0, "description": "Successful MCP `get_asin_family` calls. The tool has no User API endpoint but is charged from the same credit balance." } }, "required": [ "keywords", "projects", "project_detail", "project_asins", "project_asins_add", "project_asins_update", "project_asins_remove", "project_keywords", "project_keywords_add", "project_keywords_update", "project_keywords_remove", "project_ranks_by_asin", "project_create", "project_delete", "project_label_update", "item_label_update", "project_labels", "project_label_create", "project_label_delete", "item_label_delete", "item_labels", "item_label_create", "project_update", "project_notes", "project_note_detail", "project_note_create", "project_note_delete", "project_note_update", "live_search", "asin_family", "export_create", "exports", "export_detail", "export_download" ] }, "ResourceUsage": { "type": "object", "required": [ "projects", "keywords", "asins" ], "properties": { "projects": { "$ref": "#/$defs/ResourceUsageDimension", "description": "Project groups compared with the plan's project limit." }, "keywords": { "$ref": "#/$defs/ResourceUsageDimension", "description": "Distinct normalized keyword and marketplace pairs compared with the plan's keyword limit. Not the sum of attachments." }, "asins": { "$ref": "#/$defs/ResourceUsageDimension", "description": "Distinct ASIN and marketplace pairs compared with the plan's ASIN limit. Not the sum of attachments." } }, "description": "Current plan consumption, calculated when the request is handled." }, "ResourceUsageDimension": { "type": "object", "required": [ "current", "limit" ], "properties": { "current": { "type": "integer", "minimum": 0 }, "limit": { "type": "integer", "minimum": 0 } } } } } }