Ahrefs API v2 has been deprecated
This documentation is for the legacy version of our API (v2), which was fully discontinued on November 1, 2025. All remaining API v2 integrations and apps built on it no longer have access to Ahrefs data.
To build new integrations, please use Ahrefs API v3 and the Ahrefs Connect program.
Pricing Mechanism
Your API consumption is charged by rows of data of returned results. Each request consumes one row + number of results * price of each result.
For price of each result, please look it up in documentation for each function.
Most of requests will cost one row for the request itself + number of rows of returned results for the said request.
There are, however, additional costs for some features like "where" and "having".
Applications working through Integrations interface consume Integrations rows, thereby rows consumption will be determined under Ahrefs Subscriptions.
If you work directly with Ahrefs API without Integrations interface , API Rows will be consumed instead. API Rows consumption is determined under API Subscriptions.