Skip to Content
Documentation

Get a SERP snapshot

SERP Analysis API · 500 points per successful call

Product overview and demoAll Ahrefs API endpointsError codes

GET
/v1/ahrefs/serp

Returns the organic results at the top of the search results page for a keyword in a chosen country, each with its position, title, URL and page-level metrics: domain and URL rating, backlinks, referring domains, estimated monthly traffic and its value, and the page’s strongest keyword. Non-organic blocks (local packs, ads) hold positions but are not returned, so positions may have gaps.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Your API key, sent as a bearer token. In the console on this page you can leave it empty: signed in, calls run on your own plan; otherwise they run on a shared demo key after a quick human check.

Query Parameters

keyword*string

The keyword to analyze.

Length1 <= length <= 200
country?string

Two-letter code of the country whose search results to read.

Match^[A-Za-z]{2}$
Default"us"

Response Body

Successful response

application/json
  1. response
meta*
data*
Example Request
curl -X GET 'https://api.endpointry.com/v1/ahrefs/serp?keyword=keyword+research&country=us'
Example Response
{
  "meta": {
    "request_id": "req_7729f93d3facf68ff83e5c50",
    "as_of": "2026-07-30T16:44:48.000Z",
    "cache": "MISS"
  },
  "data": {
    "keyword": "keyword research",
    "country": "us",
    "results": [
      {
        "position": 1,
        "title": "Free Keyword Tool: Find the Right Keywords for SEO & AI",
        "url": "https://www.semrush.com/analytics/keywordmagic/",
        "domain_rating": 92,
        "url_rating": 34,
        "backlinks": 11653,
        "referring_domains": 3776,
        "traffic": 291387,
        "traffic_value": 669737,
        "keywords": 3532,
        "top_keyword": "keyword research",
        "top_keyword_volume": 600000,
        "word_count": 1712
      },
      {
        "position": 2,
        "title": "Free Keyword Generator Tool: Find 100+ Keyword Ideas",
        "url": "https://ahrefs.com/keyword-generator",
        "domain_rating": 91,
        "url_rating": 24,
        "backlinks": 16259,
        "referring_domains": 5497,
        "traffic": 139455,
        "traffic_value": 346036,
        "keywords": 1536,
        "top_keyword": "keyword research",
        "top_keyword_volume": 600000,
        "word_count": 1171
      }
    ]
  }
}