Skip to main content
Government|Compliance Officer / Accessibility Lead

Web Accessibility & Compliance Audit

Screen public pages for accessibility, privacy, and internationalization findings

Screen public pages for accessibility, privacy, and internationalization findings. Use the API workflow below to collect dated findings, review their scope, and decide which follow-up checks your team needs.

Implementation example by the EdgeDNS team · Updated

The Challenge

Static checks can identify useful issues while leaving keyboard behavior, rendered contrast, and dynamic interactions untested.

The Solution

Run accessibility, privacy, internationalization, and compliance-score checks against representative public pages. The accessibility analyzer reports its static-HTML coverage and confidence. Schedule keyboard, screen-reader, rendered-style, and dynamic-content testing; these scores do not establish accessibility or privacy conformance.

Endpoints Used

Combine these EdgeDNS endpoints to build this solution.

GET
/v1/domain/accessibilityAPI reference

Accessibility Audit: Static HTML accessibility checks with coverage limits

GET
/v1/domain/privacy-auditAPI reference

Privacy Audit: Cookies, trackers, and compliance analysis

GET
/v1/domain/i18nAPI reference

Internationalization Check: Hreflang, language, charset, and RTL support

GET
/v1/score/complianceAPI reference

Compliance Score: Composite score summarizing observed technical compliance signals

What this workflow helps you do

Find static accessibility issues

Review findings and reported coverage before prioritizing fixes.

Review privacy and language signals

Use technical findings to guide specialist review.

Plan manual verification

Test interactions and assistive-technology behavior beyond static HTML.

Code Example

Screen public pages for accessibility, privacy, and internationalization findings

javascript
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const checks = [
  {
    "path": "/v1/domain/accessibility",
    "params": {
      "domain": "https://example.com"
    }
  },
  {
    "path": "/v1/domain/privacy-audit",
    "params": {
      "domain": "https://example.com"
    }
  },
  {
    "path": "/v1/domain/i18n",
    "params": {
      "domain": "https://example.com"
    }
  }
];

// Run sequentially to keep concurrency bounded. API tier restrictions apply.
for (const { path, params } of checks) {
  const url = new URL(path, 'https://api.edgedns.dev');
  url.search = new URLSearchParams(params).toString();
  const response = await fetch(url, { headers });
  const result = await response.json();
  if (!response.ok) {
    throw new Error(`${path}: ${response.status} ${result.error?.message ?? 'Request failed'}`);
  }
  // Keep the response metadata and any partial/unknown findings for review.
  console.log(path, result);
}

Learn More

Explore industry standards and best practices related to this use case.

Ready to build Web Accessibility & Compliance Audit?

Get started with 200 free API requests per month. No credit card required.

Other Use Cases

Web Accessibility & Compliance Audit (WCAG) | EdgeDNS