Get started free
All integrations

Ahrefs integration

Ahrefs SEO API v3 - programmatic access to Site Explorer (domain rating, URL rating, backlinks, referring domains, anchors, organic and paid keywords, organic competitors, top pages, broken backlinks, historical metrics), Keywords Explorer (keyword overview, search volume history, matching terms, related terms, search suggestions), Rank Tracker (project overview, SERP overview, competitors overview/pages/stats), and Subscription Information (limits and usage). Default rate limit 60 req/min; minimum 50 API units per request (Rank Tracker and management endpoints are free).

23 toolsTokenAPI docs

Common Ahrefs use cases

  • link audit
  • content audit
  • FAQ generation
  • position tracking
  • link audit overview
  • SEO trend reporting
  • broken link building
  • client SEO reporting
  • competitive analysis
  • topic prioritization

What you can do with Ahrefs

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Anchor, 1 operation

  • GETsite_explorer_anchors

    Lists anchor text distribution for inbound links.

Backlink, 1 operation

  • GETsite_explorer_all_backlinks

    Lists all backlinks pointing to a target with anchor, source and link attributes.

Backlinks stats, 1 operation

  • GETsite_explorer_backlinks_stats

    Returns aggregated backlink statistics for a domain or URL.

Broken backlink, 1 operation

  • GETsite_explorer_broken_backlinks

    Lists backlinks pointing to broken pages on the target.

Domain rating, 1 operation

  • GETsite_explorer_domain_rating

    Returns the Ahrefs Domain Rating (DR) score for a target domain.

Keyword overview, 1 operation

  • GETkeywords_explorer_overview

    Returns SEO metrics (volume, difficulty, CPC) for one or more keywords.

Keyword volume history, 1 operation

  • GETkeywords_explorer_volume_history

    Returns monthly search-volume history for given keywords.

Matching terms, 1 operation

  • GETkeywords_explorer_matching_terms

    Lists keyword ideas matching seed keywords by term or phrase.

Metrics history, 1 operation

  • GETsite_explorer_metrics_history

    Returns time-series of organic and paid metrics for a target.

Organic competitor, 1 operation

  • GETsite_explorer_organic_competitors

    Lists organic search competitors of the target ranked by overlap.

Organic keyword, 1 operation

  • GETsite_explorer_organic_keywords

    Lists organic keywords a target ranks for with positions and traffic.

Pages by traffic, 1 operation

  • GETsite_explorer_pages_by_traffic

    Returns the distribution of a target's pages across organic-traffic buckets.

Paid page, 1 operation

  • GETsite_explorer_paid_pages

    Lists paid landing pages of a target with estimated PPC traffic and cost.

Rank tracker competitor pages, 1 operation

  • GETrank_tracker_competitors_pages

    Lists competitor URLs ranking for tracked keywords in a project.

Rank tracker competitors, 1 operation

  • GETrank_tracker_competitors_overview

    Lists competitor SoV and visibility for a Rank Tracker project.

Rank tracker overview, 1 operation

  • GETrank_tracker_overview

    Returns aggregated rank tracker overview for a project (free, no API units).

Rank tracker serp, 1 operation

  • GETrank_tracker_serp_overview

    Lists SERP results per tracked keyword for a Rank Tracker project.

Refdomain, 1 operation

  • GETsite_explorer_refdomains

    Lists referring domains linking to the target.

Refdomains history, 1 operation

  • GETsite_explorer_refdomains_history

    Returns historical referring-domain counts for a target.

Related terms, 1 operation

  • GETkeywords_explorer_related_terms

    Lists semantically related keywords for given seeds.

Search suggestions, 1 operation

  • GETkeywords_explorer_search_suggestions

    Lists auto-complete-style search suggestions for seed keywords.

Subscription limits, 1 operation

  • GETsubscription_info_limits_and_usage

    Returns current Ahrefs subscription limits and usage counters.

Top page, 1 operation

  • GETsite_explorer_top_pages

    Lists pages on the target with the most organic search traffic.

Ahrefs API rate limits

  • 60 requests per minute

Default 60 rpm (HTTP 429 on overflow). Each non-free request consumes >=50 API units; cost scales with rows and selected columns. Rank Tracker and management endpoints do not consume units.

These are the limits Ahrefs documents, not ones LiveContext measured. They can change and often depend on your plan, so check the Ahrefs documentation for current values.

Use Ahrefs from Claude Code, Cursor or Codex

Connect Ahrefs in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Ahrefs operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Ahrefs

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Ahrefs once

    Add your Ahrefs connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

Ahrefs integration FAQ

What can you do with the Ahrefs integration?
LiveContext exposes 23 operations on Ahrefs, covering anchor, backlink, backlinks stats and broken backlink. Common uses include link audit, content audit and FAQ generation.
What are the Ahrefs API rate limits?
Ahrefs documents 60 requests per minute. Default 60 rpm (HTTP 429 on overflow). Each non-free request consumes >=50 API units; cost scales with rows and selected columns. Rank Tracker and management endpoints do not consume units. Limits are set by Ahrefs and can depend on your plan.

Popular integrations

Browse the whole catalog