Skip to main content

Accessibility Audit API

developer
GET/v1/domain/accessibility

Runs static HTML accessibility diagnostics using an HTML5 parser, native semantics and resolved accessible-name references. Returns scoped check outcomes, evidence coverage and explicit manual/rendered limitations. The score is not WCAG conformance or legal certification.

What It Does

Inspects real elements rather than commented/rawtext/template markup; checks native labels, ordered IDREF names, language tags, headings, images, links and structural signals. Native HTML needs no redundant ARIA and tag/attribute counts do not earn points. Caption quality, table relationships, focus appearance and keyboard behavior require review; unobserved runtime content is unavailable. Error/challenge/SPA-shell documents cannot establish the requested page assessment.

Why It's Useful

Web accessibility is both a legal requirement (ADA, WCAG) and a business imperative — it expands your audience and improves usability for everyone. Automated audits catch common issues at scale that manual testing would miss.

Use Cases

Accessibility Specialist

WCAG Compliance Check

Screen pages for static HTML accessibility findings and use reported coverage limits to plan manual follow-up.

Reduce legal risk and improve inclusivity for users with disabilities.

Frontend Developer

Development QA

Check new pages or components for accessibility regressions before deployment with detailed per-category scoring.

Catch a11y regressions early in the development cycle with actionable recommendations.

Compliance Officer

Enterprise Compliance

Monitor accessibility compliance across all public-facing web properties with consistent scoring methodology.

Track and report on accessibility progress across the organization with transparent, weighted scoring.

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
assessmentobjectEvidence completeness/coverage; unavailable/error documents cannot establish requested-page accessibility
checkResultsobjectPer static check pass/fail/needs_review/not_applicable; not whole-criterion or WCAG conformance outcomes
methodologyobjectVersioned static HTML diagnostic scope and partial WCAG references
finalUrlstringFinal inspected document URL
responseStatusCodenumberInspected response status; error/challenge representations are unavailable evidence
domainstringThe audited domain (bare hostname).
urlstringFull URL that was fetched, echoing the protocol used in the request.
ariaobjectARIA attributes, landmarks, and issues found
semanticHtmlobjectSemantic element usage with score
formLabelsobjectForm input label coverage and issues
languageobjectLang attribute presence and validity
headingsobjectHeading order validation and skipped levels
imagesobjectImage alt text coverage, quality, and decorative detection
skipNavigationobjectSkip navigation link detection
tabIndexobjectPositive tabindex anti-pattern detection
linkTextobjectGeneric link text detection
pageTitleobjectPage title presence, emptiness, and generic title detection
viewportobjectViewport zoom restriction detection
autoplayMediaobjectUnmuted autoplay media detection
mediaCaptionsobjectVideo/audio caption and subtitle detection (WCAG 1.2.2)
tablesobjectTable caption, header, and scope usage
buttonsobjectEmpty button accessible name detection
iframesobjectIframe title attribute coverage
duplicateIdsobjectDuplicate ID attribute detection
linkAccessibilityobjectEmpty and image-only link detection
autocompleteobjectAutocomplete attribute coverage on identifiable inputs
metaRefreshobjectMeta refresh redirect detection
svgsobjectSVG accessible name detection
formGroupsobjectFieldset/legend usage for radio/checkbox groups
focusSuppressionobjectInline outline suppression detection
mediaAlternativesobjectObject, embed, canvas alternative text detection
scorenumberDiagnostic score over applicable observed static checks; consult assessment and checkResults before interpreting
gradestring|nullStatic-check grade when evidence is complete; null when provisional or unavailable. Does not establish WCAG conformance.
gradeDescriptionstringDescription of the static diagnostic result, including unavailable or provisional scope.
breakdownobjectPer-category score breakdown with max weights
recommendationsarrayActionable accessibility improvements
supplementaryChecksobjectInformational WCAG checks not included in scoring: orientation lock (1.3.4), accesskeys (2.1.4), aria-live regions (4.1.3)
wcagCoverageobjectPartial criterion references and explicit static/manual limitations; no universal automatable-criterion denominator
confidenceobjectResult confidence indicator: level (high/medium/low) and limitations list

Scoring Methodology

24 checks / 100 pts

Each check maps to a WCAG 2.1 success criterion at Level A or AA. The weighted score (0-100) determines the letter grade: A+ (95-100), A (85-94), B (70-84), C (50-69), D (30-49), F (0-29). Categories without applicable elements on the page receive full marks.

CheckWCAGLevelWeight
Semantic HTML

Static landmark correctness; no quota for semantic element names

1.3.1A10
Form Labels

Input label coverage via explicit, implicit, or ARIA labeling

1.3.1 / 4.1.2A10
Image Alt Text

Alt text presence (60%) and quality (40%) blended score

1.1.1A10
Heading Order

Heading outline diagnostics; no universal exactly-one-H1 requirement

1.3.1 / 2.4.6A10
Language

Valid lang attribute on the html element

3.1.1A7
ARIA

Applicable role correctness; redundant ARIA attributes earn no extra credit

4.1.2A6
Viewport Zoom

No user-scalable=no or maximum-scale < 2

1.4.4AA5
Skip Navigation

Skip-to-content link for keyboard navigation

2.4.1A4
Page Title

Descriptive title element present (generic titles like "Home" or "Untitled" receive partial credit)

2.4.2A4
Link Text

No generic link text (click here, read more, etc.)

2.4.4A3
Tab Index

No positive tabindex values (anti-pattern)

2.4.3A3
Link Accessibility

No empty or image-only links missing alt text

2.4.4 / 4.1.2A3
Autoplay Media

No unmuted autoplay audio or video

1.4.2A2
Media Captions

Caption/track static signals requiring manual content review

1.2.2A3
Tables

Table markup signals; actual header relationships and layout/data applicability require review

1.3.1A3
Duplicate IDs

Each id attribute must be unique — duplicate IDs break ARIA references (aria-labelledby, aria-controls) and label[for] associations.

1.3.1 / 4.1.2A2
Autocomplete

Autocomplete on identifiable inputs (name, email, phone)

1.3.5AA2
Meta Refresh

No meta http-equiv=refresh redirect or reload

2.2.1A2
SVG Accessibility

Accessible names on non-decorative SVGs via title or aria-label

1.1.1A2
Form Groups

Fieldset and legend for radio/checkbox groups

1.3.1A2
Buttons

All buttons have accessible names

4.1.2A2
Focus Management

No inline outline:none suppressing focus indicators

2.4.7AA2
Iframes

Title attribute on all iframe elements

2.4.1A2
Media Alternatives

Alternative text for object, embed, and canvas elements

1.1.1A1
Total100

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

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

    Accessibility Audit API Reference | EdgeDNS