Skip to content
For developers

PDF accessibility checker API

Send a PDF to POST /v1/accessibility/checks and get back how many machine-checkable PDF/UA criteria it meets. Each failed topic comes with its pages and the steps to fix it in the source file.

Free for 20 files a day. A check counts like a conversion.

# Key from switchfile.io/dashboard/keys. Waits up to 30 s for the result;
# a slower check answers 202, then fetch links.self.
curl "https://api.switchfile.io/v1/accessibility/checks?wait=true" \
  -H "Authorization: Bearer $SWITCHFILE_API_KEY" \
  -F file=@report.pdf -F profile=auto

What comes back

Shortened answer with example values. Every field is in the API reference.

200 OK: the finished check
{
  "object": "accessibility_check",
  "status": "finished",
  "credits": 1,
  "result": {
    "summary": "104 of 110 machine-checkable criteria met; manual review needed",
    "criteria": { "applied": 110, "met": 104, "failed": 6 },
    "manual_review_needed": true,
    "complete": true,
    "profile": "ua1",
    "pages": 12,
    "topics": [{
      "id": "tab-order",
      "title": "Tab order does not follow the document structure",
      "failed_checks": 3,
      "pages": [2, 5, 9],
      "explanation": "…",
      "fix": { "word": ["…"], "indesign": ["…"], "acrobat": ["…"] }
    }],
    "report_json_url": "https://…"
  }
}
summary is the sentence for people, criteria holds the numbers behind it.
topics lists the failed topics with the most failed checks first, each with up to 100 affected pages and the fix steps.
report_json_url is the full report with every finding; report_pdf_url is the report as an accessible PDF when you ask for it.

What the check covers

PDF/UA-1 and PDF/UA-2

profile=auto checks against PDF/UA-2 when the file declares it and against PDF/UA-1 otherwise. ua1 or ua2 sets the part yourself.

Only what software can check

Software can tell whether the file is tagged and has a title and a language, whether figures carry alternative text, and how tables and lists are tagged. Whether alt text is meaningful or the reading order makes sense needs a person, so manual_review_needed is true in every result.

Your file stays as it is

The check reads the PDF and writes a report. It does not repair or change the file; the report says how to fix each problem at the source.

Up to 25 MB and 500 pages

A longer or very complex PDF fails with INPUT_TOO_LARGE. When a check hits its time limit, complete is false and the counts cover the part that was checked.
In jobs under /v2 the same check runs as the task accessibility/check. That way a job can convert a Word file to PDF and check the PDF in one go.

Topics in the report

Each topic has a page with the rule behind it, an example and the fix. The API returns the same steps in fix.

All error pages

Pricing

  • Free

    20files/day

    checks and conversions together, free API key

  • Credit pack

    from€7

    500 credits, one-time, no subscription

  • Monthly

    from€4

    500 credits a month, cancel at any time

A check uses 1 credit per started minute, at least 1. Most checks take a few seconds. Failed checks use no credits. Creating the report as PDF counts towards the same billed time.

A check that is done within a minute costs €0.0043 to €0.014, depending on the plan or pack.

See all prices

SDKs and integrations

The Node.js and Python SDKs have the check built in, and the MCP server offers it as a tool for assistants. The SDK overview lists every client library with its install line.

See the SDK overview

Questions

About checking PDFs through the API.

Does a clean result mean the PDF is accessible?

No. The API reports the machine-checkable criteria of PDF/UA. It is not a statement that a file meets legal requirements, and a person who knows the content still has to review it.

How do I check many PDFs?

Send one request per file. Without wait the request answers at once with 202; fetch links.self with ?wait=true later. Checks send no webhooks. An Idempotency-Key header makes a retry after a timeout safe.

How long do you keep the PDF and the report?

Both are deleted 24 hours after the check, at the time in expires_at. DELETE /v1/accessibility/checks/{id} removes them earlier.

Can I try it without code?

Yes. The checker on our website sends your PDF to the same server-side check and shows the report as a page.

Check your own PDFs

A free API key checks 20 files a day. The report never replaces a review by a person.