Skip to main content

SEO Score API

pro
GET/v1/score/seo

Returns a versioned EdgeDNS diagnostic SEO score with evidence coverage and search-readiness state. Actual final URL/origin, restrictive indexing directives and crawler policy are preserved. The score is not Google ranking, Lighthouse scoring or a guarantee of indexing; grade is null for blocked or incomplete assessments.

What It Does

Analyzes on-page HTML, technical SEO, applicable structured-data syntax, social metadata, image/resource diagnostics and bounded link checks. Optional CrUX origin field data is scored using a documented EdgeDNS 70/30 phone/desktop policy, with actual source origin, collection period and missing metric state. Recency dates and authorship markup are diagnostics, not universal quality or expertise scores. Unknown observations are excluded from observed arithmetic but retained in coverage; absence and not-applicable checks remain distinct. Error/challenge pages cannot establish requested-page readiness.

Why It's Useful

Track repeatable diagnostics and identify which components need investigation. The score is an EdgeDNS composite, not a Google ranking score or a guarantee of indexing. Compare component availability and source warnings across reports.

Use Cases

SEO Manager

SEO Health Dashboard

Track composite SEO scores across all properties in a single dashboard.

Monitor overall SEO health and identify properties needing attention.

SEO Agency

Client Reporting

Generate monthly SEO score reports for clients showing progress and component breakdown.

Demonstrate ROI of SEO services with a clear, trackable metric.

Web Developer

Pre-Launch Validation

Run an SEO score check before launching or updating a website to ensure SEO readiness.

Catch SEO issues across all dimensions before they affect rankings.

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
assessmentobjectComplete/provisional/unavailable evidence status, applicable/observed weights, coverage and unavailable components
searchReadinessobjectEligible, blocked or unknown indexing/crawling readiness with observed reasons; separate from diagnostic arithmetic
diagnosticGradestringGrade of observed diagnostic score only; grade is null when readiness or evidence does not support a complete result
requestedUrlstringRequested document URL without fragment
finalUrlstringFinal response URL used to scope origin observations
webVitalsEvidenceobjectPer-device field evidence including requested/matched origin, collection period, availability and complete-core status; alternate-origin observations do not silently enter the score
methodologyobjectVersioned EdgeDNS policy; independent of Google ranking and Lighthouse algorithms
domainstringThe scored domain (bare hostname).
urlstringFull URL that was fetched, echoing the protocol used in the request.
seoScorenumberObserved diagnostic average 0-100 over applicable available components; interpret with assessment coverage and readiness
gradestringNullable readiness grade; only present when evidence is complete and the page is eligible for the declared crawler/indexing intent
componentsobjectIndividual component scores with score and availability
components.onPageSeoobjectOn-page SEO audit: title, meta description, headings, images, links, content, keywords (score 0-100)
components.webVitalsobjectOrigin CrUX diagnostics with explicit per-device scope and EdgeDNS 70/30 policy; no complete core-vitals pass from missing LCP/INP/CLS
eeatSignalsobjectObserved authorship/about/contact/reviewer markup; easily copied signals do not verify experience, expertise, authority or ranking
components.technicalSeoobjectTechnical SEO: canonical URL, indexability, viewport/mobile, lang, HTTPS, status code, charset (score 0-100)
components.structuredDataobjectApplicable structured-data syntax checks; malformed blocks prevent full validity credit and rich-result eligibility is not verified
components.socialMetaobjectSocial meta: Open Graph and Twitter Card tag completeness (score 0-100)
components.contentFreshnessobjectOptional content-date diagnostics; excluded from universal SEO weighting because recency relevance depends on page purpose
components.contentQualityobjectImage/resource/document-size diagnostics; readability and authorship markup do not establish universal quality or expertise
components.linkHealthobjectLink health: broken links, redirect chains, anchor text quality (score 0-100)
breakdownobjectDetailed score breakdown with score, max, and details for each of the 8 components
topRecommendationsarrayTop 5 prioritized SEO improvements from all components
componentsFetchednumberNumber of successfully fetched source components; not the number of scored categories
partialFailurebooleanWhether any data sources failed to load

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the pro plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/score/seo?domain=https%3A%2F%2Fexample.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/score/seo?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/score/seo?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 Score guide

Learn the concepts, choose a practical workflow, and interpret the observations from SEO Score 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 Score endpoint live in the playground.

SEO Score API Reference | EdgeDNS