Overview & Purpose

GET /serp answers a different question than the other endpoints: not “what’s on this page?” but “what do the search results say?” It returns parsed organic results, not raw search-results HTML. Use it when you need search results themselves — rank tracking, competitive research, “what’s currently ranking for X” — rather than the content of a page you already have the URL for. If you already have a URL, use Scrape instead. Prerequisites: a valid API key. No special scope required.

Best practices

  • Not every field is always returned. Knowledge graph, People Also Ask, sitelinks, and an estimated result total are all best-effort — treat their absence as normal, not an error.
  • Localize with country and language rather than embedding location terms in query — it’s more reliable and doesn’t cost extra query length.
  • Set a tag per keyword or campaign so you can filter and trace searches in Request history.

Practical Implementation Example

Scenario: get the top ranked pages for a keyword, as seen from a specific country and language.

Error codes