# WCAG Accessibility Auditor — Audit & Statement Draft (`flyerlin/wcag-accessibility-auditor`) Actor

WCAG 2.1 checks for static HTML pages, plus an accessibility statement generator for EAA drafts. Follow internal links and get per-page findings mapped to WCAG criteria.

- **URL**: https://apify.com/flyerlin/wcag-accessibility-auditor.md
- **Developed by:** [林 吴](https://apify.com/flyerlin) (community)
- **Categories:** Developer tools, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.60 / 1,000 page audits

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## WCAG Accessibility Auditor — Static HTML Issue Checks

Screen pages for common WCAG 2.1 issues and get a prioritized, evidence-backed issue list before manual review.

### Use it when

- Agencies doing a first-pass accessibility screen before an audit.
- EAA / EN 301 549 remediation projects needing a measurable baseline.
- Dev teams catching alt-text, label and heading issues early.
- SEO teams improving semantic HTML and link text.

**Input → output:** Website pages → rule findings and a heuristic score.

Works with Apify Schedules, webhooks/API and the Apify MCP server (Claude, Cursor and other MCP clients).

### What it checks

| Rule | WCAG | Severity |
|---|---|---|
| Missing `<html lang>` | 3.1.1 | serious |
| Missing page `<title>` | 2.4.2 | serious |
| Page does not start with `<h1>` / skipped heading levels | 1.3.1 | moderate / minor |
| Image without `alt` | 1.1.1 | serious |
| Form control without a programmatic label | 1.3.1 | serious |
| Button or link without an accessible name | 4.1.2 | serious |
| Non-descriptive link text (`click here`, `read more`) | 2.4.4 | minor |
| Iframe without `title` | 2.4.1 | serious |
| Duplicate `id` values | 4.1.1 | moderate |
| Positive `tabindex` | 2.4.3 | moderate |
| Data table without `<th>` | 1.3.1 | moderate |
| Viewport blocks zoom (`user-scalable=no`) | 1.4.4 | serious |

### Output

One dataset item per audited page:

```json
{
  "url": "https://example.com/",
  "title": "Example",
  "status_code": 200,
  "score": 72,
  "issue_count": 4,
  "by_severity": {"critical": 0, "serious": 2, "moderate": 1, "minor": 1},
  "issues": [
    {"rule": "img-alt", "wcag": "1.1.1", "severity": "serious",
     "message": "Image is missing an alt attribute.", "element": "img[src=\"/logo.png\"]"}
  ]
}
```

The run also stores:

- `SUMMARY` - pages audited, issues by severity, average score, worst pages.
- `ACCESSIBILITY_STATEMENT.md` - a draft statement requiring qualified review; not proof of compliance.

### Generate an accessibility statement draft

The run store can include a draft EAA accessibility statement for the audited host, built from the pages checked and the rules triggered. It is a starting document for manual review — not a certification — and pairs with the per-page findings.

### Pricing

**$0.008 per audited page** (event `page_audited`). A 10-page check costs about $0.08, a 100-page audit about $0.80. Only pages that were successfully fetched are charged. Platform usage is included. Apify paid plans receive volume discounts — Bronze 10%, Silver 20%, Gold and above 30%.

### Limitations

These are automated static checks. Colour contrast, keyboard focus order and screen-reader behaviour still require manual testing; the generated statement says so explicitly.

The score is an internal heuristic, not a WCAG conformance percentage. Missing or present automated findings cannot replace keyboard, screen-reader, contrast and contextual review.

### Platform usage

Event prices include platform usage: there is no separate compute, storage or transfer charge. Apify paid plans receive volume discounts — Bronze 10%, Silver 20%, Gold and above 30%. Current Store pricing is authoritative.

### FAQ

**Does this certify WCAG or EAA compliance?**
No. It is an automated screening of static HTML. Compliance still requires manual, keyboard, screen-reader and contrast testing.

**Which rules are checked?**
Twelve static checks mapped to WCAG 2.1: html lang, page title, heading order, image alt, form labels, link/button names, link text, iframe titles, duplicate IDs, tabindex, table headers and zoom blocking.

**How many pages can be audited?**
From 1 to 500 pages per run (default 10), following internal links on the same domain.

**What does the score mean?**
A heuristic 0–100 prioritization score, not a WCAG conformance percentage.

**What is the accessibility statement?**
A draft EAA-style statement written to the key-value store. It requires qualified review and is not proof of compliance.

**How much does it cost?**
$0.008 per audited page. A 100-page audit is about $0.80, all-inclusive.

### Related Actors

- [Webpage to JSON — Text, Tables, Links & JSON-LD](https://apify.com/flyerlin/webpage-clean-json)
- [Data Cleaner — Dedupe, Map & Validate JSON / CSV](https://apify.com/flyerlin/advanced-data-cleaner)
- [Website Change Monitor — Page Diffs & Change Alerts](https://apify.com/flyerlin/website-change-monitor)
- [All Actors by flyerlin](https://apify.com/flyerlin)

# Actor input Schema

## `start_urls` (type: `array`):

Pages to start the audit from. Internal links are followed up to max_pages.

## `max_pages` (type: `integer`):

Maximum number of pages to audit. Each audited page is charged.

## `same_domain` (type: `boolean`):

Only follow links on the start domain. Disable to crawl external links as well.

## `request_timeout_secs` (type: `integer`):

Per-page HTTP timeout in seconds (default 20).

## `generate_statement` (type: `boolean`):

Write a draft accessibility statement (EAA) to the key-value store.

## Actor input object example

```json
{
  "start_urls": [
    "https://example.com"
  ],
  "max_pages": 10,
  "same_domain": true,
  "request_timeout_secs": 20,
  "generate_statement": true
}
```

# 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 = {
    "start_urls": [
        "https://example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("flyerlin/wcag-accessibility-auditor").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 = { "start_urls": ["https://example.com"] }

# Run the Actor and wait for it to finish
run = client.actor("flyerlin/wcag-accessibility-auditor").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 '{
  "start_urls": [
    "https://example.com"
  ]
}' |
apify call flyerlin/wcag-accessibility-auditor --silent --output-dataset

```

## MCP server setup

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

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/TpZK8qHqO4ZEz81fo/builds/XINgH1bFGitxc1jG6/openapi.json
