Ahrefs GSC Insights API

Fetch data from GSC Insights reports

GitHub OpenAPI
Business capability
Digital Marketing Management BC-400.60

Operations 12

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 /gsc/performance-history Get Google Search Console performance history · Performance history #
Ask an LLM
“How has my site performed in Google Search over a date range?”
“Can I see GSC performance grouped by day or week?”
Tell an agent
Get performance history for project {project_id} from {date_from} to {date_to}.
Show GSC performance for {project_id} in {country} grouped by {history_grouping}.
GET /gsc/positions-history Get Google Search Console positions history · Positions history #
Ask an LLM
“How have my rankings changed over time in Google Search?”
“Can I see position history for a single keyword?”
Tell an agent
Get positions history for project {project_id} from {date_from} to {date_to}.
Show GSC position history for {project_id} in {country} by {history_grouping}.
GET /gsc/pages-history Get Google Search Console pages history · Pages history #
Ask an LLM
“How has traffic to specific pages changed over time?”
“Can I get GSC performance history for a list of URLs?”
Tell an agent
Get pages history for project {project_id} from {date_from} to {date_to}.
Show GSC pages history for {project_id} in {country} grouped by {history_grouping}.
GET /gsc/performance-by-device Get Google Search Console performance by device · Performance by device #
Ask an LLM
“How does my site perform on mobile versus desktop in Google Search?”
“Can I compare GSC performance across devices?”
Tell an agent
Get performance by device for project {project_id} from {date_from} to {date_to}.
Show GSC performance by device for {project_id} in {country}.
GET /gsc/metrics-by-country Rank country traffic for pages · Metrics by country #
Ask an LLM
“Which countries report the most impressions on my site's pages?”
“How do I break down search performance by country for a date range?”
Tell an agent
Show country metrics for portfolio {portfolio_id} from {date_from} to {date_to}.
Rank countries by impressions for project {project_id} over {date_from}.
GET /gsc/ctr-by-position Get Google Search Console CTR by position · CTR by position #
Ask an LLM
“What is the click-through rate for my site at each Google Search position?”
“Can I see how CTR varies by position in a country?”
Tell an agent
Get CTR by position for project {project_id} from {date_from} to {date_to}.
Show GSC CTR by position for {project_id} in {country}.
GET /gsc/performance-by-position Get Google Search Console performance by position · Performance by position #
Ask an LLM
“How do my impressions and clicks vary by search position?”
“Can I see GSC performance broken down by position for a keyword?”
Tell an agent
Get performance by position for project {project_id} from {date_from} to {date_to}.
Show GSC performance by position for {project_id} in {country}.
GET /gsc/keyword-history Get Google Search Console keyword history · Keyword history #
Ask an LLM
“How have my rankings for specific keywords changed over time?”
“Can I get keyword history for a list of keywords?”
Tell an agent
Get keyword history for project {project_id} from {date_from} to {date_to}.
Show GSC keyword history for {project_id} in {country} for keywords {keywords}.
GET /gsc/keywords Get Google Search Console keywords · Keywords #
Ask an LLM
“What keywords is my site ranking for in Google Search?”
“Can I filter GSC keywords by URL or clicks?”
Tell an agent
Get keywords for project {project_id} from {date_from} to {date_to}.
Show GSC keywords for {project_id} in {country} matching {where}.
GET /gsc/page-history Get Google Search Console page history · Page history #
Ask an LLM
“How has traffic to a specific page changed over time?”
“Can I get GSC performance history for several pages?”
Tell an agent
Get page history for project {project_id} from {date_from} to {date_to}.
Show GSC page history for {project_id} in {country} for pages {pages}.
GET /gsc/pages List a site's pages with traffic · Pages #
Ask an LLM
“Which pages of my site get the most impressions in a country?”
“Can I list pages from a portfolio filtering by device and date range?”
Tell an agent
List pages for portfolio {portfolio_id} from {date_from} to {date_to}.
Show pages in {country} for project {project_id} between {date_from} and {date_to}.
GET /gsc/anonymous-queries Run an anonymous Google Search Console query · Anonymous queries #
Ask an LLM
“Can I run a Google Search Console query without logging in?”
“What's the fastest way to get GSC data for a single keyword?”
Tell an agent
Run an anonymous GSC query on project {project_id} for {date_from} in {country} returning {select}.
Run an anonymous GSC query on {project_id} for {date_from} in {country} returning {select} ordered by {order_by}.

Specifications

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-gsc-insights-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-gsc-insights-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ahrefs GSC Insights 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 (96 KB total) ---
# Full source: https://artifacts.apis.io/ahrefs/openapi/ahrefs-gsc-insights-api-openapi.yml