Ahrefs provides data via API via 3 methods:
Direct API access
MCP Server
Ahrefs Connect
Using API v3 from any of the above methods is possible for Lite and higher subscription plans, and consume from the same API & Integrations limit.
What subscription plans can use the Ahrefs API endpoints?
Each plan includes a certain number of API units and Max rows per request:
Limit | Lite | Standard | Advanced | Enterprise |
Max rows per request (For Direct API and MCP Server) | 100 | 250 | 500 | Unlimited |
API Integration units / month | 100,000 | 400,000 | 1,000,000 | 2,000,000 |
Ahrefs API v3 Endpoints
💡 Full details and documentation about our API v3 here: https://docs.ahrefs.com/docs/api/reference/introduction
Site Explorer
Site Explorer
Overview
Domain Rating
Backlinks stats
Outlinks stats
Metrics
Referring Domains History
Domain Rating history
URL Rating history
Pages History
Metrics History
Keywords History
Metrics by Country
Pages by Traffic
Total Search Volume History
Backlinks Profile
Backlinks
Broken Backlinks
Referring Domains
Anchors
Organic search
Organic Keywords
Organic Competitors
Top Pages
Paid search
Paid Pages
Pages
Best by External Links
Best by Internal Links
Crawled pages
Outgoing links
Linked Domains
Outgoing External Anchors
Outgoing Internal Anchors
Keywords Explorer
Keywords Explorer
Overview
Overview: Metrics for a single keyword or a list of keywords
Volume history
Volume by country
Keyword ideas
Matching terms
Related terms
Search suggestions
Site Audit
Site Audit
Projects
Page content
Page explorer
Rank Tracker
Rank Tracker
Overview
Competitors Overview
SERP Overview
SERP Overview
SERP Overview
Batch Analysis
Batch Analysis
Batch Analysis
Brand Radar
Brand Radar
AI Responses
Overview
Overview history
Subscription Information
Subscription Information
Projects
Keywords
Competitors
Locations and languages
Keyword lists
Brand Radar prompts
Brand Radar reports
Brand Radar
Brand Radar
AI Visibility
Overview
Overview history
Web Analytics
Web Analytics
Overview
Traffic Sources
Pages
Geography
User Agents
GSC Insights
GSC Insights
Overview
Keywords
Pages
Anonymous queries
Social Media Management
Social Media Management
Channels
Posts
Public
Public
Crawler IP addresses
Crawler IP ranges
More supported endpoints coming soon.
How Ahrefs API usage is calculated
All requests and endpoints consume API units. The cost depends on the number of rows in the response and the fields requested. The minimum cost for any request is 50 units.
Some API endpoints are free (cost 0 API units), and will be noted accordingly in the documentation:
Related guide: Limits consumption
Frequently Asked Questions
Can I still use API v2 directly or through Integrations?
API v2 has been fully deprecated and can no longer be used, either directly or through Integrations. The new Integrations system is built entirely on API v3. More details can be found here.
I'm building an application and would like to integrate the Ahrefs API. Do I have to purchase the Ahrefs API?
Yes, all new applications require a Lite or higher subscription for activation. Usage of our API is subjected to our Terms of Service.
Can I request for a new API endpoint to be developed?
We welcome any feature requests for API v3 to our Canny board. You can also upvote any feature requests made by others that you would also like to see developed.
