# WCAG Accessibility Audit via axe-core

> WCAG Accessibility Audit via axe-core is a paid API for AI agents from x402-api-24223879872.us-east1.run.app, paid per call via x402, $0.08/call, status unknown (last checked 2026-10-13).

Runs a WCAG 2.1-AA or 2.2-AA accessibility audit on any public URL using headless Chromium and axe-core, returning violation/pass/incomplete counts by impact level and a 0-100 accessibility score.

## Facts

- Endpoint: GET https://x402-api-24223879872.us-east1.run.app/v1/a11y-audit?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wcag-accessibility-audit-via-axe-core-d2ef2e20
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RqeEt20cNUOADd4l1KiPc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability wcag-accessibility-audit-via-axe-core-d2ef2e20
```

Example prompt: Can you run a WCAG 2.2-AA accessibility audit on https://example.com using a desktop viewport and tell me the score plus any critical or serious violations?

## When to prefer this

Choose this endpoint when you need a programmatic, per-rule WCAG accessibility audit with axe-core severity breakdown (critical/serious/moderate/minor) and a normalized 0-100 score for any public URL, especially when you need both desktop and mobile viewport options and support for both WCAG 2.1-AA and 2.2-AA standards. Prefer it over manual audits or browser extensions when automating CI/CD checks or agent-driven compliance workflows.

## Known failure modes

- Private, loopback, or link-local URLs are rejected with an error
- URL that times out or returns non-200 in headless Chromium results in an audit failure
- Malformed or missing 'url' query parameter returns a validation error
- Sites with heavy JavaScript that doesn't render in time may yield incomplete audits
- Paywalled or login-required pages will only audit the publicly visible portion

## How this service works

WCAG accessibility audit of a public URL using headless Chromium and axe-core: violation/pass/incomplete counts by impact, per-rule detail, and a 0-100 score.

## Output

Returns a JSON object with: a 0-100 accessibility score, the audited and final URLs, the WCAG level and viewport used, an audit timestamp, a summary object with total violation/pass/incomplete counts and a breakdown by impact (critical, serious, moderate, minor), an array of violations each with rule ID, description, impact, WCAG tags, help URL, and per-node HTML snippets and failure summaries, plus an array of incomplete (needs-review) rules.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 2048,
       "description": "Public http(s) URL to audit. Private/loopback/link-local hosts are rejected."
      },
      "wcag": {
       "enum": [
        "2.1-aa",
        "2.2-aa"
       ],
       "type": "string",
       "default": "2.2-aa"
      },
      "viewport": {
       "enum": [
        "desktop",
        "mobile"
       ],
       "type": "string",
       "default": "desktop"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "score": {
       "type": "number"
      },
      "summary": {
       "type": "object",
       "properties": {
        "passes": {
         "type": "number"
        },
        "byImpact": {
         "type": "object",
         "properties": {
          "minor": {
           "type": "number"
          },
          "serious": {
           "type": "number"
          },
          "critical": {
           "type": "number"
          },
          "moderate": {
           "type": "number"
          }
         }
        },
        "incomplete": {
         "type": "number"
        },
        "violations": {
         "type": "number"
        }
       }
      },
      "finalUrl": {
       "type": "string"
      },
      "viewport": {
       "enum": [
        "desktop",
        "mobile"
       ],
       "type": "string"
      },
      "auditedAt": {
       "type": "string"
      },
      "wcagLevel": {
       "enum": [
        "2.1-aa",
        "2.2-aa"
       ],
       "type": "string"
      },
      "incomplete": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string"
         },
         "impact": {
          "type": [
           "string",
           "null"
          ]
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wcag-accessibility-audit-via-axe-core-d2ef2e20/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-api-24223879872.us-east1.run.app](https://www.zero.xyz/host/x402-api-24223879872.us-east1.run.app/llms.txt)
