Errors
Failures return an error, never fabricated data. A failed search still returns the full envelope, so you can see what happened.
| Status | Meaning | Billed |
|---|---|---|
200 | Valid response, organic_success: true | Yes |
401 | Missing or invalid API key | No |
403 | The account is suspended. | No |
409 | request_id reused for a different request, its first request still running, or the page asked for (format: "html") under an id whose page is not stored. detail says which. | No |
422 | Invalid parameters, or a combination this tier does not serve. detail says which. | No |
429 | Concurrency, per-minute or monthly limit reached. Nothing was searched; retry after Retry-After seconds. | No |
502 | The search could not be completed after internal retries | No |
503 | No capacity. With Retry-After: no free search slot, nothing started or stored; resend the same request after that many seconds. Without it: detail says what is missing, for example no ready profile for the country yet. | No |
Body of a failed search
{
"search_metadata": {
"id": "4e06…",
"status": "Failed",
"verdict": "captcha",
"total_time_taken": 6.41
},
"search_parameters": {
"engine": "google",
"q": "coffee shops london",
"gl": "gb",
"hl": "en-GB",
"start": 0
},
"organic_results": [],
"organic_success": false,
"pagination": {
"current": 1
},
"error": "captcha"
}Read search_metadata.verdict and error for the reason. Three attempts were made here; none is billed, and pagination.next_start is left out because the page did not answer.
Body of a 429
{
"detail": "…",
"limit": "rate",
"allowed": 300,
"retry_after": 4
}limit is concurrency (too many searches in flight) rate (too many started per minute) or monthly (this month’s searches are used; Retry-After runs to the 1st, UTC); allowed is the limit’s value and retry_after repeats the header. See Rate limits.