Overview - Ahrefs API

Ahrefs API v2 will stop working on March 1st, 2024

This documentation is for the legacy version of our API (v2), which has been discontinued. All active API v2 subscriptions will stop working on March 1st, 2024. Existing Integration apps will continue to work as before until further notice, but new submissions are no longer accepted.

To switch from API v2 to v3, please contact our Enterprise team. Read about 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.

Integrations Developer

You may develop applications that use Ahrefs API on behalf of Ahrefs users.
Read more about it.

Integrations User

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.

API offerings


Ahrefs API is flexible and can accommodate various needs.
Below are some typical use cases. Read on!