ahrefs_rank - Ahrefs API

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.

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

https://apiv2.ahrefs.com?from=ahrefs_rank&target=ahrefs.com&mode=domain&limit=3&order_by=ahrefs_rank%3Adesc&output=json

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