Ahrefs API v2 has been deprecated
This documentation is for the legacy version of our API (v2), which was discontinued on March 1st, 2024. Existing API v2 integration apps are not affected and continue to work as before, but new submissions are no longer accepted.
To switch to API v3, please contact our Enterprise team. Read about API v3.
Documentation - ahrefs_rank
Contains the URLs and their rankings.
Each request to ahrefs_rank costs 1 row.
Each result in the response costs 1 row.
Using 'where' costs 5 rows.
Using 'having' costs 5 rows.
• metrics
Column | Type | Where | Having | Description |
---|---|---|---|---|
url | string | + | + | Target of the request. |
ahrefs_rank | int | − | + | URL Rating of the target. |
Examples
Request
Response
{ "pages":[ { "url":"https://ahrefs.com/", "ahrefs_rank":85 }, { "url":"http://ahrefs.com/", "ahrefs_rank":81 }, { "url":"http://ahrefs.com/api/toolbar_integration.php", "ahrefs_rank":12 } ] }