Extensions → Apps Script → paste the code → Save. Then Project Settings → Script properties → add APIBL_KEY with your key. In any cell: =APIBL_DR(A2) for Domain Rating, =APIBL_METRICS(A2) for DR, backlinks and referring domains in three cells, =APIBL_REFDOMAINS(A2, 20) for the 20 strongest referring domains. DR and metrics are free; referring domains cost $0.0002 per formula refresh. Results are cached for six hours by Sheets.
const APIBL = 'https://apibacklinks.com/api/v1';
function apibl_(action, params) {
const key = PropertiesService.getScriptProperties().getProperty('APIBL_KEY');
const qs = Object.keys(params).map(k => k + '=' + encodeURIComponent(params[k])).join('&');
const cache = CacheService.getScriptCache(), ck = action + '?' + qs;
const hit = cache.get(ck); if (hit) return JSON.parse(hit);
const r = UrlFetchApp.fetch(APIBL + '/' + action + '?' + qs, {headers: {'X-API-Key': key}, muteHttpExceptions: true});
const d = JSON.parse(r.getContentText());
if (!d.ok) throw new Error(d.error || ('HTTP ' + r.getResponseCode()));
const s = JSON.stringify(d); if (s.length < 90000) cache.put(ck, s, 21600);
return d;
}
/** Domain Rating 0-100 of a domain. @customfunction */
function APIBL_DR(domain) { return apibl_('domain', {q: domain}).metrics?.dr ?? 0; }
/** DR, backlinks and referring domains in one row. @customfunction */
function APIBL_METRICS(domain) {
const m = apibl_('domain', {q: domain}).metrics || {};
return [[m.dr || 0, m.backlinks || 0, m.ref_domains || 0]];
}
/** The strongest referring domains: domain, DR, links. @customfunction */
function APIBL_REFDOMAINS(domain, n) {
const d = apibl_('refdomains', {q: domain, sort: 'dr', per: Math.max(10, Math.min(100, n || 20))});
return [['Referring domain', 'DR', 'Links']].concat(d.rows.slice(0, n || 20).map(r => [r.domain, r.dr, r.links]));
}
Use the HTTP step every one of them has. Method GET, header X-API-Key = your key, the URL below. The answer is JSON: map rows to the next step (one item per row).
| tool | step | notes |
|---|---|---|
| n8n | HTTP Request → Authentication: Generic → Header Auth (name X-API-Key) | Then Split Out on rows; Schedule Trigger for a weekly report |
| Make | HTTP → Make a request, Parse response: Yes | Iterator on rows |
| Zapier | Webhooks by Zapier → GET (or Custom Request) | Line items come from rows |
# referring domains of a domain, strongest first https://apibacklinks.com/api/v1/refdomains?q=example.com&sort=dr&per=100 # DR and link counts of up to 2,000 domains (POST, one domain per line) https://apibacklinks.com/api/v1/bulk_dr # link gap: donors of competitors that do not link to you https://apibacklinks.com/api/v1/linkgap?q=your-site.com&vs=competitor1.com,competitor2.com
Claude, Cursor, VS Code and other MCP clients can call the API as tools: overview, DR, bulk DR, referring domains, backlinks, anchors, link intersect, link gap, search and more. Each tool call is one API call at its usual price.
# 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" } } } }
More in the API docs; machine-readable specs: OpenAPI · Postman.
Up to 100,000 backlinks in one file, with every filter of the report. Priced per started 1,000 rows; unused rows are refunded. In the Explorer the All button above a table does the same for up to 10,000 rows.
curl -s 'https://apibacklinks.com/api/v1/export?report=backlinks&q=example.com&follow=dofollow&limit=50000' -H 'X-API-Key: YOUR_KEY' -o backlinks.csv
List up to 20 domains in the cabinet under Monitoring. On every new build of the index we compare each one with its last snapshot and tell you what changed: referring domains gained and lost among its top 100, and the change in backlinks, referring domains and DR. By email, and as a JSON POST to your https webhook (Slack, n8n, Zapier catch hooks, your own endpoint). Free.
{"event":"backlinks.changed","domain":"example.com","data_date":"2026-12-18",
"new_referring_domains":[{"domain":"news.site","dr":71,"links":3}],
"lost_referring_domains":[{"domain":"old.blog","dr":40,"links":1}],
"backlinks":{"now":120400,"change":2310},"referring_domains":{"now":3120,"change":41},"dr":{"now":58,"change":1}, …}