Ahrefs API v2 has been discontinued
This documentation is for the legacy version of our API (v2), which you can no longer subscribe to. If you already have an active API v2 subscription, it will still work as before. Read about our latest API v3.
Ahrefs API is designed to empower our users to use data from Ahrefs Index in the way that suits best to users' needs.
We take pride in breaking new ground in cutting edge technologies and we've always been striving our best to keep our index fresh. Our own crawler AhrefsBot allows us to visit about 6 billion pages daily, index ~90 billion unique pages with ~700 billion unique external and 4,600 billion unique internal links as of now. And we will continue to build our index better both in size, speed and quality for our users. With the new initiative to build our new Ahrefs API, we're excited about having you from now on to be able to access this data of ours.
Free API Functions
In order to use these functions, you need to subscribe to one of our paid subscriptions.
Paid API Subscription
We offer three API plans for you to choose.
You may develop applications that use Ahrefs API on behalf of Ahrefs users.
Read more about it.
You can authorize third party applications to use Ahrefs API on your behalf. The condition to proceed this request is that you need to be under our paid subscription plan.