-
SEO Learning Center
Broaden your SEO knowledge with resources for all skill levels.
-
The Beginner's Guide to SEO
If you're brand new to SEO, start here.
-
SEO Q&A
Get answers from the Moz Community.
-
Free Downloads and More
Quick access to whitepapers, reports, guides, webinars, and case studies.
-
Help Hub
Learn how to use Moz products.
-
Community & Events
Connect with over 600k online marketers.
-
SEO Training
Instructor-led classes and seminars
Research Tools
Manage Location
DataSiteMetricsFetch
Use this endpoint to get metrics such as Domain Authority, Page Authority, Spam Score, link counts and more for one URL
JSON-RPC Method Name
data.site.metrics.fetch
Request Parameters
site_query
object
A SiteQuery provides a target URL along with a scope to define how the query is parsed.
Response Values
site_query
object
Represents a parsed site query.
site_metrics
object
Represents a Site Metrics object.
Sample Requests
Sample Response
1{
2 "site_query": {
3 "query": "https://moz.com",
4 "scope": "domain",
5 "original_site_query": {
6 "query": "moz.com",
7 "scope": "domain"
8 },
9 "site_query_suggestion": null
10 },
11 "site_metrics": {
12 "page": "moz.com",
13 "subdomain": "moz.com",
14 "root_domain": "moz.com",
15 "title": "The Moz Blog",
16 "last_crawled": "2023-06-01",
17 "http_code": 200,
18 "pages_to_page": 123,
19 "nofollow_pages_to_page": 5,
20 "redirect_pages_to_page": 10,
21 "external_pages_to_page": 100,
22 "external_nofollow_pages_to_page": 3,
23 "external_redirect_pages_to_page": 8,
24 "deleted_pages_to_page": 2,
25 "root_domains_to_page": 50,
26 "indirect_root_domains_to_page": 15,
27 "deleted_root_domains_to_page": 1,
28 "nofollow_root_domains_to_page": 2,
29 "pages_to_subdomain": 500,
30 "nofollow_pages_to_subdomain": 20,
31 "redirect_pages_to_subdomain": 40,
32 "external_pages_to_subdomain": 400,
33 "external_nofollow_pages_to_subdomain": 15,
34 "external_redirect_pages_to_subdomain": 30,
35 "deleted_pages_to_subdomain": 10,
36 "root_domains_to_subdomain": 100,
37 "deleted_root_domains_to_subdomain": 5,
38 "nofollow_root_domains_to_subdomain": 10,
39 "pages_to_root_domain": 5000,
40 "nofollow_pages_to_root_domain": 200,
41 "redirect_pages_to_root_domain": 400,
42 "external_pages_to_root_domain": 4000,
43 "external_indirect_pages_to_root_domain": 1000,
44 "external_nofollow_pages_to_root_domain": 150,
45 "external_redirect_pages_to_root_domain": 300,
46 "deleted_pages_to_root_domain": 100,
47 "root_domains_to_root_domain": 500,
48 "indirect_root_domains_to_root_domain": 200,
49 "deleted_root_domains_to_root_domain": 50,
50 "nofollow_root_domains_to_root_domain": 100,
51 "page_authority": 45,
52 "domain_authority": 55,
53 "link_propensity": 0.8,
54 "spam_score": 2,
55 "root_domains_from_page": 10,
56 "nofollow_root_domains_from_page": 1,
57 "pages_from_page": 50,
58 "nofollow_pages_from_page": 5,
59 "root_domains_from_root_domain": 1000,
60 "nofollow_root_domains_from_root_domain": 100,
61 "pages_from_root_domain": 5000,
62 "nofollow_pages_from_root_domain": 500,
63 "pages_crawled_from_root_domain": 10000
64 }
65}
Quota Usage
Uses one row per call.
api.limits.data.rows
Example Code
cURL
curl -X POST https://api.moz.com/jsonrpc \
-H "x-moz-token: <YOUR_MOZ_TOKEN>" \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": "73085aa4-144c-4a34-b4a7-0a5aa1a60719",
"method": "data.site.metrics.fetch",
"params": {
"data": {
"site_query": {
"query": "https://moz.com/blog",
"scope": "domain"
}
}
}
}'