semust logo

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

CodeHTTPMeaning
INVALID_REQUEST400Request body is malformed or missing required fields
KEYWORD_REQUIRED400The keyword field is empty or missing
URL_REQUIRED400The url field is empty or missing
INVALID_URL400The 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_FORMAT400The format field is not "json" or "raw"
INVALID_MATCH_TYPE400Invalid match_type. Allowed: broad, phrase_match, exact_match, related
INVALID_CREDENTIALS401Invalid username or password
INVALID_API_KEY401Authentication failed
CREDENTIALS_EXPIRED401API user credentials have expired
INSUFFICIENT_CREDITS402Your account does not have enough credits
IP_NOT_WHITELISTED403Your IP address is not whitelisted
RATE_LIMIT_EXCEEDED429Rate limit exceeded
INTERNAL_ERROR500An internal server error occurred
SERP_FAILED503Failed to fetch search results
WORKER_FAILED503Failed to fetch data from the worker
SCRAPE_FAILED503Failed to scrape the target page
AUDIT_FAILED503The audit could not be completed
TARGET_UNREACHABLE503The target site could not be reached
TARGET_BLOCKED503The target site blocked the request
TIMEOUT503The 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_REQUIRED400The target field is empty or missing
INVALID_TARGET400The target is not a valid domain or URL
INVALID_TYPE400Unknown report type
TYPE_UNAVAILABLE400That report type is not available yet
INVALID_FILTER400Unknown filter field, wrong operator, or too many conditions
INVALID_ORDER_BY400Unknown sort field, or more than 3 sort rules
INVALID_DATE_RANGE400date_from is after date_to, or the dates are unparseable
INVALID_CURSOR400The pagination cursor is unknown or expired
SERVICE_NOT_ENABLED403This service is not enabled for your account
REQUEST_IN_PROGRESS409A request with the same idempotency_key is already running (endpoints that do not run as tasks; task endpoints answer 202 instead)
REQUEST_TOO_LARGE413The request body exceeds the size limit
REQUEST_FAILED503The request could not be completed
EMPTY_RESULTS200No results found for this query
EMPTY_SERP200SERP: Google returned no results for this query. Not charged
INVALID_JSON400The request body is not a JSON object
UNKNOWN_PARAMETER400A parameter the endpoint does not know; hint suggests the closest match
PARAMETER_NOT_ALLOWED400The parameter exists but not for the chosen type
INVALID_PARAMETER400A value is out of range or of the wrong type; field names it
DOMAIN_REQUIRED400The domain field is empty or missing
COMPETITOR_REQUIRED400Domain Research keyword_gap was sent without a competitor
INVALID_DOMAIN400A domain field is not a valid domain; field names which (domain, competitor, domains)
UNSUPPORTED_MARKET400The country, or the language in that country, is not supported
PAGE_OUT_OF_RANGE400page × limit exceeds the reachable row limit (Business Data search: 20,000)
TOO_MANY_CONCURRENT_REQUESTS429Too many requests running at once for this API user
SERVICE_BUSY503Temporarily overloaded — retry after Retry-After seconds
SERVICE_UNAVAILABLE503Temporarily unavailable — retry after Retry-After seconds
NOT_FOUND404No such endpoint
METHOD_NOT_ALLOWED405The endpoint does not accept this HTTP method
VIDEO_ID_REQUIRED400The video_id field is empty or missing
INVALID_VIDEO_ID400video_id is not a YouTube video ID or URL
VIDEO_NOT_FOUND404No such video, or it is private, removed or region-blocked (not charged)
TRANSCRIPT_NOT_FOUND404The video has no transcript in the requested language (not charged)
PAGE_BLOCKED422On-Page: the site refused the request (HTTP 401, 403 or 429), usually bot protection such as Cloudflare (not charged)
PAGE_UNAVAILABLE422On-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_REQUIRED400Business Data search was sent without categories, a name or a location (latitude + longitude + radius_km)
BUSINESS_REQUIRED400Business Data profile or reviews was sent without place_id, cid or name
UNKNOWN_CATEGORY400A 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_FOUND404Business Data: no business matched the name, place_id or cid (not charged)
KEYWORDS_REQUIRED400Trends: the keywords list is empty or missing
TOO_MANY_KEYWORDS400Trends: more than 5 keywords, or more than one for type: "related"
INVALID_TASK_ID400The task id in GET /v1/tasks/{task_id} is not a UUID
TASK_NOT_FOUND404No such task, or it was created by another API user — only the creating API user can read it
TASK_EXPIRED410The task's result is no longer stored — results are kept for 72 hours after the task finishes
TOO_MANY_PENDING_TASKS4291,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.

Last updated: 2026-11-06