Ahrefs API
With Ahrefs API, you can use data from your Ahrefs workspace to create custom integrations and automations. [1]
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.
Scores
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]
| Plan | Item | Per | Amount | Source |
|---|---|---|---|---|
| Lite | 100,000 API Integration Units | month | $129 | source |
| Standard | 400,000 API Integration Units | month | $249 | source |
| Advanced | 1,000,000 API Integration Units | month | $449 | source |
| Enterprise | 2,000,000 API Integration Units | month | $1499 | source |
| Free | Free test queries | $0 | source |
Capabilities
- 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
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
- Python
ahrefs-python· repo
Adoption & maturity
- Launched
- 2010-01-01
Other SEO & Keyword Data APIs
DataForSEO
We provide comprehensive SEO and digital marketing data solutions via API
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.
Serpstat API
The most cost-effective API SEO data provider
Semrush API
Semrush API (Application Programming Interface) is a method of extracting raw Semrush data without manually logging into the platform.
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.
Moz API
Moz API gives you the power to quickly create custom SEO tools, dashboards, and integrations — affordably and at scale.
References
- ↑Description: docs.ahrefs.com
- ↑Pricing model: ahrefs.com · help.ahrefs.com
- ↑Published pricing: ahrefs.com
- ↑Free tier: ahrefs.com · docs.ahrefs.com
- ↑Free tier details: docs.ahrefs.com · docs.ahrefs.com
- ↑Self-serve signup: docs.ahrefs.com
- ↑Requires sales call: docs.ahrefs.com · ahrefs.com
- ↑Enterprise plan: ahrefs.com
- ↑Minimum commitment: checkthat.ai · ahrefs.com
- ↑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
- ↑Input types: docs.ahrefs.com · docs.ahrefs.com
- ↑Output types: docs.ahrefs.com
- ↑Webhooks: docs.ahrefs.com
- ↑Sandbox: docs.ahrefs.com
- ↑SDK languages: github.com
- ↑MCP server: github.com · docs.ahrefs.com
- ↑SOC 2: ahrefs.com
- ↑HIPAA: ahrefs.com · ahrefs.com
- ↑GDPR: nudgesecurity.com · ahrefs.com
- ↑ISO 27001: ahrefs.com · x.com
- ↑PCI DSS: ahrefs.com
- ↑Published SLA: ahrefs.com
- ↑Rate limits: docs.ahrefs.com · docs.ahrefs.com
- ↑Known restrictions: docs.ahrefs.com · docs.ahrefs.com
Change history
- 2026-06-08 Rendering: (none) → static
- 2026-06-08 Llms Txt Present: (none) → No
- 2026-06-08 Docs URL: (none) → https://docs.ahrefs.com
- 2026-06-07 Summary Md: (none) → Ahrefs API exposes the data behind Ahrefs' SEO toolset for custom integrations:…
- 2026-06-07 SDK Packages: Python → Python
- 2026-06-07 Github Stars At: (none) → 2026-06-07T18:55:30.898Z
- 2026-06-07 Github Stars: (none) → 1
- 2026-06-07 Stability: (none) → ga
- 2026-06-07 SDK Packages: Python → Python
- 2026-06-07 MCP URL: (none) → https://api.ahrefs.com/mcp/mcp
- 2026-06-07 Rate Limit Requests: (none) → 60
- 2026-06-07 Rate Limit Window: (none) → minute
- 2026-06-07 Starting Price Usd: (none) → 449
- 2026-06-07 Price Basis: (none) → month
- 2026-06-07 Free Tier Limit: (none) → Limited free test queries (ahrefs.com and wordcount.com targets only on paid pl…
- 2026-06-07 Launched At: (none) → 2010-01-01
- 2026-06-07 Fields Not Found: (none) → ga_date, idempotency_supported, error_format
- 2026-06-07 Requires Verification: (none) → No
- 2026-06-07 Auth Methods: (none) → api_key
- 2026-06-07 Auth Docs URL: (none) → https://docs.ahrefs.com/en/api/docs/api-keys-creation-and-management
- 2026-06-07 API Style: (none) → rest
- 2026-06-07 Base URL: (none) → https://api.ahrefs.com/v3
- 2026-06-07 API Version: (none) → v3
- 2026-06-07 Versioning Scheme: (none) → url
- 2026-06-07 SDK Packages: (none) → Python
- 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…