Integration

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).

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in Ahrefs.Built from the 23 Ahrefs tools below, on the connection you add once.

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

  • site_explorer_anchorsSite explorer anchorsGETLists anchor text distribution for inbound links.

Backlink, 1 operation

  • site_explorer_all_backlinksSite explorer all backlinksGETLists all backlinks pointing to a target with anchor, source and link attributes.

Backlinks stats, 1 operation

  • site_explorer_backlinks_statsSite explorer backlinks statsGETReturns aggregated backlink statistics for a domain or URL.

Broken backlink, 1 operation

  • site_explorer_broken_backlinksSite explorer broken backlinksGETLists backlinks pointing to broken pages on the target.

Domain rating, 1 operation

  • site_explorer_domain_ratingSite explorer domain ratingGETReturns the Ahrefs Domain Rating (DR) score for a target domain.

Keyword overview, 1 operation

  • keywords_explorer_overviewKeywords explorer overviewGETReturns SEO metrics (volume, difficulty, CPC) for one or more keywords.

Keyword volume history, 1 operation

  • keywords_explorer_volume_historyKeywords explorer volume historyGETReturns monthly search-volume history for given keywords.

Matching terms, 1 operation

  • keywords_explorer_matching_termsKeywords explorer matching termsGETLists keyword ideas matching seed keywords by term or phrase.

Metrics history, 1 operation

  • site_explorer_metrics_historySite explorer metrics historyGETReturns time-series of organic and paid metrics for a target.

Organic competitor, 1 operation

  • site_explorer_organic_competitorsSite explorer organic competitorsGETLists organic search competitors of the target ranked by overlap.

Organic keyword, 1 operation

  • site_explorer_organic_keywordsSite explorer organic keywordsGETLists organic keywords a target ranks for with positions and traffic.

Pages by traffic, 1 operation

  • site_explorer_pages_by_trafficSite explorer pages by trafficGETReturns the distribution of a target's pages across organic-traffic buckets.

Paid page, 1 operation

  • site_explorer_paid_pagesSite explorer paid pagesGETLists paid landing pages of a target with estimated PPC traffic and cost.

Rank tracker competitor pages, 1 operation

  • rank_tracker_competitors_pagesRank tracker competitors pagesGETLists competitor URLs ranking for tracked keywords in a project.

Rank tracker competitors, 1 operation

  • rank_tracker_competitors_overviewRank tracker competitors overviewGETLists competitor SoV and visibility for a Rank Tracker project.

Rank tracker overview, 1 operation

  • rank_tracker_overviewRank tracker overviewGETReturns aggregated rank tracker overview for a project (free, no API units).

Rank tracker serp, 1 operation

  • rank_tracker_serp_overviewRank tracker serp overviewGETLists SERP results per tracked keyword for a Rank Tracker project.

Refdomain, 1 operation

  • site_explorer_refdomainsSite explorer refdomainsGETLists referring domains linking to the target.

Refdomains history, 1 operation

  • site_explorer_refdomains_historySite explorer refdomains historyGETReturns historical referring-domain counts for a target.

Related terms, 1 operation

  • keywords_explorer_related_termsKeywords explorer related termsGETLists semantically related keywords for given seeds.

Search suggestions, 1 operation

  • keywords_explorer_search_suggestionsKeywords explorer search suggestionsGETLists auto-complete-style search suggestions for seed keywords.

Subscription limits, 1 operation

  • subscription_info_limits_and_usageSubscription info limits and usageGETReturns current Ahrefs subscription limits and usage counters.

Top page, 1 operation

  • site_explorer_top_pagesSite explorer top pagesGETLists 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