API & MCP
Everything a person can do on Accessibility Snapshot, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://a11ysnapshot.usefulweb.site/api/v1/calculate– run Accessibility SnapshotGET https://a11ysnapshot.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Accessibility Snapshot
Fetch a public URL or paste HTML to get a deterministic accessibility snapshot: page language, title, image alternatives, form labels, button and link names, heading outline, landmarks, tables, iframes, zoom blocking and more — each finding mapped to a WCAG 2.2 success criterion with the offending element. It also lists what must be checked by hand.
| Field | Type | Default | Description |
|---|---|---|---|
url | url | — | Page URL. Fetched once, server-side, with the static HTML only (no JavaScript is executed). |
html | textarea | — | Or paste HTML. Takes precedence over the URL. Useful for pages behind a login or local drafts. |
maxFindings | integer | 100 | Max findings listed |
Example request
Landing page with common problems
curl -X POST https://a11ysnapshot.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"html":"<!doctype html>\n<html>\n<head><meta name=\"viewport\" content=\"width=device-width, user-scalable=no\"><title></title></head>\n<body>\n<div class=\"nav\"><a href=\"/\"><img src=\"logo.png\"></a> <a href=\"/shop\">Shop</a> <a href=\"/blog\">Blog</a> <a href=\"/help\">Help</a> <a href=\"/about\">About</a> <a href=\"/cart\"><svg aria-hidden=\"true\"></svg></a></div>\n<h1>Spring sale</h1>\n<h3>Newsletter</h3>\n<form><input type=\"email\" name=\"email\" placeholder=\"Your email\"><button><svg aria-hidden=\"true\"></svg></button></form>\n<p>Read our offers <a href=\"/offers\">click here</a>.</p>\n<iframe src=\"https://www.youtube.com/embed/xyz\"></iframe>\n</body>\n</html>","maxFindings":100}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://a11ysnapshot.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
a11y_snapshot - Local stdio connector:
node src/mcp-stdio.ts --tool=a11y-snapshot
{
"mcpServers": {
"a11y-snapshot": { "type": "http", "url": "https://a11ysnapshot.usefulweb.site/mcp" }
}
}