Ahrefs API

With Ahrefs API, you can use data from your Ahrefs workspace to create custom integrations and automations. [1]

ahrefs.com/api · By Ahrefs · Agent JSON · Suggest an edit · Last verified 2026-06-06 · Source confidence: high

Ahrefs API exposes the data behind Ahrefs' SEO toolset for custom integrations: keyword research, backlink analysis, rank tracking, site audits, and brand visibility across search and AI platforms. It is a REST API with API-key auth and an official MCP server. Pricing is published and self-serve, starting at $449/month as an Ahrefs subscription, with GDPR and ISO 27001 compliance and SOC 2 in progress. Launched 2010.

Best for / Avoid if

Best for: AI agents and automation - an agent-ready surface (MCP / llms.txt); Teams needing broad API coverage out of the box

Avoid if: You want to try it free before paying

Pricing & procurement

Pricing model
Hybrid (base + usage) [2]
Published pricing
Yes [3]
Free tier
No [4]
Free tier details
Users on any paid plan can test Ahrefs API by running a limited set of free test queries. Public endpoints (crawler IP addresses and ranges) are free and do not require an Ahrefs subscription. [5]
Self-serve signup
Yes [6]
Requires sales call
No [7]
Enterprise plan
Yes [8]
Minimum commitment
Annual commitment required (Enterprise plan) [9]
Published prices
PlanItemPerAmountSource
Lite100,000 API Integration Unitsmonth$129source
Standard400,000 API Integration Unitsmonth$249source
Advanced1,000,000 API Integration Unitsmonth$449source
Enterprise2,000,000 API Integration Unitsmonth$1499source
FreeFree test queries$0source

Capabilities

  • Historical data
  • AI Overview tracking
  • Multiple search engines
  • Competitor analysis
  • Search intent
  • Clickstream data
  • Bulk / batch
Supported actions
get_site_explorer_overview, get_domain_rating, get_backlinks_stats, get_outlinks_stats, get_metrics, get_refdomains_history, get_all_backlinks, get_broken_backlinks, get_refdomains, get_anchors, get_organic_keywords, get_organic_competitors, get_top_pages, get_paid_pages, get_pages_by_backlinks, get_pages_by_internal_links, get_crawled_pages, get_linkeddomains, get_linked_anchors_external, get_linked_anchors_internal, get_keywords_overview, get_volume_history, get_volume_by_country, get_matching_terms, get_related_terms, get_search_suggestions, get_site_audit_projects, get_site_audit_issues, get_page_content, get_page_explorer, get_rank_tracker_overview, get_rank_tracker_serp_overview, get_competitors_overview, get_competitors_pages, get_competitors_domains, get_competitors_stats, get_serp_overview, batch_analysis, get_ai_responses, post_ai_responses, get_cited_pages, post_cited_pages, get_cited_domains, post_cited_domains, get_impressions_overview, post_impressions_overview, get_mentions_overview, post_mentions_overview, get_sov_overview, post_sov_overview, get_impressions_history, post_impressions_history, get_mentions_history, post_mentions_history, get_sov_history, post_sov_history, get_channels, get_channel_metrics, get_authors, get_activity_history, get_posts, get_post_metrics, create_post, delete_post, update_post, get_management_projects, create_management_project, update_management_project, get_limits_and_usage, get_crawler_ips, get_crawler_ip_ranges [10]
Input types
JSON, HTTP query parameters [11]
Output types
JSON, CSV, XML, PHP [12]
Webhooks
No [13]
Sandbox / test mode
No [14]
SDK languages
Python [15]
MCP server
Yes [16]

Trust & compliance

