SEO API

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.

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

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())
Open in
Get a free key
Sample response
{
  "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"
}
Response interface
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 30d
POST /v1/run/seo.referring_domains
curl -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"}'
FieldTypeExample value
Request body
targetstring"ahrefs.com"Domain, subdomain, or full page URL to analyze. Send a domain without a protocol or leading www.
includeSubdomainsbooleanCount links pointing at the target's subdomains as well as the target itself.
limitinteger10Maximum number of referring domains to return. You are billed per returned result, so a lower limit costs less.
Response
dataobject
data.referringDomainsobject[]Domains linking to the target. Populated whenever the provider has data for the entity.
data.referringDomains[].backlinksintegerBacklinks from this domain to the target. Populated whenever the provider has data for the entity.
data.referringDomains[].brokenBacklinksintegerBacklinks from this domain to target pages that no longer resolve.
data.referringDomains[].brokenPagesintegerTarget pages with an error status that this domain still links to.
data.referringDomains[].domainstringReferring domain. Populated whenever the provider has data for the entity.
data.referringDomains[].firstSeenUtcnumberWhen 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[].linksByAttributeobjectCount of this domain's links to the target, by rel attribute (nofollow, sponsored, ugc, noopener, and so on).
data.referringDomains[].linksByCountryobjectCount 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[].linksByPlatformTypeobjectCount of this domain's links to the target, by type of linking site (blogs, news, ecommerce, and so on).
data.referringDomains[].linksBySemanticLocationobjectCount 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[].linksByTldobjectCount of this domain's links to the target, by top-level domain of the linking page.
data.referringDomains[].linksByTypeobjectCount of this domain's links to the target, by link type (anchor, image, redirect, canonical, alternate).
data.referringDomains[].lostUtcnumberWhen 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[].rankintegerAuthority rank of the referring domain on a 0-1000 scale. Populated whenever the provider has data for the entity.
data.referringDomains[].referringDomainsintegerDistinct domains linking to this referring domain.
data.referringDomains[].referringDomainsNofollowintegerDomains whose every link to this referring domain is nofollow.
data.referringDomains[].referringIpsintegerDistinct IP addresses among this domain's linking pages.
data.referringDomains[].referringMainDomainsintegerDistinct registrable domains linking to this referring domain.
data.referringDomains[].referringMainDomainsNofollowintegerRegistrable domains whose every link to this referring domain is nofollow.
data.referringDomains[].referringPagesintegerPages on this domain linking to the target.
data.referringDomains[].referringPagesNofollowintegerPages on this domain whose links to the target are all nofollow.
data.referringDomains[].referringSubnetsintegerDistinct subnets among this domain's linking pages.
data.referringDomains[].spamScoreintegerAverage spam score of this domain's backlinks on a 0-100 scale.
data.totalCountintegerTotal referring domains, before the limit. Populated whenever the provider has data for the entity.
foundboolean
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 resultsUSD$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.

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

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. 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.