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.
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
}
]
}