# Website Accessibility Checker – WCAG 2.2 Audit with axe-core (`adamplaenitz/website-accessibility-checker`) Actor

Audit web pages for WCAG 2.0/2.1/2.2 accessibility issues (A, AA, AAA) with axe-core in headless Chrome. Violations by impact, failed success criteria, CSS selectors and fix links per page; optional same-site crawl. For EAA / BFSG checks.

- **URL**: https://apify.com/adamplaenitz/website-accessibility-checker.md
- **Developed by:** [Adam Plänitz](https://apify.com/adamplaenitz) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 page auditeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Website Accessibility Checker – WCAG 2.2 Audit with axe-core

**Check web pages for WCAG 2.0, 2.1 and 2.2 accessibility issues (level A, AA or AAA) in a real headless Chrome browser.** Every page is tested with [axe-core](https://github.com/dequelabs/axe-core), the open-source accessibility engine used by many browser dev tools and testing frameworks. You get one result per page with the number of violated rules by impact (critical, serious, moderate, minor), the failed WCAG success criteria, and for each violation the rule, a help text, a link to the fix guide, the number of affected elements and their CSS selectors. Optionally the Actor follows links and audits a whole website. Export as JSON, CSV or Excel, or connect to Google Sheets, Slack, Make, Zapier, n8n or webhooks.

> **Important:** automated tests find only part of all accessibility barriers – depending on the study, roughly a third to about half of the issues. Things like meaningful alt texts, logical reading order, understandable language or full keyboard operability need a manual review by people. **This Actor does not certify conformance with WCAG, EN 301 549, the European Accessibility Act or the German BFSG and is not legal advice.** It is a fast way to find and track the issues machines can detect.

### What does it do?

1. Opens each URL in headless Chromium (desktop 1366×900 or mobile 390×844), waits for the page to load and settle.
2. Injects axe-core into the page and its iframes and runs all rules for the selected WCAG level and version (plus best-practice rules if you want).
3. Writes one row per page: counts by impact, failed success criteria (e.g. `1.4.3`), and the list of violations with rule ID, impact, help text, help URL, conformance level, number of affected elements, up to 5 CSS selectors and up to 3 short HTML snippets (max. 150 characters each).
4. Lists "needs review" results – checks where axe-core could not decide automatically (e.g. text contrast over background images).
5. Optional crawl: follows links to other pages on the same host (`www.` ignored) until *Maximum pages* is reached.

### Who is it for?

- **Companies affected by the European Accessibility Act (EAA, applies since 28 June 2025) and the German Barrierefreiheitsstärkungsgesetz (BFSG):** online shops, banks, telecom, transport and e-book providers that need a first overview of their technical issues.
- **Web agencies and developers:** check client sites before launch, after redesigns or as part of a maintenance contract.
- **Monitoring:** schedule weekly runs and compare violation counts over time.

### Input

| Field | Default | Description |
|---|---|---|
| URLs to audit | – | One per line. Bare domains open as `https://domain/`. |
| WCAG conformance level | AA | A, AA or AAA. AA is the level required by EN 301 549 / EAA, BFSG and BITV 2.0. Higher levels include lower ones. |
| WCAG version | 2.2 | 2.0, 2.1 or 2.2 (2.2 includes all earlier rules). EN 301 549 currently references WCAG 2.1. |
| Include best-practice rules | off | Adds axe best-practice rules (landmarks, heading order …) – not WCAG failures. |
| Also audit linked pages on the same site | off | Same-host crawl. |
| Maximum pages | 50 | Cap for audited pages per run (start URLs + crawled pages). |
| Viewport | Desktop | Desktop 1366×900 or mobile 390×844. |
| Language of rule descriptions | English | English or German (axe-core translations). |
| Respect robots.txt when crawling | on | Applies to crawled pages; start URLs are always opened. |
| Extra wait after page load | 2 s | For content that appears late. |
| Page load timeout | 45 s | |
| Parallel browser pages | 4 | Scales down automatically when memory is short. |
| Proxy | none | Only for sites that block cloud servers. |

### Output example (shortened)

```json
{
  "url": "https://www.w3.org/WAI/demos/bad/before/home.html",
  "finalUrl": "https://www.w3.org/WAI/demos/bad/before/home.html",
  "statusCode": 200,
  "pageTitle": "Welcome to CityLights! [Inaccessible Home Page]",
  "pageLanguage": null,
  "wcagVersion": "2.2",
  "wcagLevel": "AA",
  "violationCount": 6,
  "affectedElements": 46,
  "critical": 2,
  "serious": 4,
  "moderate": 0,
  "minor": 0,
  "nodesByImpact": { "critical": 34, "serious": 12, "moderate": 0, "minor": 0 },
  "failedCriteria": ["1.1.1", "1.4.3", "2.4.4", "2.5.8", "3.1.1", "4.1.2"],
  "passedRules": 14,
  "needsReviewCount": 1,
  "inapplicableRules": 48,
  "violations": [
    {
      "ruleId": "image-alt",
      "impact": "critical",
      "help": "Images must have alternative text",
      "description": "Ensure <img> elements have alternative text or a role of none or presentation",
      "helpUrl": "https://dequeuniversity.com/rules/axe/4.14/image-alt?application=axeAPI",
      "wcagCriteria": ["1.1.1"],
      "level": "A",
      "nodeCount": 33,
      "selectors": ["img[src$=\"border_left_top.gif\"]", "img[src$=\"border_top.gif\"]", "…"],
      "snippets": ["<img src=\"./img/border_left_top.gif\" width=\"10px\" height=\"10px\">", "…"]
    }
  ],
  "needsReview": [
    { "ruleId": "color-contrast", "impact": "serious", "help": "Elements must meet minimum color contrast ratio thresholds", "helpUrl": "https://dequeuniversity.com/rules/axe/4.14/color-contrast?application=axeAPI", "nodeCount": 2 }
  ],
  "viewport": "desktop 1366x900",
  "iframesTested": true,
  "crawlDepth": 0,
  "auditDurationMs": 242,
  "auditedAt": "2026-11-17T21:21:01.181Z",
  "testEngine": "axe-core 4.14.1",
  "license": "axe-core: MPL-2.0",
  "attribution": "Automated checks by axe-core 4.14.1 © Deque Systems, Inc., licensed under MPL-2.0 (https://github.com/dequelabs/axe-core).",
  "error": null
}
```

`violationCount` counts violated **rules**; `affectedElements` counts the elements (nodes) across all of them. Pages that could not be audited (HTTP 4xx/5xx, DNS errors, timeouts, non-HTML files, invalid input) produce a row with `errorCode` and `error`. The **Overview** table shows URL, title, counts per impact, failed criteria and errors. The run summary (key-value store record `RUN-SUMMARY`) adds totals and the most frequently violated rules across all pages.

### Pricing and speed

See the **Pricing** tab. You pay per audited page; **rows for pages that could not be audited are free**. Duplicates are removed. You can set a maximum cost per run – the Actor stops cleanly when it is reached.

The Actor runs a real browser and needs more resources than simple HTTP tools: the default is 2 GB memory. Starting the browser takes a few seconds; each page then needs its load time plus the settle wait (2 s by default) plus the axe-core analysis (0.2–3 s on typical pages, up to about 40 s on very large shop home pages). In cloud tests, 12 large German shop home pages took 3.5 minutes and a 40-page crawl of a municipal website took 3.3 minutes. More memory also gives more CPU and speeds up runs.

### Data, licence and privacy

- **axe-core** © Deque Systems, Inc. is used unmodified under the [Mozilla Public License 2.0](https://www.mozilla.org/MPL/2.0/); its source code is available at https://github.com/dequelabs/axe-core. Every result row carries this attribution. Help links point to Deque University. This Actor is **not affiliated with or endorsed by Deque Systems, the W3C or any authority**.
- **No page content is stored** beyond the page title and short HTML snippets (max. 150 characters) of affected elements, which identify where an issue is. No screenshots, no form submissions, no logins.
- The browser presents itself with a common desktop browser fingerprint, because many websites block headless browsers outright. Please audit only websites you own or are allowed to test. Private and internal addresses are refused.

### Limits

- Automated checks cover only part of WCAG (see the note at the top). A page with 0 violations is **not** automatically accessible.
- Content behind logins, cookie walls or user interaction (menus, dialogs, form errors) is tested only in the state in which it appears after loading. Cookie banners are audited as part of the page.
- Sites with strong bot protection may answer with 403 (free row); a proxy can help.
- Crawling follows `<a href>` links on the same host only; JavaScript-only navigation and sitemaps are not used.

### Kurz auf Deutsch

**Website Accessibility Checker** prüft Webseiten automatisiert auf Barrieren nach WCAG 2.0/2.1/2.2 (Stufe A, AA oder AAA) – mit axe-core in einem echten Headless-Chrome. Pro Seite erhalten Sie die Anzahl der verletzten Regeln nach Schweregrad (kritisch, schwerwiegend, mittel, gering), die betroffenen WCAG-Erfolgskriterien und je Verstoß Regel, Hilfetext (auf Wunsch auf Deutsch), Link zur Lösung, Anzahl der Elemente und CSS-Selektoren. Optional werden verlinkte Seiten derselben Website mitgeprüft.

Gedacht für Unternehmen, die vom **Barrierefreiheitsstärkungsgesetz (BFSG)** bzw. dem **European Accessibility Act** betroffen sind (seit 28.06.2025), sowie für Agenturen. **Wichtig:** Automatische Tests finden nur einen Teil der Barrieren. Das Ergebnis ist **kein Konformitätsnachweis, kein Prüfzertifikat und keine Rechtsberatung** – eine manuelle Prüfung (z. B. nach BITV-Test oder EN 301 549) bleibt nötig. Abgerechnet wird pro geprüfter Seite; nicht prüfbare Seiten sind kostenlos.

Questions or feature requests? Please open an issue in the **Issues** tab.

# Actor input Schema

## `startUrls` (type: `array`):

Pages to audit, one per line (e.g. https://www.example.com/contact). Bare domains are opened as https://domain/. Each page is loaded in headless Chromium and tested with axe-core. Only audit websites you own or are allowed to test.

## `wcagLevel` (type: `string`):

Which success criteria are tested. AA is the level required by the European Accessibility Act / EN 301 549, the German BFSG/BITV 2.0 and most laws. Higher levels include the lower ones.

## `wcagVersion` (type: `string`):

WCAG 2.2 includes all rules of 2.1 and 2.0. EN 301 549 (EAA) currently references WCAG 2.1.

## `includeBestPractices` (type: `boolean`):

Also run axe-core best-practice rules (e.g. landmarks, heading order, one main region). They are not WCAG failures but common accessibility problems.

## `crawlSameDomain` (type: `boolean`):

Follow links on the audited pages to other pages of the same website (same host, "www." ignored; subdomains are not followed) until "Maximum pages" is reached.

## `maxPages` (type: `integer`):

Upper limit for audited pages in this run (start URLs plus crawled pages). You pay per audited page, so this also caps the cost.

## `viewport` (type: `string`):

Window size used for the audit. Some issues (e.g. hidden menus, reflow) only appear on small screens.

## `reportLanguage` (type: `string`):

Language of the help texts in the results (axe-core translations). Rule IDs and help URLs stay the same.

## `respectRobotsTxt` (type: `boolean`):

Pages found by the crawl that robots.txt disallows are skipped. The start URLs are always opened, like a visitor would.

## `waitAfterLoadSecs` (type: `integer`):

Additional time for JavaScript content to appear before the audit starts (the Actor also waits up to 8 s for network idle).

## `pageTimeoutSecs` (type: `integer`):

Pages that do not load within this time are retried once and then reported as a free error row.

## `maxConcurrency` (type: `integer`):

Maximum pages audited at the same time (1–20). The Actor scales down automatically when memory or CPU is short.

## `proxyConfiguration` (type: `object`):

Optional. Only needed if a website blocks requests from cloud servers.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.w3.org/WAI/demos/bad/before/home.html",
    "https://www.w3.org/WAI/demos/bad/after/home.html"
  ],
  "wcagLevel": "AA",
  "wcagVersion": "2.2",
  "includeBestPractices": false,
  "crawlSameDomain": false,
  "maxPages": 50,
  "viewport": "desktop",
  "reportLanguage": "en",
  "respectRobotsTxt": true,
  "waitAfterLoadSecs": 2,
  "pageTimeoutSecs": 45,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One item per audited page with violation counts by impact and the violated rules (plus free rows for pages that could not be audited).

## `summary` (type: `string`):

Totals per impact, most frequently violated rules, settings and axe-core version.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://www.w3.org/WAI/demos/bad/before/home.html",
        "https://www.w3.org/WAI/demos/bad/after/home.html"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("adamplaenitz/website-accessibility-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrls": [
        "https://www.w3.org/WAI/demos/bad/before/home.html",
        "https://www.w3.org/WAI/demos/bad/after/home.html",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("adamplaenitz/website-accessibility-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://www.w3.org/WAI/demos/bad/before/home.html",
    "https://www.w3.org/WAI/demos/bad/after/home.html"
  ]
}' |
apify call adamplaenitz/website-accessibility-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,adamplaenitz/website-accessibility-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/JKx65OnPY995192ro/builds/wfsii6OeWdIbzTnF1/openapi.json
