apibacklinks apibacklinks

Backlink API documentation

Every report on this site is available as JSON, with CORS enabled (Access-Control-Allow-Origin: *). Domain Rating, link counts and domain statistics (domain, overview, stats, suggest) are free. The other actions need an API key and are charged per call from your balance. Per-domain reports are served from a pre-aggregated distillate (millisecond lookups); deep pagination and heavy filters fall back to the raw link store.

Data: Own web link index · refreshed roughly monthly · 798,560,911,485 backlinks · 181,132,097 domains.

Two ways to call it

URLkeyanswers
https://apibacklinks.com/api/v1/<action>?q=…header X-API-Key: … or Authorization: Bearer …the report JSON plus _balance (cost and remaining balance in dollars); errors are HTTP 4xx and are not charged
https://apibacklinks.com/api.php?action=<action>&q=…the same headers, or ?key=… in the URLthe old URL, kept for existing integrations: the report JSON plus _credits (cost and balance in its old units of $0.0001); free actions work without a key

Machine-readable: OpenAPI · Postman · MCP server. Both return the same report fields. /api/v1/account shows your balance; /api/v1/ping is a free uptime check without a key and checks the key when you send one.

Authentication & pricing

Sign up to get an API key and $100 on your balance for free (no card). Each call is charged from your dollar balance; there is no subscription and no monthly minimum. Top up any amount in your account.

actionscost per callkey
domain, overview, stats, suggestfreenot needed on /api.php
bulk_dr (authority), compare, top, dr_distribution, tld_breakdown$0.0001required
refdomains, backlinks (refpages), anchors, toppages, anchor_cloud, intersect, linkgap$0.0002required
search, keyword$0.0003required
export (CSV)the report's price per started 1,000 rowsrequired

Each call is billed once, whatever the number of rows (up to 1,000 per call; deep pagination is capped at 50,000 rows). bulk_dr takes up to 2,000 domains in one call. An empty balance returns HTTP 402, a missing or invalid key HTTP 401. A call the index fails to answer, or one rejected as invalid, is not charged. Top-ups of $500 and more get a volume bonus: +5 % from $500, +10 % from $2,000, +15 % from $5,000.

Answers are kept for a day (the index is rebuilt roughly monthly), so asking the same thing again answers at once; the header X-Cache: HIT marks such an answer. On very big domains (over 300 million backlinks) the "contains" filters of backlinks — target, anchor, title, src, rel, atype — and, over 2 billion, grouping are refused at once with HTTP 400 too_broad (not charged): they would have to read every link. src_exact always works.

Get your key — $100 free

Response envelope

Every response is JSON with an ok boolean. List endpoints add rows, total, page, per. Errors: {"ok":false,"error":"…"}.

{ "ok": true, "domain": "moz.com", "summary": { "backlinks": 5681074, "ref_domains": 81774, "dr": 67, ... } }

Per-domain reports

actionparamsreturns
overviewqfull dashboard: summary (backlinks, ref_domains, dofollow, DR, dates), top-5 referring domains / anchors / pages, DR & TLD distributions
domainqcompact metrics for one domain (DR, backlinks, ref_domains, dofollow) — ideal for programmatic lookups
refdomainsq, sort, order, page, per, follow, min_dr, max_dr, min_links, tld, domain, from, totop-100 referring domains with links, dofollow, donor DR, first/last seen
backlinksq, group=domain|page, sort, order, page, per, follow, rel, ltype, atype, oneper, anchor, src, src_exact, target, title, tld, min_dr, from, toindividual backlinks (or grouped by referring domain / page)
anchorsq, sort, order, page, per, anchor, follow, min_linkstop-50 anchor texts with counts, dofollow, share %
anchor_cloudq, pertop anchors with share % (fast, distillate)
toppagesq, sort, order, page, per, url, follow, min_backlinkstop-50 most-linked target pages with backlinks and dofollow
dr_distributionqreferring-domain count per DR bucket (0-14 … 70-100)
tld_breakdownqreferring domains grouped by TLD

Bulk & multi-domain

