Access the Ahrefs API with managed authentication. Read Site Explorer, Keywords Explorer, SERP Overview, Rank Tracker, and Site Audit data; manage Rank Tracker projects and keyword lists. Most reports spend paid API units and projects are shared with the workspace, so small reads come first and every write or large report needs the user's explicit approval. All access runs through the Maton gateway and the maton CLI.
Permissions
Suggested read access
In the Console, Read limits the connection to these 163 read-only endpoints, plus deny rules for any write endpoint a broader rule would otherwise match. Endpoints Maton has found to return credentials, start jobs, or spend credits are left out; a few reads that can change state or return a secret depending on their parameters stay in, and their descriptions say how. It is a suggestion: the saved rules are exactly the ones you see, and you can change them with Custom. See Access policy.
Reference
Paths start with v3/: https://api.ahrefs.com/v3/site-explorer/domain-rating becomes /ahrefs/v3/site-explorer/domain-rating. Each report returns one top-level object named after it (domain_rating, metrics, keywords, …).
Connect with maton connection create ahrefs; the Ahrefs connection guide shows where to create the API key.
Public Endpoints
maton api '/ahrefs/v3/public/domain-rating-free?target=example.com'
maton api '/ahrefs/v3/public/domain-rating-top-domains?limit=10'
maton api '/ahrefs/v3/public/crawler-ips'Response:
{"domain_rating": {"domain_rating": 72.0, "license": "…"}}These are free and work with any key. crawler-ip-ranges returns the AhrefsBot ranges in CIDR form.
Site Explorer
maton api '/ahrefs/v3/site-explorer/domain-rating?target=example.com&date=2026-12-01'
maton api '/ahrefs/v3/site-explorer/backlinks-stats?target=example.com&date=2026-12-01&mode=subdomains'
maton api '/ahrefs/v3/site-explorer/organic-keywords?target=example.com&date=2026-12-01&country=us&select=keyword,volume,best_position,sum_traffic&order_by=sum_traffic:desc&limit=20'Response:
{"metrics": {"live": 15230, "all_time": 48712, "live_refdomains": 812, "all_time_refdomains": 2045}}target is a domain, URL, or path; mode is exact, prefix, domain, or subdomains (the default). date (YYYY-MM-DD) is required on most Site Explorer reports. List reports such as all-backlinks, refdomains, organic-keywords, top-pages, and organic-competitors need select with the columns to return, and take where (a JSON filter), order_by (column:asc|desc), and limit. The units a report costs grow with the rows and columns returned.
Keywords Explorer and SERP Overview
maton api '/ahrefs/v3/keywords-explorer/overview?keywords=crm%20software&country=us&select=keyword,volume,difficulty,cpc'
maton api '/ahrefs/v3/keywords-explorer/matching-terms?keywords=crm&country=us&select=keyword,volume&limit=20'
maton api '/ahrefs/v3/serp-overview/serp-overview?keyword=crm%20software&country=us&select=position,url,title,domain_rating&top_positions=10'keywords takes a comma-separated list; country is a two-letter code and required.
Rank Tracker, Site Audit, and Management
maton api '/ahrefs/v3/management/projects'
maton api '/ahrefs/v3/rank-tracker/overview?project_id={project_id}&device=desktop&date=2026-12-01&select=keyword,position,volume,url'
maton api '/ahrefs/v3/site-audit/projects'Rank Tracker and Management reads are free. v3/management/projects lists the workspace's projects and their IDs; POST, PATCH, and DELETE under v3/management/ change projects, tracked keywords, competitors, and keyword lists.
Usage
maton api '/ahrefs/v3/subscription-info/limits-and-usage'Response:
{
"limits_and_usage": {
"subscription": "Enterprise",
"usage_reset_date": "2027-01-01T00:00:00Z",
"units_limit_workspace": 2000000,
"units_usage_workspace": 15400,
"units_limit_api_key": null,
"units_usage_api_key": 3200,
"api_key_expiration_date": "2027-06-30T00:00:00Z"
}
}Notes
- Authentication: the connection holds an Ahrefs API key, created under Account settings → API keys by a workspace owner or admin, and sent as a Bearer token.
- Plans: a key from a free account reaches only the public endpoints under
v3/public/; every other endpoint needs API v3 access (an Enterprise plan or the API add-on) and answers401otherwise. - API units: most reports cost at least 50 units a request, more for more rows and columns, and units are not refunded. Rank Tracker, management, and public endpoints are free.
POSTtraffic, competitive analysis, batch analysis, and Brand Radar reports read data and still cost units. - Connection metadata: none.
- Units: responses carry
x-api-units-cost-total(the units charged) andx-api-rows. Queries againstahrefs.com,yep.com, orfirehose.com(or the keywordsahrefs,yep,firehose) are free, which makes them good for trying a report. - Errors: a JSON body with an
errormessage;400a bad parameter,401a wrong key or one without API v3 access for the endpoint,429rate limited. - Rate limits: 60 requests a minute.