Ahrefs API v2 will stop working on March 1st, 2024
This documentation is for the legacy version of our API (v2), which has been discontinued. All active API v2 subscriptions will stop working on March 1st, 2024. Existing Integration apps will continue to work as before until further notice, but new submissions are no longer accepted.
To switch from API v2 to v3, please contact our Enterprise team. Read about API v3.
Documentation - domain_rating
Contains the Domain Rating.Refer to Principles of Domain Rating calculation for more information about Domain Rating.
Each request to domain_rating costs 1 row.
Each result in the response costs 0 rows.
• domain
Column | Type | Where | Having | Description |
---|---|---|---|---|
domain_rating | int | − | + | Domain Rating of the target domain. |
ahrefs_top | int | − | + | Ahrefs Rank of the target domain. |
Examples
Request
https://apiv2.ahrefs.com?from=domain_rating&target=ahrefs.com&mode=domain&output=json
Response
{ "domain":{ "domain_rating":66, "ahrefs_top":3840 } }