Ahrefs Pages API

GSC pages data

GitHub OpenAPI
Business capability
Digital Marketing Management BC-400.60

Operations 11

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 /page-history Get page performance history · Page history #
Ask an LLM
“How has a page's impressions and clicks changed over time?”
“Can I see page history for a single page or a list of pages?”
Tell an agent
Get page history for {pages} from {date_from} to {date_to}.
Show page history for {pages} in {country} for {device}.
GET /pages List pages matching a filter · Pages #
Ask an LLM
“Which pages in my site rank for a keyword?”
“Can I filter pages by clicks, impressions or position?”
Tell an agent
List pages in project {project_id} from {date_from} to {date_to}.
Find pages matching {where} in project {project_id} between {date_from} and {date_to}.
GET /crawled-pages List pages the crawler found · Crawled pages #
Ask an LLM
“Which pages did the crawler crawl on my site?”
“Can I see when each crawled page was last attempted?”
Tell an agent
List crawled pages for {target}.
Show {select} for crawled pages of {target} matching {where}.
GET /entry-pages List pages visitors entered the site on · Entry Pages #
Ask an LLM
“Which pages do visitors land on first?”
“Can I see entry pages for a date range?”
Tell an agent
List entry pages for project {project_id}.
Show entry pages for project {project_id} from {from} to {to}.
GET /entry-pages-chart Chart pages visitors entered the site on · Entry Pages Chart #
Ask an LLM
“Can I chart the top entry pages over time?”
“What does the entry page chart look like for a date range?”
Tell an agent
Chart entry pages for project {project_id} from {from} to {to} at {granularity}.
Plot entry pages {entry_pages_to_chart} for project {project_id} at {granularity}.
GET /exit-pages List pages visitors left the site from · Exit Pages #
Ask an LLM
“Which pages do visitors leave my site from?”
“Can I see exit pages for a date range?”
Tell an agent
List exit pages for project {project_id}.
Show exit pages for project {project_id} from {from} to {to}.
GET /exit-pages-chart Chart pages visitors left the site from · Exit Pages Chart #
Ask an LLM
“Can I chart the top exit pages over time?”
“What does the exit page chart look like for a date range?”
Tell an agent
Chart exit pages for project {project_id} from {from} to {to} at {granularity}.
Plot exit pages {exit_pages_to_chart} for project {project_id} at {granularity}.
GET /top-pages List the top pages by pageviews or visitors · Top Pages #
Ask an LLM
“Which pages get the most pageviews or visitors?”
“Can I rank top pages by a metric?”
Tell an agent
List the top {limit} pages for project {project_id}.
Show top pages for project {project_id} matching {where}.
GET /top-pages-chart Chart a page's top pages by visitors · Top Pages Chart #
Ask an LLM
“Which URLs of my site get the most visitors on a given day?”
“Can I chart top pages by visitors for a time range?”
Tell an agent
Chart top pages by visitors for project {project_id} over {granularity}.
Show the top {pages_to_chart} pages in project {project_id} from {from} to {to} by {granularity}.

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-pages-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-pages-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ahrefs Pages API
  version: 3.0.0
  contact:
    name: Ahrefs
    url: https://ahrefs.com/
    email: support@ahrefs.com
  termsOfService: https://ahrefs.com/terms
  description: 'Operations tagged Pages across 3 of this provider''s published API definitions: ahrefs-gsc-openapi.json, ahrefs-site-explorer-openapi.json, ahrefs-web-analytics-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.ahrefs.com/v3/gsc
  description: Ahrefs GSC Insights
- url: https://api.ahrefs.com/v3/site-explorer
  description: Ahrefs Site Explorer
- url: https://api.ahrefs.com/v3/web-analytics
  description: Ahrefs Web Analytics
security:
- http:
  - read
tags:


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