Moz API
by moz.com
SEO and site checks
Added on March 27th, 2011
Checked and working on November 15th, 2026
Visit moz.com →
What it does
The Moz API gives the link and domain data behind Moz's SEO tools: Domain Authority and Page Authority, backlinks and linking domains, anchor text, spam score, and keyword data such as search volume and difficulty. Use it to build your own SEO tools, dashboards and reports. Responses are JSON. Mostly paid, with a small free allowance.
At a glance
- Pricing
- Mostly paid, with a small free allowance.
- Interface
- REST, HTTP-GET
- Provider
- moz.com
- Last checked
- Working on November 15th, 2026
More information: https://moz.com/products/api
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl -X POST 'https://api.moz.com/jsonrpc' \
-H 'x-moz-token: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": "1", "method": "data.site.metrics.fetch", "params": {"data": {"site_query": {"query": "moz.com", "scope": "domain"}}}}'
JavaScript
const response = await fetch("https://api.moz.com/jsonrpc", {
method: 'POST',
headers: {
"x-moz-token": "YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({"jsonrpc":"2.0","id":"1","method":"data.site.metrics.fetch","params":{"data":{"site_query":{"query":"moz.com","scope":"domain"}}}}),
});
const text = await response.text();
console.log(text);
Python
import requests
response = requests.post(
"https://api.moz.com/jsonrpc",
headers={
"x-moz-token": "YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"jsonrpc": "2.0",
"id": "1",
"method": "data.site.metrics.fetch",
"params": {
"data": {
"site_query": {
"query": "moz.com",
"scope": "domain",
},
},
},
},
timeout=30,
)
print(response.text)
Replace YOUR_API_KEY with your own key.