SEO Audit API
developer/v1/domain/seo-auditRuns scoped static on-page SEO diagnostics with actual final-document identity and shared restrictive crawler directives. Reports syntax/content signals with explicit response eligibility; error/challenge representations do not establish requested-page readiness.
What It Does
Uses HTML5-normalized real elements for title, metadata, heading, links and image diagnostics; combines robots/googlebot/X-Robots directives and none consistently. Validates canonical HTTP(S) syntax, reports malformed structured data, preserves final URL/status, and counts multilingual words descriptively. No universal minimum word count, authorship-markup expertise or ranking guarantee is inferred.
Why It's Useful
On-page SEO directly impacts search engine rankings and click-through rates. This audit surfaces issues that are invisible to the naked eye — missing alt text, duplicate headings, thin content, and incomplete social meta tags — so you can fix them before they hurt rankings.
Use Cases
Content Audit
Audit pages across a website to identify SEO issues like missing meta descriptions, thin content, or broken heading hierarchy.
Prioritize fixes by impact to improve organic search rankings.
Pre-publish Check
Run an SEO audit on new pages before publishing to ensure all on-page elements meet standards.
Catch SEO issues before search engines index the page.
Competitor Page Analysis
Analyze competitor landing pages to understand their on-page optimization strategy.
Identify content gaps and optimization opportunities versus competitors.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | Domain or full URL — accepts `example.com` or `https://example.com/path`.Example: https://example.com |
Response Fields
Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.
| Field | Type | Description |
|---|---|---|
domain | string | The audited domain (bare hostname). |
url | string | Full URL that was fetched, echoing the protocol used in the request. |
title | object | Title tag analysis: text, length, isOptimal, recommendation, widthAnalysis (estimatedPixelWidth, willTruncateDesktop/Mobile, truncationPreview, thresholds). Pixel-width is how Google actually truncates SERP titles — char-count is only a proxy. |
metaDescription | object | Meta description analysis: text, length, isOptimal |
headings | object | Heading hierarchy (H1-H6), proper order, duplicates |
images | object | Image alt text coverage and quality breakdown |
links | object | Internal/external link counts and ratios |
content | object | Word count and top keyword density |
openGraph | object | OG tag completeness and missing tags |
twitterCard | object | Twitter Card completeness and missing tags |
score | number | SEO score 0-100 |
grade | string | Letter grade A-F |
gradeDescription | string | Human-readable description of the grade (e.g., "Very Good - strong posture") |
breakdown | object | Per-component score breakdown with max weights: title (18), metaDescription (13), headings (13), content (16), imageAlt (10), links (10), duplicateMeta (5), keywords (5), canonical (4), structuredData (4), hreflang (2) |
recommendations | array | Actionable improvement suggestions |
Code Examples
Replace YOUR_API_KEY with your API key. This endpoint requires the developer plan or higher; see plans and usage limits.
curl --request GET 'https://api.edgedns.dev/v1/domain/seo-audit?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
"https://api.edgedns.dev/v1/domain/seo-audit?domain=https%3A%2F%2Fexample.com",
{
"method": "GET",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
);
if (!response.ok) {
throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);import requests
response = requests.request(
'GET',
"https://api.edgedns.dev/v1/domain/seo-audit?domain=https%3A%2F%2Fexample.com",
headers={'Authorization': 'Bearer YOUR_API_KEY'},
timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)Read the full SEO Audit guide
Learn the concepts, choose a practical workflow, and interpret the observations from SEO Audit before acting on them. Run supported checks via MCP or through REST.
Read the guide →Related Endpoints
External References
Learn more about the standards and protocols behind this endpoint.