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

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.

Inputs of Accessibility Snapshot
FieldTypeDefaultDescription
urlurl—Page URL. Fetched once, server-side, with the static HTML only (no JavaScript is executed).
htmltextarea—Or paste HTML. Takes precedence over the URL. Useful for pages behind a login or local drafts.
maxFindingsinteger100Max 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)

{
  "mcpServers": {
    "a11y-snapshot": { "type": "http", "url": "https://a11ysnapshot.usefulweb.site/mcp" }
  }
}