General API

Errors

Failures return an error, never fabricated data. A failed search still returns the full envelope, so you can see what happened.

StatusMeaningBilled
200Valid response, organic_success: trueYes
401Missing or invalid API keyNo
403The account is suspended.No
409request_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
422Invalid parameters, or a combination this tier does not serve. detail says which.No
429Concurrency, per-minute or monthly limit reached. Nothing was searched; retry after Retry-After seconds.No
502The search could not be completed after internal retriesNo
503No 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.

Talk to the team

What are you building?

Your message goes to our team on Telegram. See our Privacy Policy.