Ahrefs API
PreviewAhrefs SEO metrics with stable schemas: keyword difficulty, SERP snapshots, keyword rank checks, website authority and broken links.
https://api.endpointry.com/v1/ahrefs5 endpoints · 500–1,000 points per call
- Authenticate with your single platform key:
Authorization: Bearer - Every success response is
{ meta, data } - Errors are RFC 9457 problem+json with stable codes
- Lists paginate through
meta.pagination
curl "https://api.endpointry.com/v1/ahrefs/keyword-difficulty?keyword=keyword+research" \
-H "Authorization: Bearer sk_live_..."{
"meta": {
"request_id": "req_7729f93d3facf68ff83e5c50",
"as_of": "2026-07-30T16:44:48.000Z",
"cache": "MISS"
},
"data": {
"keyword": "keyword research",
"country": "us",
"difficulty": 92,
"backlinks_needed": 932,
"serp": [
{
"position": 1,
"title": "Free Keyword Tool: Find the Right Keywords for SEO & AI",
"url": "https://www.semrush.com/analytics/keywordmagic/",
"domain_rating": 92,
"url_rating": 34,
"backlinks": 11653,
"referring_domains": 3776,
"traffic": 291387,
"traffic_value": 669737,
"keywords": 3532,
"top_keyword": "keyword research",
"top_keyword_volume": 600000,
"word_count": 1712
}
]
}
}Endpoints
What each one returns, with a live demo on its own page.
- GET
/v1/ahrefs/keyword-difficulty500 points / callCheck keyword difficulty
Keyword Difficulty API
Ahrefs keyword difficulty as JSON — the 0–100 score, the backlinks you’d need, and the SERP you’d be up against.
- GET
/v1/ahrefs/serp500 points / callGet a SERP snapshot
SERP Analysis API
The organic top of any Google SERP with Ahrefs page metrics — DR, backlinks, traffic and traffic value per result.
- GET
/v1/ahrefs/keyword-rank500 points / callCheck a keyword rank
Keyword Rank Checker API
Where a domain ranks for a keyword — the position, the exact ranking page, and the SERP it was measured in.
- GET
/v1/ahrefs/authority500 points / callCheck website authority
Domain Rating API
Ahrefs Domain Rating for any website, with backlink and referring-domain counts — one call, stable JSON.
- GET
/v1/ahrefs/broken-links1,000 points / callFind broken links
Broken Link Checker API
Broken backlinks pointing at a site and broken links leaving it — with anchors, context and the pages that carry them.
Use cases
What teams build with it
- Keyword vetting inside content and SEO tools, scored before writing startsKeyword Difficulty API
- SERP difficulty analysis: see the authority profile of page one at a glanceSERP Analysis API
- Rank tracking dashboards without running a scraping fleetKeyword Rank Checker API
- Link prospecting: score outreach targets by authority in bulkDomain Rating API
- Broken-link-building: find dead pages that still attract backlinksBroken Link Checker API
Ready to build with the Ahrefs API?
Included in every plan: one subscription and one key cover the whole catalog.