# Accessibility Checker: WCAG 2.2 Audit with axe-core (`forgeloop/accessibility-checker`) Actor

Check web pages for WCAG 2.0, 2.1 and 2.2 accessibility issues with axe-core in a real Chromium browser. Get violations by impact, affected elements with CSS selectors and HTML, and fix guidance links. Desktop or mobile. Pay per audited page, errors are free.

- **URL**: https://apify.com/forgeloop/accessibility-checker.md
- **Developed by:** [Markus Heiß](https://apify.com/forgeloop) (community)
- **Categories:** SEO tools, 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 $3.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

## Accessibility Checker: WCAG 2.2 Audit with axe-core

Check any list of web pages for WCAG accessibility issues. The Actor opens each page in a real Chromium browser, runs the open source [axe-core](https://github.com/dequelabs/axe-core) engine on the rendered page and returns every violated rule with its impact, the WCAG success criteria, the affected elements and a link to fix guidance.

Built for web agencies, developers, QA teams and site owners who want a fast first accessibility check of many pages, a regular regression check after releases, or a list of concrete issues to hand to developers.

Not affiliated with Deque Systems or the W3C. The checks come from the axe-core library by Deque Systems, which is bundled unchanged under the Mozilla Public License 2.0.

### What it does

- **Loads each page in Chromium** with JavaScript, CSS and the page's own resources, like a normal browser visit. Desktop (1440 x 900) or mobile (390 x 844 with touch and a mobile user agent).
- **Runs axe-core** against WCAG 2.0 A, 2.0 AA, 2.1 AA or 2.2 AA. Each choice includes the levels below it. Optionally also the axe best-practice rules.
- **Lists the violations** sorted by impact (critical, serious, moderate, minor), each with a short explanation, the WCAG success criteria like `1.4.3`, the number of affected elements and up to N elements with CSS selector, HTML snippet and what to fix.
- **Counts without a score:** number of violated rules, affected elements, rules per impact level, rules passed and rules that need a manual review. There is no made-up percentage score.
- **Clear errors per URL:** pages that do not load, error pages (HTTP 4xx and 5xx), file downloads and non-HTML answers get a free item with an `error` field. The run goes on with the next page.
- **Safe by default:** local and private network addresses are refused, also when a page redirects to them. Audio and video files are not downloaded.

### Use cases

- **Agency and freelancer audits:** check a client's main pages before a pitch or a redesign and get a first issue list in minutes.
- **Release checks:** audit your key pages after every deployment and compare the counts with the last run.
- **Developer hand-off:** each issue comes with the CSS selector, the HTML of the element and a help link, ready for a ticket.
- **European Accessibility Act preparation:** find the issues that automated testing can find, as one step before a full manual audit.
- **Mobile layouts:** run the same pages in the mobile preset to find issues that only appear in the small layout, such as target size (WCAG 2.2, 2.5.8).

### Input

| Field | Description | Default |
|---|---|---|
| URLs | Web pages to audit, one per line. A missing `https://` is added. | |
| Standard | `wcag2a`, `wcag2aa`, `wcag21aa` or `wcag22aa` | `wcag2aa` |
| Include best practices | Also run the axe best-practice rules | off |
| Device | `desktop` or `mobile` | `desktop` |
| Elements per violation | How many affected elements are listed per rule, 0 to 100 | 5 |
| Extra wait | Seconds to wait after the page has loaded, 0 to 30 | 1 |
| Page timeout | Seconds to load a page, 10 to 180. The check gets the same time. | 45 |
| Parallel pages | Pages audited at the same time, 1 to 5 | 2 |

Example, WCAG 2.2 AA on desktop with best practices:

```json
{
  "urls": ["https://www.w3.org/WAI/demos/bad/before/home.html", "https://example.com"],
  "standard": "wcag22aa",
  "includeBestPractices": true
}
```

Example, mobile layout, only the counts and one element per rule:

```json
{
  "urls": ["https://www.example.org/", "https://www.example.org/contact"],
  "standard": "wcag21aa",
  "device": "mobile",
  "maxNodesPerRule": 1,
  "waitSecs": 3
}
```

### Output

One dataset item per page:

```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,
  "title": "Welcome to CityLights! [Inaccessible Home Page]",
  "standard": "wcag22aa",
  "standardName": "WCAG 2.2 AA",
  "includeBestPractices": false,
  "device": "desktop",
  "violationCount": 6,
  "nodesAffected": 46,
  "byImpact": { "critical": 2, "serious": 4, "moderate": 0, "minor": 0 },
  "violations": [
    {
      "id": "image-alt",
      "impact": "critical",
      "description": "Ensure <img> elements have alternative text or a role of none or presentation",
      "help": "Images must have alternative text",
      "helpUrl": "https://dequeuniversity.com/rules/axe/4.14/image-alt?application=axeAPI",
      "wcagTags": ["wcag2a", "wcag111"],
      "wcagCriteria": ["1.1.1"],
      "bestPractice": false,
      "nodeCount": 33,
      "nodes": [
        {
          "target": "img[src$=\"border_left_top.gif\"]",
          "html": "<img src=\"./img/border_left_top.gif\" width=\"10px\" height=\"10px\">",
          "impact": "critical",
          "failureSummary": "Fix any of the following:\nElement does not have an alt attribute\n..."
        }
      ]
    }
  ],
  "passesCount": 14,
  "incompleteCount": 1,
  "incompleteRules": ["color-contrast"],
  "axeVersion": "4.14.1",
  "checkedAt": "2026-11-19T08:00:00.000Z",
  "error": null
}
```

- `violationCount` is the number of violated rules. `nodesAffected` is the number of elements that fail, summed over all rules.
- `byImpact` counts violated rules per impact level, as axe-core rates them.
- `nodeCount` is the full number of failing elements for a rule. `nodes` lists at most "Elements per violation" of them.
- `target` is a CSS selector for the element. Parts inside a shadow root are joined with `>>>`. `html` is cut at 300 characters.
- `wcagTags` are the axe tags for level and criterion. `wcagCriteria` are the same criteria in the usual notation like `1.4.3`. Best-practice rules have `bestPractice: true` and usually no WCAG criterion.
- `passesCount` is the number of rules that passed. `incompleteCount` and `incompleteRules` are rules that axe-core could not decide, for example contrast on a background image. Check those by hand.
- A page that fails gets an item with `error` set, for example `The page answered with HTTP 404. Error pages are not audited.` These items are free.

The "Violations" view in the dataset shows one row per violated rule. Export the dataset as JSON, CSV or Excel, or read it through the Apify API.

### Pricing

Pay per audited page: 0.003 USD per page, so 3.00 USD per 1,000 pages. Pages that fail to load, error pages, invalid lines and other errors are free. Set the maximum charge in Apify to cap the cost of a run.

Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start.

### Memory and speed

The default memory is 2048 MB with 2 pages in parallel. In our tests 10 typical pages (news, government, documentation and demo sites) finished in 12 to 40 seconds. The browser needs CPU more than memory: at 1024 MB, the minimum, the same 10 pages took 20 to 80 seconds. Heavy pages with many thousands of elements take longer. With 4 or 5 parallel pages, give the run 4096 MB.

### Limits

- **Automated checks find only part of the issues.** axe-core finds issues that a machine can decide, such as missing alternative text, low contrast, missing form labels or wrong ARIA. Many criteria need a human: meaningful alternative text, keyboard use, focus order, captions, clear language and more. A page without violations is not automatically accessible.
- **No legal compliance statement.** The results do not certify conformance with WCAG, EN 301 549, the European Accessibility Act (EAA), the ADA, Section 508 or any other law or standard. Use them as one input for a full audit by qualified people.
- Each URL is checked as it looks right after loading. States behind clicks, menus, dialogs, logins or forms are not tested. Links are not followed.
- Content inside iframes is not checked. Audit the iframe URL on its own if you need it.
- Some sites block automated browsers or show a cookie wall or a bot check. These pages return an error item or audit the wall instead of the content. The Actor does not try to get around such blocks.
- Only public addresses. Local and private network addresses are refused.

### Data source, permitted use and legal

- **Data source:** Public web pages at the URLs you enter. The Actor loads them live during the run and checks them with [axe-core](https://github.com/dequelabs/axe-core) by Deque Systems, which is bundled unchanged under the [Mozilla Public License 2.0](https://www.mozilla.org/en-US/MPL/2.0/). The source code of axe-core is available in its repository. This Actor is not affiliated with or endorsed by Deque Systems or the W3C.
- **Snapshot:** Results show the source at the time of the run. We do not guarantee that they are complete, current or correct.
- **For business use:** This Actor is offered to businesses only, not to consumers.
- **Permitted use:** Audit only pages you are allowed to test, for example your own websites, sites of clients who asked you to, or public pages you have a legitimate reason to check. Respect the terms of the websites.
- **Your responsibility:** You choose the URLs and decide what happens with the results. If results contain personal data, you are the controller and need your own legal basis.
- **No circumvention:** The Actor does not log in, solve captchas or bypass paywalls, bot protection or other access restrictions. Do not use it for that.
- **Request volume:** One page load per URL, including the resources the page loads itself, like a normal browser visit. Do not use it to put excessive load on a website.
- **Provider:** forgeloop, Markus Heiss, Austria. [Imprint](https://devhem.github.io/forgeloop-legal/imprint.html), [Privacy Notice](https://devhem.github.io/forgeloop-legal/privacy.html), [Terms of Use](https://devhem.github.io/forgeloop-legal/terms.html).

### Questions and issues

Open an issue on the Actor page.

# Actor input Schema

## `urls` (type: `array`):

Web pages to audit, one per line. A missing https:// is added automatically. Each page is loaded and checked on its own, links are not followed. Only audit pages you are allowed to test.

## `standard` (type: `string`):

WCAG version and level to test. Each choice includes the levels below it, for example WCAG 2.1 AA also tests 2.0 A and AA.

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

Also run the axe-core best-practice rules, such as one main landmark or a page heading. They are not WCAG requirements and are marked with bestPractice: true.

## `device` (type: `string`):

Desktop 1440 x 900 or mobile 390 x 844 with touch and a mobile user agent.

## `maxNodesPerRule` (type: `integer`):

How many affected elements are listed for each violated rule. nodeCount always shows the full number. 0 lists none.

## `waitSecs` (type: `integer`):

Wait this long after the page has loaded, for content that scripts add late.

## `timeoutSecs` (type: `integer`):

Give up on a page after this many seconds of loading. The check itself gets the same time.

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

How many pages are audited at the same time. More needs more memory.

## Actor input object example

```json
{
  "urls": [
    "https://www.w3.org/WAI/demos/bad/before/home.html",
    "https://example.com"
  ],
  "standard": "wcag2aa",
  "includeBestPractices": false,
  "device": "desktop",
  "maxNodesPerRule": 5,
  "waitSecs": 1,
  "timeoutSecs": 45,
  "maxConcurrency": 2
}
```

# Actor output Schema

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

No description

# 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 = {
    "urls": [
        "https://www.w3.org/WAI/demos/bad/before/home.html",
        "https://example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("forgeloop/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 = { "urls": [
        "https://www.w3.org/WAI/demos/bad/before/home.html",
        "https://example.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("forgeloop/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 '{
  "urls": [
    "https://www.w3.org/WAI/demos/bad/before/home.html",
    "https://example.com"
  ]
}' |
apify call forgeloop/accessibility-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,forgeloop/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/gi3okfORSPqlSgRK9/builds/eeaP28FmK1Xywmude/openapi.json
