Ahrefs API

Preview

Ahrefs SEO metrics with stable schemas: keyword difficulty, SERP snapshots, keyword rank checks, website authority and broken links.

Base URLhttps://api.endpointry.com/v1/ahrefs

5 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_..."
200 · application/json
{
  "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.

Full API reference
  • GET/v1/ahrefs/keyword-difficulty500 points / call

    Check 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 / call

    Get 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 / call

    Check 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 / call

    Check 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 / call

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

Ready to build with the Ahrefs API?

Included in every plan: one subscription and one key cover the whole catalog.