x402

Accessibility Audit (x402)

WCAG 2.1 accessibility audit of a URL. Checks color contrast, alt text, form labels, ARIA roles, heading hierarchy, link text, language. Mostly deterministic.

get/x402/v2/accessibility-audit

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/accessibility-audit
  • Auth: none required

Query parameters

urlstring required

URL to audit

Response

Success

scoreinteger

Example response

{
  "url": "https://example.com",
  "score": 95,
  "passes": [
    "Heading hierarchy is sequential",
    "All links have descriptive text",
    "Page language is declared",
    "Viewport meta tag present"
  ],
  "summary": {
    "low": 1,
    "medium": 0,
    "critical": 0,
    "passed_checks": 4
  },
  "violations": [
    {
      "fix": "Use semantic HTML5 elements (nav, main, header, footer) or ARIA landmark roles",
      "rule": "WCAG 1.3.1 - Landmark Regions",
      "element": "page structure",
      "severity": "low",
      "description": "No landmark regions found (nav, main, header, footer elements or ARIA roles)"
    }
  ],
  "violation_count": 1,
  "manual_review_needed": [
    "Keyboard navigation and focus management",
    "Screen reader compatibility",
    "Color contrast for all text (not just inline styles)",
    "Dynamic content accessibility",
    "Video captions and audio descriptions"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.