Skip to main content

Website Health API

pro
GET/v1/composite/website-health

Combines four scoped observations: on-page SEO, static accessibility, privacy documentation/storage-header signals, and delivered security headers. It does not establish WCAG conformance, legal compliance, honored consent, actual index membership or browser Web Vitals. Incomplete components expose assessment status and provisional observations; an overall grade is withheld when required evidence is incomplete. Use /v1/score/seo for the broader SEO profile with available CrUX field data.

What It Does

Reuses the inspected HTML for on-page SEO, static accessibility and privacy checks, and separately fetches HTTPS security headers. Returns the actual observed component scores, scope/coverage and recommendations. Browser interaction, contrast/layout, runtime storage and legal applicability remain unverified. Security headers may have a separate final URL; consult the component evidence before comparing results.

Why It's Useful

Supports technical regression triage and planning for browser, accessibility and privacy review in one response. Compare equivalent observation scopes and complete evidence; a numerical diagnostic score is not certification.

Use Cases

Compliance Officer

Accessibility review support

Track static accessibility signals and prioritize browser/manual assessment. Review legal applicability separately; use SEO and privacy signals as additional technical evidence.

Scoped technical observations for review documentation and remediation triage.

DevOps / QA Engineer

CI/CD Quality Gate

Integrate website health checks into deployment pipelines to catch SEO regressions, static accessibility risks and privacy signal changes before they reach production.

Catch changes in observed technical signals before deployment and prioritize browser, accessibility and privacy review.

Digital Agency

Client Reporting Dashboard

Generate automated website health reports for clients showing SEO, accessibility, and privacy scores with actionable recommendations and grade trends over time.

Demonstrate measurable improvement across all quality dimensions with a single API integration.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredDomain or full URL — accepts `example.com` or `https://example.com/path`.Example: https://example.com
componentsquerystringOptionalComma-separated list of components to run: seo, accessibility, privacy, security. Defaults to all four.Example: seo,privacy,security
detailquerystringOptionalSet to "full" to include per-component score breakdowns in the response.Example: full
force_refreshquerystringOptionalSet to "true" to bypass cache and get fresh results.Example: true

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 assessed domain (bare hostname).
urlstringFull URL that was fetched, echoing the protocol used in the request.
timestampstringISO 8601 timestamp of the assessment
scoresobjectIndividual audit scores: seo, accessibility, privacy, security — each with score (0-100), grade (A+ to F), and available flag. Includes per-component breakdown when detail=full. Null if the component failed or was not requested. Weights for the overall score: SEO 30%, accessibility 30%, privacy 20%, security 20%.
overallScorenumberAverage health score (0-100) calculated from available components. Null when required evidence is incomplete.
overallGradestring | nullOverall health grade: A+ (95+), A (85+), B (70+), C (50+), D (30+), F (<30)
overallGradeDescriptionstring | nullHuman-readable description of the overall grade (e.g., "Excellent", "Good", "Needs Improvement"). Null when required evidence is incomplete.
topRecommendationsarrayTop 5 highest-impact deduplicated recommendations, each with text, source (seo|accessibility|privacy|security), and severity (high|medium|low), prioritized by score deficit
warningsarrayWarnings about analysis reliability (e.g., SPA detection, HTTP error pages). Only present when applicable.
metaobjectRequest metadata: request_id, response_time_ms, components_fetched (0-4), partial_failure flag, errors per component

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/composite/website-health?domain=https%3A%2F%2Fexample.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/composite/website-health?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/composite/website-health?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 Website Health guide

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

    Website Health API Reference | EdgeDNS