Reef AI: ask for any data. Try it
Looking for the overview — what this API returns, what it costs, and a call you can run without a key? See the Ahrefs Free SEO Tools API page →
docs / ahrefs

Ahrefs Free SEO Tools

Ahrefs' free SEO tools as JSON: Domain Rating, backlinks and the top 20 backlinks, broken links, website traffic, keyword ideas, keyword difficulty, SERP and rank checks, XML sitemap and AI visibility for a brand.

base /ahrefs/v113 endpoints
post/ahrefs/v1/website_authority3 credits

Ahrefs' Website Authority Checker for a domain or URL: Domain Rating (DR, 0-100), the number of backlinks and referring domains, and the share of dofollow backlinks and dofollow referring domains (percent). An address Ahrefs has no links for answers DR 0 and zero counts (has_data false).

ParameterAllowed / rangeDescription
targetrequired—A domain (ahrefs.com), a subdomain, or a page / folder URL (https://ahrefs.com/blog/). An ahrefs.com tool link with ?input= is also accepted. For mode prefix / exact write the host exactly as the site serves it (www.bbc.co.uk/news, not bbc.co.uk/news).
Try in playground →
post/ahrefs/v1/traffic3 credits

Ahrefs' Website Traffic Checker. All channels: last month's visits, unique visitors and page views with the previous month, 6 months of visits, the top 5 channels, top 5 countries and top 5 pages. Organic search: monthly organic traffic and its value in USD, 6 months of organic traffic, the top 5 pages (traffic and share), top 5 countries (share) and top 5 keywords (position and traffic). `country` changes only the organic top pages and top keywords (without it Ahrefs uses the site's own top country); totals and history are worldwide. `mode` sets the scope for the organic figures.

ParameterAllowed / rangeDescription
targetrequired—A domain (ahrefs.com), a subdomain, or a page / folder URL (https://ahrefs.com/blog/). An ahrefs.com tool link with ?input= is also accepted. For mode prefix / exact write the host exactly as the site serves it (www.bbc.co.uk/news, not bbc.co.uk/news).
mode = subdomainsoptionalsubdomains · domain · prefix · exactWhat the target covers: subdomains (the domain and every subdomain, default), domain (without subdomains), prefix (every URL starting with the given path), exact (that URL only).
countryoptionalaf · al · dz · as · ad · ao · ai · ag · ar · am · aw · au · at · az · bs · bh · bd · bb · by · be · bz · bj · bm · bt · bo · ba · bw · br · vg · bn · bg · bf · bi · cv · kh · cm · ca · ky · cf · td · cl · cn · co · cg · ck · cr · ci · hr · cu · cy · cz · cd · dk · dj · dm · do · ec · eg · sv · gq · ee · sz · et · fo · fj · fi · fr · gf · pf · ga · gm · ge · de · gh · gi · gr · gl · gd · gp · gu · gt · gg · gn · gy · ht · hn · hk · hu · is · in · id · ir · iq · ie · im · il · it · jm · jp · je · jo · kz · ke · ki · kw · kg · la · lv · lb · ls · lr · ly · li · lt · lu · mg · mw · my · mv · ml · mt · mq · mr · mu · yt · mx · fm · md · mc · mn · me · ms · ma · mz · mm · na · nr · np · nl · nc · nz · ni · ne · ng · nu · mk · no · om · pk · pw · ps · pa · pg · py · pe · ph · pn · pl · pt · pr · qa · re · ro · ru · rw · sh · kn · lc · vc · ws · sm · st · sa · sn · rs · sc · sl · sg · sk · si · sb · so · za · kr · es · lk · sr · se · ch · sy · tw · tj · tz · th · tl · tg · tk · to · tt · tn · tr · tm · tv · vi · ug · ua · ae · gb · us · uy · uz · vu · ve · vn · ye · zm · zwCountry for the organic top pages and top keywords: ISO-2 code (de) or name (Germany); 217 countries. Default: the site's own top country.
Try in playground →
post/ahrefs/v1/sitemap3 credits

Ahrefs' XML Sitemap Generator: the site's indexable URLs from Ahrefs' crawl with each URL's last-modified date, up to the tool's cap of 1000 URLs, plus how many URLs were crawled and how many were excluded (redirects, non-canonical, noindex, errors) and whether the cap was reached.

ParameterAllowed / rangeDescription
targetrequired—A domain (ahrefs.com), a subdomain, or a page / folder URL (https://ahrefs.com/blog/). An ahrefs.com tool link with ?input= is also accepted. For mode prefix / exact write the host exactly as the site serves it (www.bbc.co.uk/news, not bbc.co.uk/news).
Try in playground →
post/ahrefs/v1/keyword_ideas3 credits

Ahrefs' Keyword Generator (Google): the 20 keyword ideas and 20 question ideas the free tool shows for a seed keyword in one country, each with its search-volume band (e.g. >1000), keyword difficulty label (Easy / Medium / Hard / N/A) and when Ahrefs last updated it, plus the total number of ideas Ahrefs has. 217 countries.

ParameterAllowed / rangeDescription
keywordrequired—The search query (up to 200 characters).
country = usoptionalaf · al · dz · as · ad · ao · ai · ag · ar · am · aw · au · at · az · bs · bh · bd · bb · by · be · bz · bj · bm · bt · bo · ba · bw · br · vg · bn · bg · bf · bi · cv · kh · cm · ca · ky · cf · td · cl · cn · co · cg · ck · cr · ci · hr · cu · cy · cz · cd · dk · dj · dm · do · ec · eg · sv · gq · ee · sz · et · fo · fj · fi · fr · gf · pf · ga · gm · ge · de · gh · gi · gr · gl · gd · gp · gu · gt · gg · gn · gy · ht · hn · hk · hu · is · in · id · ir · iq · ie · im · il · it · jm · jp · je · jo · kz · ke · ki · kw · kg · la · lv · lb · ls · lr · ly · li · lt · lu · mg · mw · my · mv · ml · mt · mq · mr · mu · yt · mx · fm · md · mc · mn · me · ms · ma · mz · mm · na · nr · np · nl · nc · nz · ni · ne · ng · nu · mk · no · om · pk · pw · ps · pa · pg · py · pe · ph · pn · pl · pt · pr · qa · re · ro · ru · rw · sh · kn · lc · vc · ws · sm · st · sa · sn · rs · sc · sl · sg · sk · si · sb · so · za · kr · es · lk · sr · se · ch · sy · tw · tj · tz · th · tl · tg · tk · to · tt · tn · tr · tm · tv · vi · ug · ua · ae · gb · us · uy · uz · vu · ve · vn · ye · zm · zwCountry database: ISO-2 code (us) or name; 217 countries. Default us.
include_questions = trueoptional—Also return the question ideas (default true).
Try in playground →
post/ahrefs/v1/keyword_difficulty3 credits

Ahrefs' Keyword Difficulty Checker: Keyword Difficulty (KD, 0-100), roughly how many referring domains a page needs to rank in the top 10, the date of the SERP snapshot, and the Google top 10 with every result's type; the top 3 organic results carry Ahrefs metrics (DR, UR, backlinks, referring domains, traffic, traffic value, keywords, top keyword and its volume, word count, Ahrefs Rank) — the free tool publishes them for those 3 only (47 of 47 SERPs measured).

ParameterAllowed / rangeDescription
keywordrequired—The search query (up to 200 characters).
country = usoptionalaf · al · dz · as · ad · ao · ai · ag · ar · am · aw · au · at · az · bs · bh · bd · bb · by · be · bz · bj · bm · bt · bo · ba · bw · br · vg · bn · bg · bf · bi · cv · kh · cm · ca · ky · cf · td · cl · cn · co · cg · ck · cr · ci · hr · cu · cy · cz · cd · dk · dj · dm · do · ec · eg · sv · gq · ee · sz · et · fo · fj · fi · fr · gf · pf · ga · gm · ge · de · gh · gi · gr · gl · gd · gp · gu · gt · gg · gn · gy · ht · hn · hk · hu · is · in · id · ir · iq · ie · im · il · it · jm · jp · je · jo · kz · ke · ki · kw · kg · la · lv · lb · ls · lr · ly · li · lt · lu · mg · mw · my · mv · ml · mt · mq · mr · mu · yt · mx · fm · md · mc · mn · me · ms · ma · mz · mm · na · nr · np · nl · nc · nz · ni · ne · ng · nu · mk · no · om · pk · pw · ps · pa · pg · py · pe · ph · pn · pl · pt · pr · qa · re · ro · ru · rw · sh · kn · lc · vc · ws · sm · st · sa · sn · rs · sc · sl · sg · sk · si · sb · so · za · kr · es · lk · sr · se · ch · sy · tw · tj · tz · th · tl · tg · tk · to · tt · tn · tr · tm · tv · vi · ug · ua · ae · gb · us · uy · uz · vu · ve · vn · ye · zm · zwCountry of the Google SERP: ISO-2 code or name; default us.
Try in playground →
post/ahrefs/v1/serp3 credits

Ahrefs' SERP Checker: the Google top 10 for a keyword in a country as Ahrefs stores it — organic results (Ahrefs page metrics on the top 3, as the free tool shows), AI Overview text and its sources, People Also Ask questions, ads, local pack, shopping, image pack, top stories and other blocks with their positions — and the date of the snapshot.

ParameterAllowed / rangeDescription
keywordrequired—The search query (up to 200 characters).
country = usoptionalaf · al · dz · as · ad · ao · ai · ag · ar · am · aw · au · at · az · bs · bh · bd · bb · by · be · bz · bj · bm · bt · bo · ba · bw · br · vg · bn · bg · bf · bi · cv · kh · cm · ca · ky · cf · td · cl · cn · co · cg · ck · cr · ci · hr · cu · cy · cz · cd · dk · dj · dm · do · ec · eg · sv · gq · ee · sz · et · fo · fj · fi · fr · gf · pf · ga · gm · ge · de · gh · gi · gr · gl · gd · gp · gu · gt · gg · gn · gy · ht · hn · hk · hu · is · in · id · ir · iq · ie · im · il · it · jm · jp · je · jo · kz · ke · ki · kw · kg · la · lv · lb · ls · lr · ly · li · lt · lu · mg · mw · my · mv · ml · mt · mq · mr · mu · yt · mx · fm · md · mc · mn · me · ms · ma · mz · mm · na · nr · np · nl · nc · nz · ni · ne · ng · nu · mk · no · om · pk · pw · ps · pa · pg · py · pe · ph · pn · pl · pt · pr · qa · re · ro · ru · rw · sh · kn · lc · vc · ws · sm · st · sa · sn · rs · sc · sl · sg · sk · si · sb · so · za · kr · es · lk · sr · se · ch · sy · tw · tj · tz · th · tl · tg · tk · to · tt · tn · tr · tm · tv · vi · ug · ua · ae · gb · us · uy · uz · vu · ve · vn · ye · zm · zwCountry of the Google SERP: ISO-2 code or name; default us.
Try in playground →
post/ahrefs/v1/keyword_rank3 credits

Ahrefs' Keyword Rank Checker: where a domain or URL ranks on Google for a keyword in a country — the best position Ahrefs has stored for it with that result (is_ranking false and position null when it has none) — and the top 10 for comparison.

ParameterAllowed / rangeDescription
keywordrequired—The search query (up to 200 characters).
targetrequired—A domain (ahrefs.com), a subdomain, or a page / folder URL (https://ahrefs.com/blog/). An ahrefs.com tool link with ?input= is also accepted. For mode prefix / exact write the host exactly as the site serves it (www.bbc.co.uk/news, not bbc.co.uk/news).
country = usoptionalaf · al · dz · as · ad · ao · ai · ag · ar · am · aw · au · at · az · bs · bh · bd · bb · by · be · bz · bj · bm · bt · bo · ba · bw · br · vg · bn · bg · bf · bi · cv · kh · cm · ca · ky · cf · td · cl · cn · co · cg · ck · cr · ci · hr · cu · cy · cz · cd · dk · dj · dm · do · ec · eg · sv · gq · ee · sz · et · fo · fj · fi · fr · gf · pf · ga · gm · ge · de · gh · gi · gr · gl · gd · gp · gu · gt · gg · gn · gy · ht · hn · hk · hu · is · in · id · ir · iq · ie · im · il · it · jm · jp · je · jo · kz · ke · ki · kw · kg · la · lv · lb · ls · lr · ly · li · lt · lu · mg · mw · my · mv · ml · mt · mq · mr · mu · yt · mx · fm · md · mc · mn · me · ms · ma · mz · mm · na · nr · np · nl · nc · nz · ni · ne · ng · nu · mk · no · om · pk · pw · ps · pa · pg · py · pe · ph · pn · pl · pt · pr · qa · re · ro · ru · rw · sh · kn · lc · vc · ws · sm · st · sa · sn · rs · sc · sl · sg · sk · si · sb · so · za · kr · es · lk · sr · se · ch · sy · tw · tj · tz · th · tl · tg · tk · to · tt · tn · tr · tm · tv · vi · ug · ua · ae · gb · us · uy · uz · vu · ve · vn · ye · zm · zwCountry of the Google SERP: ISO-2 code or name; default us.
Try in playground →
post/ahrefs/v1/ai_visibility3 credits

Ahrefs' AI Visibility Checker for a brand: total AI citations, citations per AI assistant (ChatGPT, Gemini, Perplexity, Copilot, Grok, Google AI Overviews, Google AI Mode…), a 6-month citation timeline per assistant, and the top 5 cited domains, top 5 cited pages and top 5 topics. A brand with no mentions answers 0 citations and empty lists.

ParameterAllowed / rangeDescription
brandrequired—The brand name to look for in AI answers (up to 100 characters).
Try in playground →
post/ahrefs/v1/ai_overviews3 credits

Ahrefs' AI Overviews Tracker for a brand: mentions in Google AI Overviews, new mentions this cycle, number of topics and domains, the top 5 topics, top 5 cited domains and pages, and 6-month timelines for AI Overviews and AI Mode.

ParameterAllowed / rangeDescription
brandrequired—The brand name to look for in AI answers (up to 100 characters).
Try in playground →
post/ahrefs/v1/ai_mode3 credits

Ahrefs' AI Mode Tracker for a brand: mentions in Google AI Mode, new mentions this cycle, number of topics and domains, the top 5 topics, top 5 cited domains and pages, and 6-month timelines for AI Mode and AI Overviews.

ParameterAllowed / rangeDescription
brandrequired—The brand name to look for in AI answers (up to 100 characters).
Try in playground →
post/ahrefs/v1/filtersfree

The values the other actions accept: the 217 countries (ISO-2 code and name), the 4 scope modes, the volume bands and difficulty labels as the tools print them. No upstream request.

Try in playground →
Built for volume
5M+ requests a day

Measured at 60 requests a second across the fleet, with no central bottleneck. Volume pricing is on request, and per-key limits are raised for high-volume accounts.

Missing a source?
We build it

Tell us a site we do not cover yet and it becomes an engine. A customer asked for bestprice.gr on a Sunday and it was in the catalog the next day.

Support
2 minute median reply

Median time from a question in the live chat to the first answer, measured across every answered conversation. Setup help included, no support tier to buy.

One key, one balance
Every API included

No per-site plans and no separate subscriptions. One key and one credit pool across the whole catalog, so adding a source costs nothing up front.

Planning something large? Tell us the volume and the sources and we will come back with what it costs and what we would have to build.