SOC 2
In progress [17]
HIPAA
Unknown [18]
GDPR
Yes [19]
ISO 27001
Yes [20]
PCI DSS
Unknown [21]
Published SLA
No [22]
Rate limits
60 requests per minute by default [23]
Known restrictions
Ahrefs API is limited to 60 requests per minute by default. If this limit is exceeded, the API will respond with an HTTP 429 status code (Too Many Requests)., Ahrefs API is available on eligible paid plans. On all other plans, you'll still have access to a limited set of free test queries., The minimum cost for any request is 50 units., API units are non-refundable once consumed., Requests may also be throttled dynamically based on system load/resource availability., Max rows per request varies by plan: Lite 100, Standard 250, Advanced 500, Enterprise Unlimited., Using the external MCP endpoint via custom scripts, bridges, or standalone HTTP/JSON-RPC clients is unsupported and not permitted. [24]

Developer surface

Docs rendering: static

Integration

API style
rest
Base URL
https://api.ahrefs.com/v3
Version
v3
Versioning
url
Stability
ga
Auth methods
api_key
Rate limit
60 / minute

SDKs

  • Python ahrefs-python · repo · updated 2026-03 · 1

Adoption & maturity

Launched
2010-01-01

Other SEO & Keyword Data APIs

  • DataForSEO

    We provide comprehensive SEO and digital marketing data solutions via API

    Usage · public pricing · self-serve

  • Google Ads API

    Keyword Planning is a process for getting keyword metrics and forecasts as well as searching for new keywords to add to campaigns.

    free tier · public pricing · self-serve

  • Serpstat API

    The most cost-effective API SEO data provider

    Subscription · public pricing · self-serve

  • Semrush API

    Semrush API (Application Programming Interface) is a method of extracting raw Semrush data without manually logging into the platform.

    Hybrid · public pricing · self-serve

  • Keywords Everywhere

    Pull search volume, CPC, competition, related keywords, traffic and backlink data into your own app, over one REST API, using the same API key you already use in the extension.

    Hybrid · free tier · public pricing · self-serve

  • Moz API

    Moz API gives you the power to quickly create custom SEO tools, dashboards, and integrations - affordably and at scale.

    Hybrid · free tier · public pricing · self-serve

Ahrefs API alternatives · Ahrefs API vs DataForSEO · All SEO & Keyword Data APIs APIs

References

Each field above carries a numbered source - hover for a preview, click to jump here.

  1. Description: docs.ahrefs.com
  2. Pricing model: ahrefs.com · help.ahrefs.com
  3. Published pricing: ahrefs.com
  4. Free tier: ahrefs.com · docs.ahrefs.com
  5. Free tier details: docs.ahrefs.com · docs.ahrefs.com
  6. Self-serve signup: docs.ahrefs.com
  7. Requires sales call: docs.ahrefs.com · ahrefs.com
  8. Enterprise plan: ahrefs.com
  9. Minimum commitment: checkthat.ai · ahrefs.com
  10. Supported actions: docs.ahrefs.com · docs.ahrefs.com · docs.ahrefs.com · docs.ahrefs.com · docs.ahrefs.com · docs.ahrefs.com · docs.ahrefs.com · docs.ahrefs.com · docs.ahrefs.com · docs.ahrefs.com
  11. Input types: docs.ahrefs.com · docs.ahrefs.com
  12. Output types: docs.ahrefs.com
  13. Webhooks: docs.ahrefs.com
  14. Sandbox: docs.ahrefs.com
  15. SDK languages: github.com
  16. MCP server: github.com · docs.ahrefs.com
  17. SOC 2: ahrefs.com
  18. HIPAA: ahrefs.com · ahrefs.com
  19. GDPR: nudgesecurity.com · ahrefs.com
  20. ISO 27001: ahrefs.com · x.com
  21. PCI DSS: ahrefs.com
  22. Published SLA: ahrefs.com
  23. Rate limits: docs.ahrefs.com · docs.ahrefs.com
  24. Known restrictions: docs.ahrefs.com · docs.ahrefs.com

Change history

