Domain Metrics API
Ahrefs-style authority + traffic metrics — DR, UR, backlinks, ref domains, traffic, and organic keywords at page and domain scope. $0.02/call.
Get Ahrefs-style authority and traffic metrics for any domain in a single call. Returns Domain Rating (DR), URL Rating (UR), Ahrefs rank, backlinks, referring domains, estimated traffic, traffic value (USD), and organic keywords — at both page and domain scope.
Try it live
Fill in the fields and hit Run to see a real response.
{
"ok": true,
"data": {
"target": "anthropic.com",
"page": {
"backlinks": 34425,
"refDomains": 3870,
"traffic": 0,
"trafficValue": 0,
"organicKeywords": 0,
"urlRating": 16,
"numberOfWordsOnPage": 0
},
"domainMetrics": {
"domainRating": 91,
"ahrefsRank": 693,
"domainRank": 693,
"backlinks": 1911955,
"refDomains": 85326,
"traffic": 981693,
"trafficValue": 382569.64,
"organicKeywords": 11757
}
}
}Features
The domainMetrics.domainRating field returns authority on the 0–100 scale SEOs already read at a glance, so a result like 91 needs no translation for clients.
When you pass a full URL, page.urlRating scores that exact page's authority, letting you judge a single landing page rather than the whole domain.
The ahrefsRank field gives the domain's global position (e.g. 693), a single number for ranking a list of domains against the entire web.
Both the page and domainMetrics objects return backlinks and refDomains, so you see link counts for the specific URL and the whole site in one response.
domainMetrics returns traffic and trafficValue in USD (e.g. 981,693 visits worth $382,569), turning authority into a dollar figure clients understand.
The organicKeywords field counts the terms a domain ranks for, a quick proxy for content footprint when sizing up a competitor.
Use cases
Competitor Authority Benchmarking
Compare DR and Ahrefs rank across competitor domains to size up the authority gap in a niche.
Link Prospect Scoring
Score potential backlink targets by DR + traffic before outreach so you focus on the highest-value sites.
Portfolio Monitoring
Track DR and traffic movements across every domain in your portfolio to catch rank drops or traffic dips early.
Client Reporting
Generate white-label authority snapshots with DR, backlinks, and traffic value numbers clients already recognize.
Quick start
Copy this snippet and start making calls.
const res = await fetch('https://api.yepapi.com/v1/seo/domain/metrics', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"domain": "anthropic.com"
}),
});
const data = await res.json();
console.log(data);The domain authority API for developers — DR, UR, traffic & backlinks in one call
The Domain Metrics API returns the authority and traffic numbers SEOs rely on — Domain Rating, URL Rating, global rank, backlinks, referring domains, estimated traffic, traffic value in USD, and organic keyword count — for any domain or URL in a single call, at both page and domain scope.
It is the at-a-glance authority tool in YepAPI's domain suite. Where the Backlinks endpoints list individual links, this hands you the aggregate scores; combine them under one key for both the headline number and the links behind it.
What is a domain authority API?
A domain authority API returns a site's strength as standardized scores rather than a raw link dump. For a domain or URL you get a domainMetrics object — domainRating on 0–100, ahrefsRank, backlinks, refDomains, traffic, trafficValue in USD, organicKeywords — and a page object with that specific URL's urlRating and link counts. These are the familiar numbers SEOs and clients already trust. YepAPI serves it at /v1/seo/domain/metrics: post a domain or full URL (protocol stripped automatically) and receive both page- and domain-scope metrics in one JSON response.
Build your own authority checker tool
Build a bulk DR checker that scores a list of prospects so users sort link targets by authority before outreach. Build a client-reporting widget that pulls domainRating, backlinks, and trafficValue into a white-label snapshot using numbers clients recognize. Because the response separates page from domain scope, you can score a specific landing page's urlRating independently of the site. Pair with the Referring Domains API when a high DR warrants drilling into exactly which sites supply that authority.
Domain metrics API pricing — $0.02/call
Each metrics lookup is a flat $0.02 returning the full page and domain bundle — no per-row charge. Scoring 1,000 prospect domains costs about $20. The same DR, traffic, and backlink figures sit behind $999/mo Ahrefs plans or rate-limited free Moz tiers; here you get them per call at two cents, making bulk authority scoring practical without a four-figure subscription.
Benchmark competitor authority at scale
Run every competitor in a niche through the endpoint and compare domainRating and ahrefsRank to size the authority gap you are up against. The trafficValue field converts that gap into dollars — how much organic traffic the leaders capture — while organicKeywords shows the breadth of content fueling it. Sorting prospects by DR before outreach focuses effort on the highest-value links. One flat call per domain makes scanning an entire competitive set cheap and repeatable.
Try the domain metrics API free
Sign up for $5 of free credit with no card — enough to score hundreds of domains. Run it on sites whose DR you already know to confirm the scores line up, check that page versus domain scope behaves as expected, and wire the bundle into your reporting or prospecting tool before paying.
Start making API calls in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Get Ahrefs-style authority and traffic metrics for any domain in a single call. Returns Domain Rating (DR), URL Rating (UR), Ahrefs rank, backlinks, referring domains, estimated traffic, traffic value (USD), and organic keywords — at both page and domain scope.
Each API call costs $0.02. No monthly minimums or subscriptions — you only pay for what you use.
Sign up for a free API key, then send a POST request to /v1/seo/domain/metrics. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.
YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.
Ready to integrate?
Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.
More seo apis endpoints
Keywords
$0.15Keyword research API with search volume, CPC, difficulty, competition, and 12-month trends. Up to 100 keywords per request from $0.15/call.
Keyword Ideas
$0.02Generate hundreds of keyword ideas from any seed keyword with volume, CPC, and difficulty scores. Content planning and topic expansion from $0.03/call.
Related Keywords
$0.02Discover semantically related keywords and variations with volume, CPC, and difficulty. Build topical authority from $0.03/call.