Public

Domain rating top domains

Changed on

Requests to this endpoint are free, yet require an APIv3 key.

APIv3 keys are free to generate and use. If you don't have an Ahrefs account, here's how to get the key for free:

  1. Sign up for a free Ahrefs account (if you don't have one)
  2. Generate an API key in Account settings → API keys
  3. Add it to your requests: Authorization: Bearer <token>

Returns the top 1M domains ranked by Ahrefs Domain Rating, together with each domain's current Domain Rating. Use from and to to request a range of rank positions. Each request can return up to 250k rows (e.g. from=1&to=250000).

get/public/domain-rating-top-domains

Request

  • Base URL
    https://api.ahrefs.com/v3
  • URL
    https://api.ahrefs.com/v3/public/domain-rating-top-domains
  • Auth
    none required

Query parameters

frominteger

Rank position to start from.

tointeger

Rank position to end at. You can request up to 250k rows at a time.

output'json' | 'csv' | 'xml' | 'php'

The output format.

Response

OK

Changes