Datarova
Guides

Pagination, rate limits and errors

Pagination

List endpoints return data.page.next_cursor and data.page.has_more. Treat cursor values as opaque and pass the returned value back unchanged on the next request, URL-encoded and with the same filters. Stop when data.page.has_more is false.

Rate limits

All /v0 endpoints use a fixed 60-second burst window. Limits apply per account, so every API key and team member on the account shares them, and the endpoints in one row share a single allowance.

EndpointRequests per 60 s
GET /v0/keywords10
GET /v0/projects/{projectId}/ranks-by-asin10
POST /v0/projects/{projectId}/asins, PATCH /v0/projects/{projectId}/asins, DELETE /v0/projects/{projectId}/asins10
POST /v0/project-labels, PATCH /v0/project-labels/{label_id}, DELETE /v0/project-labels/{label_id}, POST /v0/item-labels, PATCH /v0/item-labels/{label_id}, DELETE /v0/item-labels/{label_id}10
GET /v0/live-search180, with at most 30 in progress at once
Every other endpoint60

When a limit is enforced, responses include X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. A throttled request returns 429 rate_limit_exceeded with a Retry-After header and error.retry_after in the body. Wait that long before retrying instead of retrying immediately.

A separate edge limit protects the API at 2,000 requests per IP address over about 300 seconds, shared by the app and the User API. Edge throttling returns the same 429 rate_limit_exceeded error with Retry-After: 60 but no X-RateLimit-* headers. Treat the delay as a recommendation, and back off again if the next request is also throttled.

Credits

Every plan with User API access has one credit balance per allowance cycle, shared by the app, the User API and MCP. A successful call to a chargeable endpoint spends credits from it:

  • 5 credits for a standard call, unless the endpoint states otherwise
  • 1 credit per successful search on GET /v0/live-search
  • 1 credit per record returned by GET /v0/keywords, one keyword in one period, with a minimum of 1 credit; the balance must cover keywords requested × periods requested before the call runs
  • 1 credit per 100 records generated by POST /v0/exports, rounded up, with a minimum of 1 credit
  • 100 credits per report from POST /v0/reports, plus 100 per period when it includes per-period detail

Usage, data availability, postal codes, and listing, checking and downloading exports and reports are free. Failed calls cost nothing. GET /v0/usage reports your credit allowance, credits used, credits held, credit balance and credits used per action in its credits object.

Chargeable endpoints return X-Quota-Limit, the credit allowance for the current allowance cycle, X-Quota-Remaining, the credit balance left after the call, and X-Quota-Cost, the call's credit cost. These are figures at the credit check: a call that then fails is not charged, and on 402 insufficient_credits X-Quota-Remaining is your unchanged balance. Read GET /v0/usage for the actual balance. An accepted POST /v0/exports or POST /v0/reports returns 202 without quota headers: its credits are held, and GET /v0/usage shows them in credits.held and the balance.

A call your credit balance cannot cover is refused with 402 insufficient_credits before it runs and costs nothing. The error carries credit_cost, credit_balance and resets_at: the call's cost, your balance, and when the allowance cycle ends and a full allowance is granted again.

Errors

Errors return a JSON body with error.code and error.message:

JSONCode
{ "error": { "code": "invalid_cursor", "message": "..." } }
StatusCodesMeaning
400unknown_query_parameter, unknown_body_parameter, invalid_limit, invalid_cursor, invalid_project_idInvalid request input. Correct the request; sending it again unchanged fails the same way.
401missing_api_key, invalid_api_keyMissing or invalid API key. See Authentication.
402plan_required, insufficient_creditsNo active plan, or your credit balance cannot cover the call.
403feature_not_enabledUser API access is not enabled for the account.
404project_not_foundThe requested resource was not found in your account.
409project_not_empty, label_already_exists, export_not_readyThe request conflicts with the resource's current state.
410export_expiredThe file's retention period has ended.
413request_body_too_largeThe JSON body is larger than the endpoint accepts.
429rate_limit_exceeded, concurrency_limit_exceeded, outstanding_export_limit_reachedA rate, concurrency or outstanding-export limit was reached. Wait for Retry-After.
500internal_errorUnexpected server error.
503credit_balance_unavailable, live_search_failed, live_search_timeout, live_search_unavailableThe credit balance could not be verified, or a live search failed. Retry after a short delay.

Endpoint-specific codes are listed with each operation in the API reference.