Pull backlink data from both Ahrefs API v3 and the Semrush Backlinks API for a cross-verified backlink audit

domain: docs.ahrefs.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. For Ahrefs, create an API key in Account settings (workspace owner/admin only) and authenticate requests with an Authorization: Bearer header; note keys expire after one year and must be rotated
  2. Query the relevant Ahrefs Site Explorer v3 backlinks endpoints for referring domains, backlink lists, and anchor text, applying the documented row-limit and filtering parameters per plan tier
  3. For Semrush, call the Backlinks API (v4 analytics/backlinks endpoints, e.g. the overview report) with a target and scope (ROOT_DOMAIN, SUBDOMAIN, SUBFOLDER, or PAGE) parameter
  4. Track API unit consumption for Semrush calls before running large jobs, since cost varies by endpoint and row count and can exhaust a plan's balance quickly on wide audits
  5. Normalize both providers' output (domain rating/authority scores are provider-specific and not directly comparable) into a common schema keyed by referring domain and target URL
  6. Flag backlinks appearing in only one provider's index as lower-confidence signals rather than treating either dataset as a complete crawl of the link graph

Known gotchas

Related routes

Access backlink and keyword data using the Ahrefs API
ahrefs.com · 5 steps · unrated
Automate technical SEO monitoring with the Semrush Site Audit API
seo-tools · 5 steps · unrated
Pull backlink and Domain Authority metrics from the Moz Links API for a backlink audit
seo-tools · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans