Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • JSON-RPC 2.0: every call is a POST to /v4 with a JSON body {id, method, params}; the method name is case-sensitive and picks the report.
  • Every response is HTTP 200, errors included: check for an error object instead of result.
  • The se parameter is the search database: g_ plus a country code (g_us, g_uk, g_de and so on) or bing_us.
  • Credits are charged per row returned on most reports (see each endpoint) and 1 credit even for an empty result; identical repeated requests are charged again.
  • Rate limit: 1 request per second on most plans, up to 10 on top tiers. A report returns at most 60,000 rows; page and size page through it (size usually up to 1000).
  • The API needs a paid or trial plan with API access.

Endpoints

Get domain SEO summary

  • 5 credits per domain returned; 1 credit even when nothing is found.

List a domain’s organic keywords

  • 1 credit per keyword returned; 1 credit even when nothing is found.
  • At most the first 60,000 rows of a report are reachable through the API.

List a domain’s organic competitors

  • 1 credit per competitor returned. Replaces the deprecated getCompetitors.

Get keyword metrics

  • 1 credit per keyword returned; at most 1000 results per query.

Find keywords containing a keyword

  • 1 credit per row returned; only the first 60,000 rows are reachable.

Get the top 100 results for a keyword

  • 1 credit per result row. This is Serpstat’s stored SERP snapshot, not a live search.
  • 5 credits per request. Summary figures can differ slightly from the detailed backlink reports.

Get API credit usage

  • Free: spends no credits.