---
title: "Domain rating top domains"
method: GET
path: "/public/domain-rating-top-domains"
tags: ["Public"]
---

# Domain rating top domains

`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

>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](https://ahrefs.com/) for a free Ahrefs account (if you don't have one)
>2. Generate an API key in [Account settings → API keys](https://app.ahrefs.com/account/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`).

## Query parameters

- `from` integer
- `to` integer
- `output` 'json' | 'csv' | 'xml' | 'php'

## Response `200`

OK

- PublicDomainRatingTopDomains
  - `domains` object[]
    - `domain` string, domain: Domain name.
    - `domain_rating` number, float: Current strength of the domain's backlink profile compared to the other websites in our database on a 100-point logarithmic scale.
    - `rank` integer: Position of the domain in the top 1M ranking by Domain Rating (1 = highest).

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests
- `500`: Internal Error

## Changes

- **2026-08-06** `d7dfd5846302`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ahrefs/apis/ahrefs-api/changes/public/domain-rating-top-domains/get.md)

---

[API](https://skmtc.dev/ahrefs/apis/ahrefs-api.md) - [All operations](https://skmtc.dev/ahrefs/apis/ahrefs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ahrefs/apis/ahrefs-api/revisions/667fedfff126?raw)
