SEO API

SEO Domain intersection API

Get AnyAPI SEO keyword overlap for two domains with each domain's rankings, URLs, volume, CPC, and difficulty as normalized JSON.

$0.18864/1k results, pay per request, no subscription.

What the API returnedkeywords[0]
{
"keyword": "git repository hosting",
"searchVolume": 18100,
"cpc": 4.21,
"keywordDifficulty": 58,
"firstRank": 2,
"firstUrl": "https://github.com/features",
"secondRank": 5,
"secondUrl": "https://gitlab.com/features",
... 7 more fields
}
Uptime
100.00%
30d · 46 calls
Requests
46
30d · weekly, last 12 wks
Response
1.3s
median · 30d

Call it

Get SEO domain intersection in one request

import os, requests

res = requests.post(
    "https://api.getanyapi.com/v1/run/seo.domain_intersection",
    headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"},
    json={
        "target1": "",
        "target2": ""
    },
)
print(res.json())
Open in
Get a free key
Sample response

This sample shows 18 of 19 fields. See every field

{
  "found": true,
  "data": {
    "keywords": [
      {
        "keyword": "git repository hosting",
        "searchVolume": 18100,
        "cpc": 4.21,
        "keywordDifficulty": 58,
        "firstRank": 2,
        "firstUrl": "https://github.com/features",
        "secondRank": 5,
        "secondUrl": "https://gitlab.com/features",
        "updatedUtc": 1758844800,
        "competition": "MEDIUM",
        "searchIntent": "commercial",
        "bidLow": 2.1,
        "bidHigh": 6.8,
        "firstTitle": "GitHub Features: Everything you need to ship faster",
        "secondTitle": "GitLab Features | The DevOps Platform"
      },
      {
        "keyword": "private git repository free",
        "searchVolume": 9900,
        "cpc": 3.4,
        "keywordDifficulty": 46,
        "firstRank": 1,
        "firstUrl": "https://github.com/pricing",
        "secondRank": 3,
        "secondUrl": "https://gitlab.com/pricing",
        "updatedUtc": 1758844800,
        "competition": "LOW",
        "searchIntent": "transactional",
        "bidLow": 1.6,
        "bidHigh": 4.9,
        "firstTitle": "GitHub Pricing",
        "secondTitle": "GitLab Pricing"
      },
      {
        "keyword": "ci cd pipeline tool",
        "searchVolume": 6600,
        "cpc": 5.75,
        "keywordDifficulty": 62,
        "firstRank": 6,
        "firstUrl": "https://github.com/features/actions",
        "secondRank": 1,
        "secondUrl": "https://gitlab.com/features/continuous-integration",
        "updatedUtc": 1758844800,
        "competition": "HIGH",
        "searchIntent": "commercial",
        "bidLow": 3.2,
        "bidHigh": 9.1,
        "firstTitle": "GitHub Actions",
        "secondTitle": "GitLab CI/CD"
      }
    ]
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • target1string

    github.com

    First domain to compare, without a protocol or leading www.

  • target2string

    gitlab.com

    Second domain to compare, without a protocol or leading www.

  • intersectionsboolean

    true

    When true (the default), return keywords both domains rank for (overlap). When false, return keywords the first domain ranks for that the second domain does NOT (the content-gap query); in that mode secondRank and secondUrl are absent.

  • languagestring

    en

    Language code for SEO overlap metrics.

  • limitinteger

    10

    Maximum number of keywords to return. You are billed per returned result, so a lower limit costs less.

  • locationinteger

    2840

    Location code for SEO overlap metrics. The default is the United States.

  • orderByenum

    volume_desc

    Sort order for the returned keywords: by search volume, cost per click, or keyword difficulty, ascending or descending. Omit for the default order.

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

each keyworddata.keywords[]

SEO keyword records both domains rank for. Populated whenever the provider has data for the entity.

  • bidHighnumber

    6.8

    Upper bound of the estimated paid-search top-of-page bid in USD.

  • bidLownumber

    2.1

    Lower bound of the estimated paid-search top-of-page bid in USD.

  • competitionstring

    MEDIUM

    Paid-search competition level for the keyword (LOW, MEDIUM, HIGH).

  • cpcnumber

    4.21

    Average paid-search cost per click in USD.

  • firstRankinteger

    2

    Absolute organic ranking position for the first domain. Populated whenever the provider has data for the entity.

  • firstTitlestring

    GitHub Features: Everything you need to ship faster

    Search-result title of the first domain's ranking page.

  • firstUrlstring

    https://github.com/features

    Ranking URL for the first domain.

  • keywordstring

    git repository hosting

    Keyword phrase both domains rank for. Populated whenever the provider has data for the entity.

  • keywordDifficultyinteger

    58

    Estimated organic ranking difficulty on a 0-100 scale.

  • searchIntentstring

    commercial

    Primary SEO search intent for the keyword.

  • searchVolumeinteger

    18100

    Average monthly search volume for the keyword.

  • secondRankinteger

    5

    Absolute organic ranking position for the second domain. Absent when intersections is false (the second domain does not rank for this keyword).

  • secondTitlestring

    GitLab Features | The DevOps Platform

    Search-result title of the second domain's ranking page. Absent when the second domain does not rank for this keyword.

  • secondUrlstring

    https://gitlab.com/features

    Ranking URL for the second domain. Absent when intersections is false.

  • updatedUtcnumber

    1758844800

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the SEO Domain intersection API

The AnyAPI SEO Domain intersection API returns SEO domain intersection data as normalized JSON from one POST call to /v1/run/seo.domain_intersection. Get AnyAPI SEO keyword overlap for two domains with each domain's rankings, URLs, volume, CPC, and difficulty as normalized JSON. AnyAPI returns one normalized schema whichever source serves it. It costs $0.19 per 1,000 results, and never more than $0.18864 for a single request, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of SEO domain intersection calls through AnyAPI succeeded, with a median response time of 1.3 seconds across 46 measured calls.

It costs $0.19 per 1,000 results, and never more than $0.18864 for a single request, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Get AnyAPI SEO keyword overlap for two domains with each domain's rankings, URLs, volume, CPC, and difficulty as normalized JSON. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 100.0% of SEO domain intersection calls through AnyAPI succeeded, with a median response time of 1.3 seconds across 46 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required.

Send a POST request to https://api.getanyapi.com/v1/run/seo.domain_intersection with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.