Analyze Your Domain's Authority Instantly
Use our advanced tool to check your domain authority (DA), page authority (PA), backlinks, and other critical SEO metrics. Input your domain below to get started!
Use our advanced tool to check your domain authority (DA), page authority (PA), backlinks, and other critical SEO metrics. Input your domain below to get started!
Security Rule: Never put a private Moz API token (x-moz-token) or Ahrefs/Semrush secret inside Blogger JavaScript. Enter only the URL of your own secure backend proxy endpoint (for example, a Cloudflare Worker or serverless function) that authenticates requests server-side.
Your backend accepts { "provider": "moz", "scope": "root", "targets": ["example.com"] } and forwards to Moz API (https://lsapi.seomoz.com/v2/url_metrics or Moz V3 JSON-RPC Fetch Site Metrics) using header x-moz-token: process.env.MOZ_API_TOKEN.
// Reference Cloudflare Worker / Serverless Proxy (runs on YOUR backend, not Blogger)
export default {
async fetch(request, env) {
if (request.method === "OPTIONS") return new Response(null, { headers: corsHeaders() });
const { targets, scope, provider } = await request.json();
// Validate public domains & enforce rate limits before calling Moz API
const mozRes = await fetch("https://lsapi.seomoz.com/v2/url_metrics", {
method: "POST",
headers: { "Content-Type": "application/json", "x-moz-token": env.MOZ_API_TOKEN },
body: JSON.stringify({ targets: targets.slice(0, 50) })
});
const raw = await mozRes.json();
const results = (raw.results || []).map((r, i) => ({
target: targets[i], scope, provider: "Moz",
da: r.domain_authority ?? null, pa: r.page_authority ?? null,
spamScore: r.spam_score ?? null, linkingRootDomains: r.root_domains_to_root_domain ?? null,
inboundLinks: r.pages_to_root_domain ?? null, timestamp: new Date().toISOString(), cached: false
}));
return new Response(JSON.stringify({ provider: "Moz", results }), {
headers: { "Content-Type": "application/json", ...corsHeaders() }
});
}
};