SEO API

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.

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

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())
Open in
Get a free key
Sample response
{
  "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"
}
Response interface
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 30d
POST /v1/run/seo.backlink_anchors
curl -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"}'
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 anchor texts to return. You are billed per returned result, so a lower limit costs less.
statusenumCount backlinks that are live now, ones that have been lost, or both.
Response
dataobject
data.anchorsobject[]Anchor texts of backlinks to the target. Populated whenever the provider has data for the entity.
data.anchors[].anchorstringAnchor text. Absent for links without text, such as image links. Populated whenever the provider has data for the entity.
data.anchors[].backlinksintegerBacklinks counted. Populated whenever the provider has data for the entity.
data.anchors[].brokenBacklinksintegerBacklinks pointing at pages that no longer resolve.
data.anchors[].brokenPagesintegerLinked pages with an error status.
data.anchors[].firstSeenUtcnumberWhen 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[].linksByAttributeobjectCount of these backlinks, by rel attribute (nofollow, sponsored, ugc, noopener, and so on).
data.anchors[].linksByCountryobjectCount of these backlinks, by country code of the linking domain. An empty key means the country is unknown.
data.anchors[].linksByPlatformTypeobjectCount of these backlinks, by type of linking site (blogs, news, ecommerce, and so on).
data.anchors[].linksBySemanticLocationobjectCount 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[].linksByTldobjectCount of these backlinks, by top-level domain of the linking page.
data.anchors[].linksByTypeobjectCount of these backlinks, by link type (anchor, image, redirect, canonical, alternate).
data.anchors[].lostUtcnumberWhen 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[].rankintegerAuthority rank on a 0-1000 scale. Populated whenever the provider has data for the entity.
data.anchors[].referringDomainsintegerDistinct linking domains.
data.anchors[].referringDomainsNofollowintegerLinking domains whose every link is nofollow.
data.anchors[].referringIpsintegerDistinct IP addresses of linking pages.
data.anchors[].referringMainDomainsintegerDistinct linking registrable domains.
data.anchors[].referringMainDomainsNofollowintegerLinking registrable domains whose every link is nofollow.
data.anchors[].referringPagesintegerDistinct linking pages.
data.anchors[].referringPagesNofollowintegerLinking pages whose links are all nofollow.
data.anchors[].referringSubnetsintegerDistinct subnets of linking pages.
data.anchors[].spamScoreintegerAverage spam score of those backlinks on a 0-100 scale.
data.totalCountintegerTotal anchor texts, 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 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.

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