actionparamsreturns
bulk_dr (alias: authority)domains — up to 2000, comma/space/newline separated (GET ?domains= or POST body)DR + backlinks + ref_domains for every domain in one call (missing domains returned with zeros)
compareq — up to 20 domains, comma separatedside-by-side DR, backlinks, ref_domains, dofollow
intersectq — 2 to 10 domains, comma separatedreferring domains shared by ≥2 targets (link intersect), ranked by overlap & links
linkgapq — your domain, vs — 1 to 10 competitors, comma separated; min_hits, min_dr, sort=hits|dr|links, perreferring domains of the competitors that do not link to you, with how many competitors each links to and which (from the top-100 referring domains of each domain)
# Bulk DR — POST a list (best for scoring thousands of domains)
curl -s 'https://apibacklinks.com/api/v1/bulk_dr' -H 'X-API-Key: YOUR_KEY' --data-binary $'github.com\nmoz.com\nnytimes.com'

# Bulk DR — GET, the old URL with the key in the query
curl -s 'https://apibacklinks.com/api.php?action=bulk_dr&domains=github.com,moz.com,ahrefs.com&key=YOUR_KEY'

# Link intersect — who links to all three
curl -s 'https://apibacklinks.com/api/v1/intersect?q=moz.com,ahrefs.com,semrush.com' -H 'X-API-Key: YOUR_KEY'

# Link gap — donors of two competitors that do not link to moz.com, linking to both
curl -s 'https://apibacklinks.com/api/v1/linkgap?q=moz.com&vs=ahrefs.com,semrush.com&min_hits=2' -H 'X-API-Key: YOUR_KEY'

CSV export

Any report as a CSV file in one request: report is the action, then that action's own parameters. backlinks streams up to limit rows (default 10,000, at most 100,000) straight from the index; the other reports give their full list (at most 1,000 rows). The price is the report's price for every started 1,000 rows: the full limit is reserved first, and what was not sent goes back to your balance at the end. A failed export is not charged.

# all dofollow backlinks of moz.com from DR 30+, newest first, up to 50,000 rows
curl -s 'https://apibacklinks.com/api/v1/export?report=backlinks&q=moz.com&follow=dofollow&min_dr=30&limit=50000' -H 'X-API-Key: YOUR_KEY' -o moz_backlinks.csv

# the old URL works too
curl -s 'https://apibacklinks.com/api.php?action=export&report=refdomains&q=moz.com&key=YOUR_KEY' -o moz_refdomains.csv

Google Sheets, n8n, Make, Zapier and webhooks of backlink monitoring: Integrations.

Search & global

actionparamsreturns
searchq (query), field=anchor|title|url, follow, ltype, tld, domain, sort=seen_date, page, perfull-text search across a sample of backlinks (Elasticsearch)
keywordkw (exact anchor text), sort=rel|links|dr, page, persites that receive links with this exact anchor, ranked by DR × links
toppage, per, orderdomains with Domain Rating 90 and above
suggestqdomain autocomplete
stats—dataset totals

OpenAPI, Postman & MCP

The same /api/v1 endpoints, described for tools and AI agents. Prices and refunds are exactly as above.

whataddressuse it for
OpenAPI 3.1https://apibacklinks.com/openapi.jsonclient generators, Swagger UI, ChatGPT actions, API gateways
Postmanhttps://apibacklinks.com/postman.jsonImport → Link in Postman; set the apiKey variable
MCP serverhttps://apibacklinks.com/mcpClaude, Cursor, VS Code and other MCP clients: 16 tools (overview, DR, bulk DR, referring domains, backlinks, anchors, link intersect, link gap, search …)

The MCP server speaks Streamable HTTP and takes your API key in the X-API-Key header (or Authorization: Bearer). Each tool call is one API request charged from your balance; get_account and the overview tools are free.

# Claude Code
claude mcp add --transport http apibacklinks https://apibacklinks.com/mcp --header "X-API-Key: YOUR_KEY"

# Claude Desktop, Cursor, VS Code … (mcp.json / claude_desktop_config.json)
{
  "mcpServers": {
    "apibacklinks": {
      "type": "http",
      "url": "https://apibacklinks.com/mcp",
      "headers": { "X-API-Key": "YOUR_KEY" }
    }
  }
}

Notes

  • DR (Domain Rating, 0–100) is a log scale of referring-domain count: round(100·log(ref_domains+1)/log(2·10⁷)).
  • Pagination: page (1-based) & per (10–1000). Sorting: sort + order=asc|desc.
  • Domains are normalised (lower-case, www. stripped) before lookup.
  • Rate limit: 600 requests a minute per key on /api/v1.
  • Please cache results and keep bulk calls reasonable. The data comes from our own web link graph. It is refreshed roughly monthly, so very recent links may be missing.