Ahrefs: scrapers and the official API, compared
Domain ratings, backlinks, referring domains, organic traffic and keyword metrics from Ahrefs.
Short answer
For most Ahrefs jobs, start with Ahrefs Domain Rating, Backlinks & Traffic Lookup: it covers 3 of 5 core fields (domain, rank, type) at $0.99 per 1,000 results on Apify's Free plan. The top published score for Ahrefs goes to Ahrefs Scraper: Domain Rating, Traffic, AI Leaderboards by sourabhbgp (78 of 100), a Store tool from another publisher, listed for reference.
From published Store listings, output schemas and the official documentation. Checked 2026-11-10. How the ranking works.Ahrefs Domain Rating, Backlinks & Traffic Lookup: inputs, code and costOpen in Apify Store
Route map
Each line is one way to get Ahrefs data; each stop is a field you probably need. Green lines are catalogue Actors, ranked by the published formula.
- 1 Ahrefs Domain Rating, Backlinks & Traffic Lookup 6 output fields, pay per event 3 of 5 core fields
$0.99 / 1K - + 7 other Store tools, combined Reference only 4 of 5 core fields
from $1.00 / 1K - API Ahrefs API v3 Public API fields not compared
Stops are fields. A ring means the field is in that route's published output schema; no ring means the line passes without it. Bold labels are the core fields for this website, the rest are fields that differ between routes. A white capsule means every data line stops there. The red line is the official API; its field coverage is not compared. A crossed red line means there is no open official API.
Catalogue Actors for Ahrefs
Ahrefs Domain Rating, Backlinks & Traffic Lookup
Look up a domain's public Ahrefs Domain Rating, linking-website count, global rank, and estimated organic traffic, with a mode to fetch just…
Field matrix: who returns what
Every tool with a published output schema, against the 5 fields most Ahrefs jobs need. A dot means the field name appears in the schema; rows can still leave it empty.
| Tool | domain | rank | organic | source | type | Fields |
|---|---|---|---|---|---|---|
| Ahrefs Domain Rating, Backlinks & Traffic Lookup | ● | ● | – | – | ● | 3/5 |
| Ahrefs Scraper: Domain Rating, Traffic, AI LeaderboardsReference only, by sourabhbgp | ● | ● | – | – | – | 2/5 |
| Ahrefs ScraperReference only, by radeance | ● | ● | – | ● | ● | 4/5 |
| Ahrefs Backlinks ScraperReference only, by piotrv1001 | ● | – | – | – | – | 1/5 |
| Ahrefs Scraper DR, Backlinks, Keywords, Traffic & AI VisibilityReference only, by memo23 | ● | – | – | – | ● | 2/5 |
| Ahrefs ScraperReference only, by parsebird | ● | – | – | – | ● | 2/5 |
| Ahrefs Scraper: DR, Backlinks, Traffic, Keywords & SERPReference only, by quarra | ● | – | – | – | ● | 2/5 |
| Ahrefs Traffic ScraperReference only, by piotrv1001 | ● | – | – | – | – | 1/5 |
| Tools returning it | 8 | 3 | 0 | 1 | 5 |
Field dictionary: the exact keys
The same core field has a different key in each Actor's output. Map these before you merge datasets; a dash means the published schema has no matching key. Need a field that is not listed here, such as email? Search every Ahrefs Actor by field.
| Core field | Ahrefs Domain Rating… |
|---|---|
| domain | domain, sourceDomain |
| rank | rank |
| organic | – |
| source | – |
| type | type |
All 9 tools, scored
Catalogue Actors link to their detail pages; the score (0 to 100) is the published formula, identical for every tool. Other Store tools follow in their own table, for reference. Price is the published primary-result rate per 1,000 (the Free-plan rate where the price is tiered; higher Apify plans pay less); start events and platform usage are excluded.
| Sample fields | ||||||
|---|---|---|---|---|---|---|
| 75 | Ahrefs Domain Rating, Backlinks & Traffic Lookup Catalogue Actor, pay per event | domain, sourceDomain, domainRating | 6 | $0.99 | 9 runs, too few to rate | Nov 2026 |
Other Store tools, for reference
Scored with the same published formula and listed for comparison only; this site does not link or recommend them.
| Sample fields | ||||||
|---|---|---|---|---|---|---|
| 78 | Ahrefs Scraper: Domain Rating, Traffic, AI Leaderboards Reference only, by sourabhbgp | domain, found, domainRating | 28 | $1.00 | 100% of 75 runs | Aug 2026 |
| 74 | Ahrefs Scraper Reference only, by radeance | domain, ahrefs_rank, keyword_difficulty_source | 81 | $10 | 100% of 24,818 runs | Oct 2026 |
| 71 | Ahrefs Backlinks Scraper Reference only, by piotrv1001 | targetDomain, sourceDomainRating, anchor | 5 | $1.00 | 97% of 389 runs | Oct 2026 |
| 68 | Ahrefs Scraper Reference only, by trakk | No published schema | – | $3.60 | 100% of 2,280 runs | Nov 2026 |
| 60 | Ahrefs Scraper DR, Backlinks, Keywords, Traffic & AI Visibility Reference only, by memo23 | refDomains, rowType, url | 9 | $10 | 100% of 880 runs | Nov 2026 |
| 59 | Ahrefs Scraper Reference only, by parsebird | domain, country, domain_rating | 15 | $8.99 | 100% of 156 runs | Oct 2026 |
| 58 | Ahrefs Scraper: DR, Backlinks, Traffic, Keywords & SERP Reference only, by quarra | referringDomains, tool, target | 49 | $9.00 | 96% of 28 runs | Nov 2026 |
| 52 | Ahrefs Traffic Scraper Reference only, by piotrv1001 | domain, country, organicTrafficMonthly | 4 | $8.00 | 75% of 117 runs | Oct 2026 |
Official API route
Ahrefs API v3
Ahrefs API v3 covers Site Explorer, Keywords Explorer, SERP Overview, Rank Tracker, Site Audit and more. It is available on eligible paid plans; other paid plans can run a limited set of free test queries.
Price. The pricing page lists Lite at $129, Standard at $249 and Advanced at $449 per month, each with API and MCP access. Requests consume API units by rows and fields, with a minimum of 50 units per request; Enterprise is through sales.
Limits. 60 requests per minute by default; requests may also be throttled under load. Consumed API units are non-refundable.
Terms and personal data
Ahrefs terms prohibit crawling or scraping its services and any automated use except through the Ahrefs API. This is general information, not legal advice.
Read Ahrefs' terms. Keep to public data, do not bypass logins or access controls, and check whether personal data is involved before you collect it. The can-I-scrape checklist walks through it.
How to start
- Open Ahrefs Domain Rating, Backlinks & Traffic Lookup and start from its default input; its Actor page has the full example input and code.
- Set the Ahrefs search, profile, listing or URL you need and a result limit; the required input is mode.
- Run it and export the dataset as JSON, CSV or Excel, or call it from the Apify API.
Call Ahrefs Domain Rating, Backlinks & Traffic Lookup from code
The example input uses the Actor's published defaults; set your own Ahrefs query before you run it. You need an Apify API token.
Python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run_input = {
"mode": "domain",
"domains": [
"wikipedia.org"
],
"includeHistory": False,
"includeKeywords": False,
"includeCountries": False,
"includeCompetitors": False,
"maxItems": 1,
"topWebsitesCountry": "worldwide",
"topWebsitesCategory": "all",
"topWebsitesRanking": "ranking",
"topWebsitesPage": 1
}
run = client.actor("vexaloom-labs/ahrefs-domain-rating-backlinks-and-traffic-lookup").call(run_input=run_input)
if run is None:
raise RuntimeError("The Actor run was not found.")
for item in client.dataset(run.default_dataset_id).iterate_items():
print(item) pip install apify-client
JavaScript
import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: "<YOUR_APIFY_TOKEN>" });
const input = {
"mode": "domain",
"domains": [
"wikipedia.org"
],
"includeHistory": false,
"includeKeywords": false,
"includeCountries": false,
"includeCompetitors": false,
"maxItems": 1,
"topWebsitesCountry": "worldwide",
"topWebsitesCategory": "all",
"topWebsitesRanking": "ranking",
"topWebsitesPage": 1
};
const run = await client.actor("vexaloom-labs/ahrefs-domain-rating-backlinks-and-traffic-lookup").call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items); npm install apify-client
cURL
curl -X POST "https://api.apify.com/v2/actors/vexaloom-labs~ahrefs-domain-rating-backlinks-and-traffic-lookup/run-sync-get-dataset-items" -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" -d '{"mode":"domain","domains":["wikipedia.org"],"includeHistory":false,"includeKeywords":false,"includeCountries":false,"includeCompetitors":false,"maxItems":1,"topWebsitesCountry":"worldwide","topWebsitesCategory":"all","topWebsitesRanking":"ranking","topWebsitesPage":1}' Waits for the run and returns the dataset items (runs over 300 seconds return HTTP 408; start an async run instead).
MCP (AI agents)
{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=vexaloom-labs/ahrefs-domain-rating-backlinks-and-traffic-lookup",
"headers": {
"Authorization": "Bearer <YOUR_APIFY_TOKEN>"
}
}
}
} Adds this Actor as a tool in an MCP client that takes a remote server URL (Cursor, VS Code, Claude Code) through Apify's hosted MCP server. OAuth sign-in also works without the header. Clients that only start local servers can wrap the URL with npx mcp-remote.
Questions people ask
What is the cheapest catalogue Actor for Ahrefs data?
Ahrefs Domain Rating, Backlinks & Traffic Lookup lists $0.99 per 1,000 results (pay per event), with 6 fields in its published output schema. Start events and platform usage are billed separately. Checked 2026-11-10.
Which Ahrefs scraper returns the most core fields?
Ahrefs Domain Rating, Backlinks & Traffic Lookup covers 3 of the 5 core Ahrefs fields this page tracks (domain, rank, organic, source, type), based on its published output schema.
Does Ahrefs have an official API?
Public API: Ahrefs API v3 covers Site Explorer, Keywords Explorer, SERP Overview, Rank Tracker, Site Audit and more. It is available on eligible paid plans; other paid plans can run a limited set of free test queries. The pricing page lists Lite at $129, Standard at $249 and Advanced at $449 per month, each with API and MCP access. Requests consume API units by rows and fields, with a minimum of 50 units per request; Enterprise is through sales.
Is it legal to scrape Ahrefs?
It depends on what you collect and how. Ahrefs terms prohibit crawling or scraping its services and any automated use except through the Ahrefs API. Read Ahrefs' terms (https://ahrefs.com/legal/terms) before you collect, and check whether personal data is involved. This is general information, not legal advice.
More on Ahrefs
- Official API pricingAhrefs API pricing, limits and access
- Topic groupSearch and ads data: every website compared
- ToolWhich Ahrefs route fits your job?
- ToolAhrefs cost by Apify plan, rows and runs
Related websites
- Similarweb1 Actor
- Ubersuggest1 Actor
- Google Search4 Actors
Sources
- Ahrefs Domain Rating, Backlinks & Traffic Lookup on Apify Store
- Ahrefs API v3 documentation
- Ahrefs API v3 pricing
- Official source, checked 2026-11-11
- Ahrefs terms
Cite this page
Scraper Finder. "How to get Ahrefs data." https://scraperfinder.com/sites/ahrefs/ (data checked 2026-11-10).
Highest-scoring catalogue Actor
Ahrefs Domain Rating, Backlinks & Traffic Lookup: 3 of 5 core fields, $0.99 per 1,000 results, score 75. The highest score overall is 78 (Ahrefs Scraper: Domain Rating, Traffic, AI Leaderboards, a Store tool from another publisher); both are in the table above.