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.

POST/v1/run/seo.domain_intersection
Requests
-
30d

Call it

Make your first 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
{
  "data": {
    "keywords": [
      {
        "cpc": 12.5,
        "firstRank": 1,
        "firstUrl": "https://example.com/page",
        "keyword": "a1b2c3d4",
        "keywordDifficulty": 42,
        "searchVolume": 12500,
        "secondRank": 1,
        "secondUrl": "https://example.com/page",
        "updatedUtc": 12.5
      }
    ]
  },
  "found": true
}
Response interface
interface SeoDomainIntersectionResponse {
  data: {
    keywords: {
      cpc?: number;
      firstRank: number;
      firstUrl?: string;
      keyword: string;
      keywordDifficulty?: number;
      searchVolume?: number;
      secondRank?: number;
      secondUrl?: string;
      updatedUtc?: number;
    }[];
  } | null;
  found: boolean;
}

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

Reference

Request, response, and price

Last verified 2026-09-16 · uptime and latency measured over 30d
POST /v1/run/seo.domain_intersection
curl -X POST https://api.getanyapi.com/v1/run/seo.domain_intersection \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"language":"en","limit":10,"location":2840,"target1":"github.com","target2":"gitlab.com"}'
FieldTypeExample value
Request body
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.
intersectionsbooleanWhen 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.
limitinteger10Maximum number of keywords to return. You are billed per returned result, so a lower limit costs less.
locationinteger2840Location code for SEO overlap metrics. The default is the United States.
orderByenumSort order for the returned keywords: by search volume, cost per click, or keyword difficulty, ascending or descending. Omit for the default order.
Response
dataobject
data.keywordsobject[]SEO keyword records both domains rank for. Populated whenever the provider has data for the entity.
data.keywords[].cpcnumberAverage paid-search cost per click in USD.
data.keywords[].firstRankintegerAbsolute organic ranking position for the first domain. Populated whenever the provider has data for the entity.
data.keywords[].firstUrlstringRanking URL for the first domain.
data.keywords[].keywordstringKeyword phrase both domains rank for. Populated whenever the provider has data for the entity.
data.keywords[].keywordDifficultyintegerEstimated organic ranking difficulty on a 0-100 scale.
data.keywords[].searchVolumeintegerAverage monthly search volume for the keyword.
data.keywords[].secondRankintegerAbsolute organic ranking position for the second domain. Absent when intersections is false (the second domain does not rank for this keyword).
data.keywords[].secondUrlstringRanking URL for the second domain. Absent when intersections is false.
data.keywords[].updatedUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
foundboolean
Price
Price per request (ceiling)USD$0.18864
Price /1k resultsUSD$0.18864

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.

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, each call draws it down, and a failed request costs $0.

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.