SEO Referring domains API
Get AnyAPI SEO referring domains for a domain or URL, each with its backlink count, authority rank, spam score, and first seen date as normalized JSON.
Call it
Make your first request
import os, requests res = requests.post( "https://api.getanyapi.com/v1/run/seo.referring_domains", headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"}, json={ "target": "" }, ) print(res.json())
{
"data": {
"referringDomains": [
{
"backlinks": 42,
"brokenBacklinks": 42,
"brokenPages": 29,
"domain": "example.com",
"firstSeenUtc": 12.5,
"linksByAttribute": {},
"linksByCountry": {},
"linksByPlatformType": {},
"linksBySemanticLocation": {},
"linksByTld": {},
"linksByType": {},
"lostUtc": 12.5,
"rank": 1,
"referringDomains": 42,
"referringDomainsNofollow": 42,
"referringIps": 42,
"referringMainDomains": 42,
"referringMainDomainsNofollow": 42,
"referringPages": 29,
"referringPagesNofollow": 29,
"referringSubnets": 42,
"spamScore": 5
}
],
"totalCount": 12500
},
"found": true,
"reason": "not_found"
}interface SeoReferringDomainsResponse {
data: {
referringDomains: {
backlinks?: number;
brokenBacklinks?: number;
brokenPages?: number;
domain: string;
firstSeenUtc?: number;
linksByAttribute?: {
};
linksByCountry?: {
};
linksByPlatformType?: {
};
linksBySemanticLocation?: {
};
linksByTld?: {
};
linksByType?: {
};
lostUtc?: number;
rank?: number;
referringDomains?: number;
referringDomainsNofollow?: number;
referringIps?: number;
referringMainDomains?: number;
referringMainDomainsNofollow?: number;
referringPages?: number;
referringPagesNofollow?: number;
referringSubnets?: number;
spamScore?: number;
}[];
totalCount?: number;
} | null;
found: boolean;
reason?: "not_found";
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-24 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/seo.referring_domains \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":10,"target":"ahrefs.com"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| target | string | "ahrefs.com"Domain, subdomain, or full page URL to analyze. Send a domain without a protocol or leading www. |
| includeSubdomains | boolean | Count links pointing at the target's subdomains as well as the target itself. |
| limit | integer | 10Maximum number of referring domains to return. You are billed per returned result, so a lower limit costs less. |
| Response | ||
| data | object | |
| data.referringDomains | object[] | Domains linking to the target. Populated whenever the provider has data for the entity. |
| data.referringDomains[].backlinks | integer | Backlinks from this domain to the target. Populated whenever the provider has data for the entity. |
| data.referringDomains[].brokenBacklinks | integer | Backlinks from this domain to target pages that no longer resolve. |
| data.referringDomains[].brokenPages | integer | Target pages with an error status that this domain still links to. |
| data.referringDomains[].domain | string | Referring domain. Populated whenever the provider has data for the entity. |
| data.referringDomains[].firstSeenUtc | number | When a link from this domain was first seen. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.referringDomains[].linksByAttribute | object | Count of this domain's links to the target, by rel attribute (nofollow, sponsored, ugc, noopener, and so on). |
| data.referringDomains[].linksByCountry | object | Count of this domain's links to the target, by country code of the linking domain. An empty key means the country is unknown. |
| data.referringDomains[].linksByPlatformType | object | Count of this domain's links to the target, by type of linking site (blogs, news, ecommerce, and so on). |
| data.referringDomains[].linksBySemanticLocation | object | Count of this domain's links to the target, by the page section holding the link (article, footer, nav, and so on). An empty key means no section was detected. |
| data.referringDomains[].linksByTld | object | Count of this domain's links to the target, by top-level domain of the linking page. |
| data.referringDomains[].linksByType | object | Count of this domain's links to the target, by link type (anchor, image, redirect, canonical, alternate). |
| data.referringDomains[].lostUtc | number | When this domain's last link to the target was lost, if it was. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.referringDomains[].rank | integer | Authority rank of the referring domain on a 0-1000 scale. Populated whenever the provider has data for the entity. |
| data.referringDomains[].referringDomains | integer | Distinct domains linking to this referring domain. |
| data.referringDomains[].referringDomainsNofollow | integer | Domains whose every link to this referring domain is nofollow. |
| data.referringDomains[].referringIps | integer | Distinct IP addresses among this domain's linking pages. |
| data.referringDomains[].referringMainDomains | integer | Distinct registrable domains linking to this referring domain. |
| data.referringDomains[].referringMainDomainsNofollow | integer | Registrable domains whose every link to this referring domain is nofollow. |
| data.referringDomains[].referringPages | integer | Pages on this domain linking to the target. |
| data.referringDomains[].referringPagesNofollow | integer | Pages on this domain whose links to the target are all nofollow. |
| data.referringDomains[].referringSubnets | integer | Distinct subnets among this domain's linking pages. |
| data.referringDomains[].spamScore | integer | Average spam score of this domain's backlinks on a 0-100 scale. |
| data.totalCount | integer | Total referring domains, before the limit. Populated whenever the provider has data for the entity. |
| found | boolean | |
| 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. |
| Price | ||
| Price per request (ceiling) | USD | $0.0768 |
| Price /1k results | USD | $0.08 |
FAQ
About the SEO Referring domains API
The AnyAPI SEO Referring domains API returns SEO referring domains data as normalized JSON from one POST call to /v1/run/seo.referring_domains. Get AnyAPI SEO referring domains for a domain or URL, each with its backlink count, authority rank, spam score, and first seen date as normalized JSON. AnyAPI returns one normalized schema whichever source serves it. It costs $0.08 per 1,000 results, and never more than $0.0768 for a single request, in US dollars with no subscription and no monthly minimum.