Ahrefs Keywords Explorer API

Fetch data from Keywords Explorer reports

GitHub OpenAPI
Business capability
Digital Marketing Management BC-400.60

Operations 6

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 /keywords-explorer/overview Get keyword metrics for a list of keywords · Overview #
Ask an LLM
“What is the search volume and CPC for a set of keywords in a given country?”
“Can I get keyword metrics for a keyword list instead of a keyword list id?”
Tell an agent
Get keyword metrics for {keywords} in {country}.
Show {select} for keywords {keywords} in {country}, ordered by {order_by}.
GET /keywords-explorer/volume-history Get a keyword's monthly search volume history · Volume history #
Ask an LLM
“How has a keyword's monthly search volume changed over time?”
“Can I see a keyword's volume history for a specific date range?”
Tell an agent
Get the monthly volume history for {keyword} in {country}.
Show {keyword}'s volume history in {country} from {date_from} to {date_to}.
GET /keywords-explorer/volume-by-country Compare a keyword's volume across countries · Volume by country #
Ask an LLM
“How does a keyword's search volume compare in different countries?”
“Which countries have the highest volume for a given keyword?”
Tell an agent
Compare {keyword} volume across countries.
Show the top {limit} countries for {keyword} by volume.
GET /keywords-explorer/matching-terms Find keyword ideas matching a phrase · Matching terms #
Ask an LLM
“What are other keyword ideas that match a phrase I have in mind?”
“Can I get keyword ideas in phrase mode instead of terms mode?”
Tell an agent
Find keyword ideas matching {terms} in {country}.
Show {limit} keyword ideas for {terms} in {country} in {match_mode} mode.
GET /keywords-explorer/related-terms Find related keywords for a phrase · Related terms #
Ask an LLM
“What keywords do the top-ranking pages for a phrase also rank for?”
“Can I see related keywords for the top 10 or top 100 results?”
Tell an agent
Find related keywords for {terms} in {country}.
Show {limit} related keywords for {terms} in {country} from the top {view_for} pages.
GET /keywords-explorer/search-suggestions Get Google search suggestions for a keyword · Search suggestions #
Ask an LLM
“What does Google autocomplete suggest for a keyword?”
“Can I get search suggestions for a keyword in a specific country?”
Tell an agent
Get search suggestions for {keywords} in {country}.
Show {limit} Google search suggestions for {keywords} in {country}.

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-keywords-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-keywords-explorer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ahrefs Keywords 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 (73 KB total) ---
# Full source: https://artifacts.apis.io/ahrefs/openapi/ahrefs-keywords-explorer-api-openapi.yml