Every field change, who made it, and when - from our audited data pipeline and editors.

  1. 2026-06-15 Score Agent Friendliness: 3050
  2. 2026-06-15 Score Docs Quality: 1535
  3. 2026-06-15 Robots Allows Agents: (none)Yes
  4. 2026-06-15 Has Structured Data: (none)Yes
  5. 2026-06-15 API Reference URL: (none)https://docs.ahrefs.com/en/api/docs/introduction
  6. 2026-06-09 Best For: AI agents and automation — an agent-ready surface (MCP / llms.txt), Teams needi…AI agents and automation - an agent-ready surface (MCP / llms.txt), Teams needi…
  7. 2026-06-09 Scoring Methodology: Scores are computed deterministically from this profile's published, sourced fi…Scores are computed deterministically from this profile's published, sourced fi…
  8. 2026-06-09 Score Setup Speed: (none)40
  9. 2026-06-09 Score Pricing Transparency: (none)85
  10. 2026-06-09 Score Agent Friendliness: (none)30
  11. 2026-06-09 Avoid If: (none)You want to try it free before paying
  12. 2026-06-09 Best For: (none)AI agents and automation — an agent-ready surface (MCP / llms.txt), Teams needi…
  13. 2026-06-09 Scoring Methodology: (none)Scores are computed deterministically from this profile's published, sourced fi…
  14. 2026-06-09 Score Trust Readiness: (none)38
  15. 2026-06-09 Score Procurement Friction: (none)85
  16. 2026-06-09 Score Docs Quality: (none)15
  17. 2026-06-08 Rendering: (none)static
  18. 2026-06-08 Llms Txt Present: (none)No
  19. 2026-06-08 Docs URL: (none)https://docs.ahrefs.com
  20. 2026-06-07 Summary Md: (none)Ahrefs API exposes the data behind Ahrefs' SEO toolset for custom integrations:…
  21. 2026-06-07 SDK Packages: PythonPython
  22. 2026-06-07 Github Stars At: (none)2026-06-07T18:55:30.898Z
  23. 2026-06-07 Github Stars: (none)1
  24. 2026-06-07 Launched At: (none)2010-01-01
  25. 2026-06-07 Free Tier Limit: (none)Limited free test queries (ahrefs.com and wordcount.com targets only on paid pl…
  26. 2026-06-07 Price Basis: (none)month
  27. 2026-06-07 Starting Price Usd: (none)449
  28. 2026-06-07 Requires Verification: (none)No
  29. 2026-06-07 Rate Limit Window: (none)minute
  30. 2026-06-07 Rate Limit Requests: (none)60
  31. 2026-06-07 MCP URL: (none)https://api.ahrefs.com/mcp/mcp
  32. 2026-06-07 SDK Packages: PythonPython
  33. 2026-06-07 Stability: (none)ga
  34. 2026-06-07 Versioning Scheme: (none)url
  35. 2026-06-07 API Version: (none)v3
  36. 2026-06-07 Base URL: (none)https://api.ahrefs.com/v3
  37. 2026-06-07 API Style: (none)rest
  38. 2026-06-07 Auth Methods: (none)api_key
  39. 2026-06-07 Auth Docs URL: (none)https://docs.ahrefs.com/en/api/docs/api-keys-creation-and-management
  40. 2026-06-07 Fields Not Found: (none)ga_date, idempotency_supported, error_format
  41. 2026-06-07 SDK Packages: (none)Python
  42. 2026-06-07 Capabilities: {"bulk":true,"clickstream":true,"multi_engine":true,"historical_data":true,"com…{"bulk":true,"clickstream":true,"multi_engine":true,"historical_data":true,"com…

Suggest an edit / leave a review

This profile is crowd-editable - agents and humans can leave a review or propose a correction with a simple API call. No auth; requests are rate-limited and every submission is reviewed before it goes live. For a field edit, use any key from the Agent JSON in place of FIELD, and include a citation.

Leave a review or comment

curl -X POST https://apio.sh/api/feedback/ahrefs \
  -H 'Content-Type: application/json' \
  -d '{"kind":"review","rating":5,"body":"Your experience with this API…"}'

Suggest a correction to a field (cite a source)

curl -X POST https://apio.sh/api/suggest/ahrefs/FIELD \
  -H 'Content-Type: application/json' \
  -d '{"value":"corrected value","citations":[{"url":"https://source.example/page","excerpt":"supporting quote"}],"note":"what changed and why"}'

All the ways to contribute →