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())
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 30dPOST /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"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| target1 | string | "github.com"First domain to compare, without a protocol or leading www. |
| target2 | string | "gitlab.com"Second domain to compare, without a protocol or leading www. |
| intersections | boolean | 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. |
| language | string | "en"Language code for SEO overlap metrics. |
| limit | integer | 10Maximum number of keywords to return. You are billed per returned result, so a lower limit costs less. |
| location | integer | 2840Location code for SEO overlap metrics. The default is the United States. |
| orderBy | enum | Sort order for the returned keywords: by search volume, cost per click, or keyword difficulty, ascending or descending. Omit for the default order. |
| Response | ||
| data | object | |
| data.keywords | object[] | SEO keyword records both domains rank for. Populated whenever the provider has data for the entity. |
| data.keywords[].cpc | number | Average paid-search cost per click in USD. |
| data.keywords[].firstRank | integer | Absolute organic ranking position for the first domain. Populated whenever the provider has data for the entity. |
| data.keywords[].firstUrl | string | Ranking URL for the first domain. |
| data.keywords[].keyword | string | Keyword phrase both domains rank for. Populated whenever the provider has data for the entity. |
| data.keywords[].keywordDifficulty | integer | Estimated organic ranking difficulty on a 0-100 scale. |
| data.keywords[].searchVolume | integer | Average monthly search volume for the keyword. |
| data.keywords[].secondRank | integer | Absolute organic ranking position for the second domain. Absent when intersections is false (the second domain does not rank for this keyword). |
| data.keywords[].secondUrl | string | Ranking URL for the second domain. Absent when intersections is false. |
| data.keywords[].updatedUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| found | boolean | |
| Price | ||
| Price per request (ceiling) | USD | $0.18864 |
| Price /1k results | USD | $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.
More to call
Other SEO endpoints
Competitors domainfrom $0.18864 /1k resultsDomain rank overviewfrom $14.55 /1k reqDomain technologiesfrom $14.40 /1k reqDomains by technologyfrom $1.35 /1k resultsKeyword difficultyfrom $0.17438 /1k keywordsKeyword ideasfrom $0.17496 /1k resultsKeyword overviewfrom $0.180543 /1k keywordsKeyword suggestionsfrom $0.17496 /1k resultsLocal packfrom $2.40 /1k reqRanked keywordsfrom $0.17496 /1k resultsRelated keywordsfrom $0.17496 /1k resultsSearch intentfrom $0.17438 /1k keywordsSearch volumefrom $108.00 /1k req