curl --request POST \
--url https://api.scrapeunblocker.com/seo/ahrefs \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/seo/ahrefs"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/seo/ahrefs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Run Ahrefs' free SEO tools (DR, backlinks, traffic, keywords, KD, SERP)
Ahrefs’ free SEO tools as JSON, without an Ahrefs account. tool=authority&target=<domain>: domainRating, backlinks, referringDomains, dofollowBacklinksPercent, dofollowReferringDomainsPercent. tool=backlinks: the same plus topBacklinks (urlFrom, urlTo, title, anchor, textBefore/textAfter, domainRating). tool=traffic: organicTraffic, trafficValueUsd, trafficHistory, topPages, topCountries, topKeywords (country narrows it to one market). tool=broken-links: inbound broken backlinks and outbound broken links on the site’s pages. tool=keyword-difficulty&keyword=<phrase>: difficulty (0-100), referringDomainsToRank and the SERP results. tool=keywords: ideas and questionIdeas with difficulty and volume buckets, plus totals (Google). tool=serp: the top Google results (organic with metrics - DR, UR, backlinks, referring domains, traffic, value, keywords - plus AI overview, questions, shopping, local and news blocks). Domain tools take mode (subdomains, domain, prefix, exact). One call, one unit.
curl --request POST \
--url https://api.scrapeunblocker.com/seo/ahrefs \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/seo/ahrefs"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/seo/ahrefs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
Which Ahrefs free tool to run: 'authority' (Domain Rating), 'backlinks', 'traffic', 'broken-links' (these take target), 'keyword-difficulty', 'keywords' (keyword ideas), 'serp' (these take keyword).
Domain or URL for the domain tools, e.g. 'github.com' or 'https://github.com/features'.
Search phrase for the keyword tools, e.g. 'running shoes'.
Two-letter market code. Keyword tools: the search market (default 'us'). traffic: limits the estimate to that country (default: worldwide). Not used by the other domain tools.
Target scope for the domain tools: 'subdomains' (the domain with all its subdomains), 'domain' (without subdomains), 'prefix' (everything under the URL) or 'exact' (that URL only).
traffic only: 'both', 'http' or 'https'.
keywords only: also return question ideas.
Response
JSON with tool, query, found and the tool's fields (found: false, with empty fields, when Ahrefs has no data for the target or keyword).

