SEO Backlink anchors API
Get AnyAPI SEO anchor texts of the backlinks pointing at a domain or URL, each with backlink and referring domain counts, authority rank, and spam score as normalized JSON.
Call it
Make your first request
import os, requests res = requests.post( "https://api.getanyapi.com/v1/run/seo.backlink_anchors", headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"}, json={ "target": "" }, ) print(res.json())
{
"data": {
"anchors": [
{
"anchor": "example",
"backlinks": 42,
"brokenBacklinks": 42,
"brokenPages": 29,
"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 SeoBacklinkAnchorsResponse {
data: {
anchors: {
anchor?: string;
backlinks?: number;
brokenBacklinks?: number;
brokenPages?: number;
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.backlink_anchors \
-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 anchor texts to return. You are billed per returned result, so a lower limit costs less. |
| status | enum | Count backlinks that are live now, ones that have been lost, or both. |
| Response | ||
| data | object | |
| data.anchors | object[] | Anchor texts of backlinks to the target. Populated whenever the provider has data for the entity. |
| data.anchors[].anchor | string | Anchor text. Absent for links without text, such as image links. Populated whenever the provider has data for the entity. |
| data.anchors[].backlinks | integer | Backlinks counted. Populated whenever the provider has data for the entity. |
| data.anchors[].brokenBacklinks | integer | Backlinks pointing at pages that no longer resolve. |
| data.anchors[].brokenPages | integer | Linked pages with an error status. |
| data.anchors[].firstSeenUtc | number | When the first of these backlinks was seen. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.anchors[].linksByAttribute | object | Count of these backlinks, by rel attribute (nofollow, sponsored, ugc, noopener, and so on). |
| data.anchors[].linksByCountry | object | Count of these backlinks, by country code of the linking domain. An empty key means the country is unknown. |
| data.anchors[].linksByPlatformType | object | Count of these backlinks, by type of linking site (blogs, news, ecommerce, and so on). |
| data.anchors[].linksBySemanticLocation | object | Count of these backlinks, by the page section holding the link (article, footer, nav, and so on). An empty key means no section was detected. |
| data.anchors[].linksByTld | object | Count of these backlinks, by top-level domain of the linking page. |
| data.anchors[].linksByType | object | Count of these backlinks, by link type (anchor, image, redirect, canonical, alternate). |
| data.anchors[].lostUtc | number | When the last of these backlinks was lost, if they were. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.anchors[].rank | integer | Authority rank on a 0-1000 scale. Populated whenever the provider has data for the entity. |
| data.anchors[].referringDomains | integer | Distinct linking domains. |
| data.anchors[].referringDomainsNofollow | integer | Linking domains whose every link is nofollow. |
| data.anchors[].referringIps | integer | Distinct IP addresses of linking pages. |
| data.anchors[].referringMainDomains | integer | Distinct linking registrable domains. |
| data.anchors[].referringMainDomainsNofollow | integer | Linking registrable domains whose every link is nofollow. |
| data.anchors[].referringPages | integer | Distinct linking pages. |
| data.anchors[].referringPagesNofollow | integer | Linking pages whose links are all nofollow. |
| data.anchors[].referringSubnets | integer | Distinct subnets of linking pages. |
| data.anchors[].spamScore | integer | Average spam score of those backlinks on a 0-100 scale. |
| data.totalCount | integer | Total anchor texts, 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 Backlink anchors API
The AnyAPI SEO Backlink anchors API returns SEO backlink anchors data as normalized JSON from one POST call to /v1/run/seo.backlink_anchors. Get AnyAPI SEO anchor texts of the backlinks pointing at a domain or URL, each with backlink and referring domain counts, authority rank, and spam score 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.