Catalog

Ahrefs API

Ahrefs data through one normalized API - per-request USD pricing and no subscriptions.

Endpoints5Providers1From · keywords$5.01/1k req · OctopusFull breakdownRead docs
Uptime
98.78%
30d · 1,974 calls
Requests
1,974
30d · weekly, last 12 wks
Response
8.9s
median · 30d
POST

Keywords

Most used
/v1/run/ahrefs.keywordsahrefs.keywords
Get the Ahrefs keyword-difficulty metrics for any search term: the difficulty score (0-100) and the number of referring domains a page needs to rank in the top 10 - as normalized JSON.
900 /mo
▼9.3%
100.00%
8792ms p50
1
price$5.01/1k req
Octopus
POST

Overview

/v1/run/ahrefs.overviewahrefs.overview
Get an SEO authority overview for any domain or URL: Domain Rating, total backlinks, and referring domains - as normalized JSON. For the keywords a domain ranks for, use seo.ranked_keywords.
464 /mo
▲266.7%
97.41%
8588ms p50
1
price$5.01/1k req
Octopus
POST

Traffic

/v1/run/ahrefs.trafficahrefs.traffic
Get the Ahrefs organic traffic overview for any domain or URL: monthly traffic estimate and value, the top 5 keywords it already ranks for with position and traffic, top pages, traffic by country, and a monthly traffic history - as normalized JSON. For a domain's full ranked-keyword list with search volume and difficulty, use seo.ranked_keywords.
367 /mo
▲2485.7%
98.09%
8987ms p50
1
price$5.01/1k req
Octopus
POST

Keyword ideas

/v1/run/ahrefs.keyword_ideasahrefs.keyword_ideas
Get related keyword suggestions for any seed term, each with an Ahrefs difficulty and search-volume bucket.
148 /mo
▼69.9%
100.00%
9236ms p50
1
price$5.01/1k req
Octopus
POST

Backlinks

/v1/run/ahrefs.backlinksahrefs.backlinks
Get the referring pages linking to a domain or URL, each with the source page, anchor text, linking domain rating, and page title.
95 /mo
▲400%
94.74%
10024ms p50
1
price$5.01/1k req
Octopus

About the Ahrefs API

Open an endpoint for its live route, a copy-paste cURL and a sample response.

Measured performance

What the Ahrefs API actually does

Every call through AnyAPI over the last 30 days, counted here rather than promised.

98.8%
of calls succeeded (1,974 calls)
Succeeded on first lane 98.8%Failed 1.2%
Response time estimate (1,950 calls across endpoints)
Weighted p50 estimate
8.9s
Request-weighted average of endpoint p50 values, not a combined request percentile
Weighted p99 estimate
64.5s
Request-weighted average of endpoint p99 values, not a combined request percentile

FAQ

About the Ahrefs API

The AnyAPI Ahrefs API returns Ahrefs data as normalized JSON across 5 endpoints: backlinks, keyword ideas, keywords, overview, and traffic. You call one endpoint per job with a single key, and AnyAPI returns one normalized schema whichever source serves it. Pricing is in US dollars, from $5.01 per 1,000 requests on the cheapest endpoint, with no subscription and no monthly minimum. Over the last 30 days, 98.8% of Ahrefs calls through AnyAPI succeeded, with a request-weighted median response time of 8.9 seconds across 1,974 measured calls.

Pricing is in US dollars, from $5.01 per 1,000 requests on the cheapest endpoint, with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

5 endpoints: backlinks, keyword ideas, keywords, overview, and traffic. Every one takes the same authentication and returns the same normalized response shape, so reaching a second Ahrefs endpoint is a change of URL and nothing else.

Over the last 30 days, 98.8% of Ahrefs calls through AnyAPI succeeded, with a request-weighted median response time of 8.9 seconds across 1,974 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.