Skip to main content

SEO Audit API

developer
GET/v1/domain/seo-audit

Runs 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

SEO Specialist

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.

Content Editor

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.

Content Strategist

Competitor Page Analysis

Analyze competitor landing pages to understand their on-page optimization strategy.

Identify content gaps and optimization opportunities versus competitors.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredDomain 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.

FieldTypeDescription
domainstringThe audited domain (bare hostname).
urlstringFull URL that was fetched, echoing the protocol used in the request.
titleobjectTitle 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.
metaDescriptionobjectMeta description analysis: text, length, isOptimal
headingsobjectHeading hierarchy (H1-H6), proper order, duplicates
imagesobjectImage alt text coverage and quality breakdown
linksobjectInternal/external link counts and ratios
contentobjectWord count and top keyword density
openGraphobjectOG tag completeness and missing tags
twitterCardobjectTwitter Card completeness and missing tags
scorenumberSEO score 0-100
gradestringLetter grade A-F
gradeDescriptionstringHuman-readable description of the grade (e.g., "Very Good - strong posture")
breakdownobjectPer-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)
recommendationsarrayActionable 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
curl --request GET 'https://api.edgedns.dev/v1/domain/seo-audit?domain=https%3A%2F%2Fexample.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
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);
Python
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.

    Try This Endpoint

    Test the SEO Audit endpoint live in the playground.