Ahrefs Site Explorer API

Fetch data from Site Explorer reports

GitHub OpenAPI
Business capability
Digital Marketing Management BC-400.60

Operations 28

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /site-explorer/domain-rating Get a domain's rating · Domain rating #
Ask an LLM
“What is the domain rating of a website?”
“Can I get a domain's rating for a specific date?”
Tell an agent
Get the domain rating of {target} on {date}.
Show domain rating for {target}.
GET /site-explorer/metrics Get a site's traffic and keyword metrics · Metrics #
Ask an LLM
“How much organic traffic does a site get?”
“Can I get keyword traffic and volume for a country?”
Tell an agent
Get metrics for {target} on {date}.
Show traffic and keyword metrics for {target} in {country}.
GET /site-explorer/ai-responses-count Count AI search responses for a site · AI Responses Count #
Ask an LLM
“How many AI search responses does a site get?”
“Can I break down AI responses by model?”
Tell an agent
Count AI responses for {target} using {select}.
Show {select} AI response counts for {target}.
GET /site-explorer/refdomains-history Get a site's referring domains over time · Refdomains history #
Ask an LLM
“How has a site's referring domains changed over time?”
“Can I see referring domains history grouped by month?”
Tell an agent
Get referring domains history for {target} from {date_from} to {date_to}.
Show {target}'s referring domains by {history_grouping} since {date_from}.
GET /site-explorer/domain-rating-history Get a site's domain rating history · Domain Rating history #
Ask an LLM
“How has a site's domain rating trended over time?”
“Can I see domain rating history for a date range?”
Tell an agent
Get domain rating history for {target} from {date_from} to {date_to}.
Show {target}'s domain rating by {history_grouping} since {date_from}.
GET /site-explorer/url-rating-history Get a page's URL rating history · URL Rating history #
Ask an LLM
“How has a single page's URL rating changed over time?”
“Can I get URL rating history for a date range?”
Tell an agent
Get URL rating history for {target} from {date_from} to {date_to}.
Show {target}'s URL rating by {history_grouping} since {date_from}.
GET /site-explorer/pages-history Get a site's page rankings over time · Pages history #
Ask an LLM
“Which pages rank in the top 10 for a site?”
“Can I see page rankings history for a country?”
Tell an agent
Get page rankings history for {target} from {date_from} to {date_to}.
Show {target}'s top 10 pages in {country} by {history_grouping} since {date_from}.
GET /site-explorer/metrics-history Get a site's traffic metrics history · Metrics history #
Ask an LLM
“How has a site's organic traffic changed over time?”
“Can I get traffic metrics history grouped by month?”
Tell an agent
Get traffic metrics history for {target} from {date_from} to {date_to}.
Show {target}'s traffic metrics by {history_grouping} since {date_from}.
GET /site-explorer/keywords-history Get a site's keyword rankings history · Keywords history #
Ask an LLM
“Which keywords does a site rank for over time?”
“Can I see keyword rankings history for a country?”
Tell an agent
Get keyword rankings history for {target} from {date_from} to {date_to}.
Show {target}'s keyword rankings in {country} by {history_grouping} since {date_from}.
GET /site-explorer/metrics-by-country Get a site's traffic metrics by country · Metrics by country #
Ask an LLM
“How much traffic does a site get in each country?”
“Can I break down a site's traffic metrics by country?”
Tell an agent
Get traffic metrics for {target} on {date}.
Show {target}'s traffic metrics by country on {date}.
GET /site-explorer/pages-by-traffic Get a site's pages by traffic · Pages by traffic #
Ask an LLM
“Which pages on a site get the most traffic?”
“Can I get a site's pages ranked by traffic volume?”
Tell an agent
Get pages of {target} by traffic.
Show {target}'s top pages ranked by traffic in {country}.
GET /site-explorer/refdomains List referring domains to a site · Refdomains #
Ask an LLM
“Which domains link to a website?”
“Can I get referring domains for a URL?”
Tell an agent
List referring domains to {target}.
Show referring domains to {target} matching {where}.
GET /site-explorer/anchors List anchor text used for a site's backlinks · Anchors #
Ask an LLM
“What anchor text do backlinks to a site use?”
“Can I get anchor text for a URL?”
Tell an agent
List anchor text used for backlinks to {target}.
Show backlink anchors to {target} matching {where}.
GET /site-explorer/linkeddomains List domains a site links to · Linked Domains #
Ask an LLM
“Which domains does a website link out to?”
“Can I get a site's outgoing links?”
Tell an agent
List domains linked by {target}.
Show outgoing links from {target} matching {where}.
GET /site-explorer/linked-anchors-external Export links pointing to external sites · Outgoing external anchors #
Ask an LLM
“Which links on a site point to external domains?”
“Can I see the anchor text used on external outbound links?”
Tell an agent
Get external outbound anchors for {target}.
Show external links from {target} matching {where}.
GET /site-explorer/linked-anchors-internal Export links pointing to pages on the same site · Outgoing internal anchors #
Ask an LLM
“Which internal pages link to a given page?”
“What anchor text is used on pages within my site?”
Tell an agent
Get internal outbound anchors for {target}.
Show internal links from {target} matching {where}.
GET /site-explorer/organic-keywords Get a site's organic keywords · Organic keywords #
Ask an LLM
“Which keywords is a site ranking for organically?”
“Can I compare a site's organic keywords to a date in the past?”
Tell an agent
Get the organic keywords for {target} on {date}.
Show {select} for {target} in {country} on {date} ordered by {order_by}.
GET /site-explorer/organic-competitors List organic competitors in a country · Organic competitors #
Ask an LLM
“Who ranks for my keywords in a given country?”
“Which sites are organic competitors of mine in the US?”
Tell an agent
List organic competitors of {target} in {country} on {date}.
Compare {target} to its competitors in {country} from {date} to {date_compared}.
GET /site-explorer/top-pages List a site's top pages · Top pages #
Ask an LLM
“What are the top pages of a site by traffic?”
“Can I list a site's top pages for a specific date?”
Tell an agent
List the top pages of {target} on {date}.
Show {select} for {target} on {date} ordered by {order_by}.
GET /site-explorer/paid-pages List pages with paid ads · Paid pages #
Ask an LLM
“Which pages on a site run paid ads?”
“How many ad impressions did a page get in a country?”
Tell an agent
List paid pages for {target} in {country} on {date}.
Show pages on {target} that had ads in {country} on {date}.
GET /site-explorer/total-search-volume-history Get a site's total search volume history · Total search volume history #
Ask an LLM
“How has a site's total search volume changed over time?”
“Can I see a site's search volume history grouped by week or month?”
Tell an agent
Get the total search volume history for {target} from {date_from} to {date_to}.
Show {target}'s search volume history from {date_from} grouped by {history_grouping}.
GET /site-explorer/crawled-pages List pages a site has been crawled for · Crawled pages #
Ask an LLM
“Which pages of a site have been crawled by Ahrefs?”
“Can I filter a site's crawled pages by HTTP status or last crawled date?”
Tell an agent
List the crawled pages of {target}.
Show {select} for {target} where {where}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ahrefs:ahrefs-site-explorer-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ahrefs-site-explorer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ahrefs Site Explorer API
  description: Ahrefs API v3 gives programmatic access to Ahrefs' SEO, marketing, and AI-search data — backlinks, organic and paid traffic, keywords, SERPs, rank tracking, site audits, brand/AI-search visibility, web and social analytics, and account management. This is the full spec for every tool; each tool also has its own spec under /reference/.
  termsOfService: https://ahrefs.com/terms
  contact:
    name: Ahrefs
    url: https://ahrefs.com/
    email: support@ahrefs.com
  version: 3.0.0
servers:
- url: https://api.ahrefs.com/v3
  description: Ahrefs API v3
security:
- http:
  - read
tags:


# --- truncated at 32 KB (376 KB total) ---
# Full source: https://artifacts.apis.io/ahrefs/openapi/ahrefs-site-explorer-api-openapi.yml