# Website Accessibility Audit (WCAG 2.2, EAA) (`nemata/website-accessibility-audit`) Actor

Audit any website for accessibility with axe-core in a real browser: WCAG 2.2 A/AA issues, affected elements, how to fix, score per page and site summary. Crawls internal pages. Ideal for EAA compliance checks.

- **URL**: https://apify.com/nemata/website-accessibility-audit.md
- **Developed by:** [nemata](https://apify.com/nemata) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.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 Audit — WCAG 2.2 & European Accessibility Act

Audit any website for accessibility in a **real browser**, using **axe-core**, the open-source engine behind most professional accessibility tools. You get a clear list of issues on every page: what is wrong, which WCAG success criterion it breaks, how serious it is, which elements are affected and how to fix it.

- **WCAG 2.2 AA by default.** WCAG 2.1 AA, 2.0 A/AA, EN 301 549 rules and best practices are also available.
- **Whole sites, not only single pages.** Set *Pages per site* and the Actor follows internal links.
- **Desktop or mobile layout** (iPhone 13 emulation).
- **Actionable output:** rule, impact (critical / serious / moderate / minor), WCAG criteria (e.g. `1.4.3`), affected elements with CSS selector and HTML snippet, fix instructions and a link to the rule documentation.
- **Score per page (0-100) and site summary** with the average score, the worst pages and the most common issues.
- **Pay per page audited.** Pages that fail to load are free.

### Why now: the European Accessibility Act

Since **28 June 2025** the European Accessibility Act requires many private-sector products and services sold in the EU to be accessible, including e-commerce, banking, e-books, transport and communication services. The harmonised standard EN 301 549 points to **WCAG AA** for web content. This Actor helps you find and track the issues that can be detected automatically.

### Use cases

- Check your own site, or a client's, before and after a redesign
- Monitor accessibility on a schedule and catch regressions
- Agencies: audit prospects' sites and prioritise fixes
- Feed issues into Jira, Sheets or dashboards via Apify integrations
- Give an AI agent the ability to check pages for accessibility

### Input

```json
{
  "startUrls": [{ "url": "https://www.example.com" }],
  "maxPagesPerSite": 25,
  "standard": "wcag22aa",
  "device": "desktop"
}
```

### Output (one item per page)

```json
{
  "url": "https://www.example.com/contact",
  "title": "Contact us",
  "lang": "en",
  "score": 72,
  "violationsCount": 4,
  "elementsAffected": 17,
  "violationsByImpact": { "critical": 1, "serious": 2, "moderate": 1, "minor": 0 },
  "violations": [
    {
      "rule": "color-contrast",
      "impact": "serious",
      "help": "Elements must meet minimum color contrast ratio thresholds",
      "wcagCriteria": ["1.4.3"],
      "level": "AA",
      "elementsAffected": 9,
      "examples": [
        {
          "selector": ".footer > p",
          "html": "<p class=\"muted\">© 2026 Example</p>",
          "fix": "Fix any of the following:\n  Element has insufficient color contrast of 3.2 (foreground color: #999999, background color: #ffffff, font size: 10.5pt, font weight: normal). Expected contrast ratio of 4.5:1"
        }
      ],
      "helpUrl": "https://dequeuniversity.com/rules/axe/4.10/color-contrast"
    }
  ],
  "needsReviewCount": 2,
  "passedRulesCount": 31,
  "axeVersion": "4.10.3"
}
```

The site summary is saved in the run's key-value store as `SUMMARY`.

### Good to know

- Automated testing finds many common issues, but not all of them. Items under `needsReview` need a human check, and a full conformance claim also needs manual testing with a keyboard and a screen reader.
- The score is a quick indicator that compares the weight of failed and passed rules. It is not an official WCAG metric.
- This Actor is not legal advice and does not certify compliance.

### Use with AI agents

- **MCP:** AI assistants and agents can call this Actor as a tool through the Apify MCP server.
- **No Apify account needed for agents:** agents can pay per run through Apify with x402 (stablecoins) or Skyfire, and then call the Actor with the temporary token they receive.
- Clear JSON input and structured JSON output that an agent can use directly.

### Pricing

**$0.012 per page** ($12 per 1,000). The price is the same for every Apify plan you are on, and you can set a maximum cost per run in the run options.

Pay per event: you are charged **per page audited**. Pages that cannot be loaded are not charged.

### Credits

Accessibility rules by [axe-core](https://github.com/dequelabs/axe-core) © Deque Systems, licensed under MPL-2.0. This Actor is not affiliated with Deque.

# Actor input Schema

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

Pages to audit. With 'Pages per site' above 1, internal links found on these pages are audited too.

## `maxPagesPerSite` (type: `integer`):

How many pages to audit per start URL, following internal links. 1 = only the URLs you give.

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

Which rules to check. WCAG 2.2 AA is the level referenced by the European Accessibility Act (via EN 301 549) and most laws.

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

Also report axe-core best-practice rules that are not strict WCAG failures (headings order, landmarks...).

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

Audit the desktop layout or the mobile layout (iPhone 13 emulation).

## `waitAfterLoadMs` (type: `integer`):

Wait this long after the page loads before auditing, for sites that render content late.

## `locale` (type: `string`):

Browser locale, e.g. 'es-ES' or 'en-US'. Some sites serve different content per language.

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

How many pages to audit at the same time.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.w3.org/WAI/demos/bad/before/home.html"
    }
  ],
  "maxPagesPerSite": 1,
  "standard": "wcag22aa",
  "includeBestPractices": false,
  "device": "desktop",
  "waitAfterLoadMs": 0,
  "locale": "en-US",
  "maxConcurrency": 3
}
```

# Actor output Schema

## `pages` (type: `string`):

No description

## `summary` (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 = {
    "startUrls": [
        {
            "url": "https://www.w3.org/WAI/demos/bad/before/home.html"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nemata/website-accessibility-audit").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": [{ "url": "https://www.w3.org/WAI/demos/bad/before/home.html" }] }

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

```

## MCP server setup

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

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/SwvXrAKVOuKYuWd0E/builds/gvvKK0KoEKNaRar1R/openapi.json
