Use Ahrefs' free public Domain Rating endpoint to check a domain or URL's backlink profile strength. No Ahrefs API key required.
Endpoint:
text
GET https://api.ahrefs.com/v3/public/domain-rating-free?target=<domain-or-url>
Official docs: https://docs.ahrefs.com/en/api/reference/public/get-domain-rating-free
Use this skill when user asks for:
Do not use when user needs paid Site Explorer metrics, backlinks, referring domains, organic keywords, or historical Ahrefs data. Those require authenticated Ahrefs API endpoints.
From this skill directory:
bash
python3 scripts/ahrefs-domain-rating-free.py ahrefs.com
python3 scripts/ahrefs-domain-rating-free.py https://example.com --json
python3 scripts/ahrefs-domain-rating-free.py ahrefs.com example.com github.com
Expected compact output:
text
ahrefs.com 91.0
bash
python3 scripts/ahrefs-domain-rating-free.py <target...> [--json] [--raw]
Flags:
FlagUse--jsonMachine-readable array with target, domain_rating, ok/error--rawPrint raw Ahrefs JSON per target--timeout SECONDSOverride HTTP timeout, default 20
Query parameters:
ParameterRequiredMeaningtargetyesDomain or URL to checkoutputnoAhrefs output selector. Wrapper does not need it.
Response shape:
json
{
"domain_rating": {
"domain_rating": 91.0
}
}
domain_rating.domain_rating is the current strength of the target's backlink profile compared to other websites in Ahrefs' database, on a 100-point logarithmic scale.
Authorization header. This public endpoint is free and unauthenticated./v3/public/domain-rating; correct path is /v3/public/domain-rating-free.Skills.sh:
bash
npx skills add AIGC-Hackers/ahrefs-domain-rating-free-skill --skill ahrefs-domain-rating-free
ClawHub, after publish:
bash
clawhub install ahrefs-domain-rating-free
# or
clawdhub install ahrefs-domain-rating-free