API Platform
Error Codes
Error codes returned by the API and what they mean.
All errors return a JSON object with a human-readable message and an uppercase error code.
{
"error": "Rate limit exceeded",
"code": "RATE_LIMIT_EXCEEDED"
}Error codes
| Code | HTTP | Meaning |
|---|---|---|
INVALID_REQUEST | 400 | Request body is malformed or missing required fields |
KEYWORD_REQUIRED | 400 | The keyword field is empty or missing |
URL_REQUIRED | 400 | The url field is empty or missing |
INVALID_URL | 400 | The url does not start with http:// or https://; on On-Page, also a localhost or IP address, or a URL without a domain name |
INVALID_FORMAT | 400 | The format field is not "json" or "raw" |
INVALID_MATCH_TYPE | 400 | Invalid match_type. Allowed: broad, phrase_match, exact_match, related |
INVALID_CREDENTIALS | 401 | Invalid username or password |
INVALID_API_KEY | 401 | Authentication failed |
CREDENTIALS_EXPIRED | 401 | API user credentials have expired |
INSUFFICIENT_CREDITS | 402 | Your account does not have enough credits |
IP_NOT_WHITELISTED | 403 | Your IP address is not whitelisted |
RATE_LIMIT_EXCEEDED | 429 | Rate limit exceeded |
INTERNAL_ERROR | 500 | An internal server error occurred |
SERP_FAILED | 503 | Failed to fetch search results |
WORKER_FAILED | 503 | Failed to fetch data from the worker |
SCRAPE_FAILED | 503 | Failed to scrape the target page |
AUDIT_FAILED | 503 | The audit could not be completed |
TARGET_UNREACHABLE | 503 | The target site could not be reached |
TARGET_BLOCKED | 503 | The target site blocked the request |
TIMEOUT | 503 | The request did not finish in time. On task endpoints it is the final answer of a failed task, e.g. one past its 10-minute deadline, and is not charged — see the note below |
TARGET_REQUIRED | 400 | The target field is empty or missing |
INVALID_TARGET | 400 | The target is not a valid domain or URL |
INVALID_TYPE | 400 | Unknown report type |
TYPE_UNAVAILABLE | 400 | That report type is not available yet |
INVALID_FILTER | 400 | Unknown filter field, wrong operator, or too many conditions |
INVALID_ORDER_BY | 400 | Unknown sort field, or more than 3 sort rules |
INVALID_DATE_RANGE | 400 | date_from is after date_to, or the dates are unparseable |
INVALID_CURSOR | 400 | The pagination cursor is unknown or expired |
SERVICE_NOT_ENABLED | 403 | This service is not enabled for your account |
REQUEST_IN_PROGRESS | 409 | A request with the same idempotency_key is already running (endpoints that do not run as tasks; task endpoints answer 202 instead) |
REQUEST_TOO_LARGE | 413 | The request body exceeds the size limit |
REQUEST_FAILED | 503 | The request could not be completed |
EMPTY_RESULTS | 200 | No results found for this query |
EMPTY_SERP | 200 | SERP: Google returned no results for this query. Not charged |
INVALID_JSON | 400 | The request body is not a JSON object |
UNKNOWN_PARAMETER | 400 | A parameter the endpoint does not know; hint suggests the closest match |
PARAMETER_NOT_ALLOWED | 400 | The parameter exists but not for the chosen type |
INVALID_PARAMETER | 400 | A value is out of range or of the wrong type; field names it |
DOMAIN_REQUIRED | 400 | The domain field is empty or missing |
COMPETITOR_REQUIRED | 400 | Domain Research keyword_gap was sent without a competitor |
INVALID_DOMAIN | 400 | A domain field is not a valid domain; field names which (domain, competitor, domains) |
UNSUPPORTED_MARKET | 400 | The country, or the language in that country, is not supported |
PAGE_OUT_OF_RANGE | 400 | page × limit exceeds the reachable row limit (Business Data search: 20,000) |
TOO_MANY_CONCURRENT_REQUESTS | 429 | Too many requests running at once for this API user |
SERVICE_BUSY | 503 | Temporarily overloaded — retry after Retry-After seconds |
SERVICE_UNAVAILABLE | 503 | Temporarily unavailable — retry after Retry-After seconds |
NOT_FOUND | 404 | No such endpoint |
METHOD_NOT_ALLOWED | 405 | The endpoint does not accept this HTTP method |
VIDEO_ID_REQUIRED | 400 | The video_id field is empty or missing |
INVALID_VIDEO_ID | 400 | video_id is not a YouTube video ID or URL |
VIDEO_NOT_FOUND | 404 | No such video, or it is private, removed or region-blocked (not charged) |
TRANSCRIPT_NOT_FOUND | 404 | The video has no transcript in the requested language (not charged) |
PAGE_BLOCKED | 422 | On-Page: the site refused the request (HTTP 401, 403 or 429), usually bot protection such as Cloudflare (not charged) |
PAGE_UNAVAILABLE | 422 | On-Page: the page could not be loaded: it does not exist, did not respond, answered with an error status (the message names it, e.g. HTTP 404) or has no readable content (not charged) |
SEARCH_CRITERIA_REQUIRED | 400 | Business Data search was sent without categories, a name or a location (latitude + longitude + radius_km) |
BUSINESS_REQUIRED | 400 | Business Data profile or reviews was sent without place_id, cid or name |
UNKNOWN_CATEGORY | 400 | A Business Data category is not a known category id; the hint suggests the closest one, and GET /v1/business-data/categories lists them all |
BUSINESS_NOT_FOUND | 404 | Business Data: no business matched the name, place_id or cid (not charged) |
KEYWORDS_REQUIRED | 400 | Trends: the keywords list is empty or missing |
TOO_MANY_KEYWORDS | 400 | Trends: more than 5 keywords, or more than one for type: "related" |
INVALID_TASK_ID | 400 | The task id in GET /v1/tasks/{task_id} is not a UUID |
TASK_NOT_FOUND | 404 | No such task, or it was created by another API user — only the creating API user can read it |
TASK_EXPIRED | 410 | The task's result is no longer stored — results are kept for 72 hours after the task finishes |
TOO_MANY_PENDING_TASKS | 429 | 1,000 tasks are still running for this API user — retry after Retry-After (10) seconds |
Server-side failures are always 503
Every failure on our side, whether the data source failed (REQUEST_FAILED, SERP_FAILED, WORKER_FAILED…), a
task ran out of time (TIMEOUT) or the service is busy, answers 503 with the usual JSON body. Read code to tell
them apart and retryable to decide whether to send the request again. The API never answers 502 or 504: if you
receive one, or an HTML page instead of JSON, the request did not reach the API (a network or edge problem), and it is
safe to retry, with the same Idempotency-Key if you sent one.
Timeouts
On the endpoints that run as tasks (SERP, Keyword Data, Domain Research,
YouTube, Trends, On-Page, Business Data, Backlinks, Google Images, Google Maps and Technical SEO), a slow request no longer times out. After wait seconds (60 by default) it returns
202 with a task_id you can poll. 503 TIMEOUT is the final answer of a task that did not
finish in time, for example one that passed its 10-minute deadline, and it is not charged.
The endpoints that are still synchronous have no such fallback: a request that runs longer than
about 100 seconds is cut off at the edge.
Extra fields on newer endpoints
Newer endpoints such as Domain Research add optional fields to
the same shape: field (the parameter at fault), hint (how to fix it), allowed (valid
values), retryable (whether sending the same request again can succeed), and required /
balance on INSUFFICIENT_CREDITS. Send Accept-Language: tr to receive error and hint in
Turkish; code never changes.
EMPTY_RESULTS
EMPTY_RESULTS is not an error — the request succeeded (200), there were simply no
results for the query.
