# EAA & WCAG 2.2 E-Commerce Accessibility Auditor (`khoaphan/eaa-accessibility-auditor`) Actor

Deterministic European Accessibility Act (EAA / EN 301 549 / WCAG 2.2 AA) & checkout readiness auditor for Shopify, WooCommerce, Magento, and custom storefronts. Flags blockers, overlay widget risks, and generates plain-English fix reports.

- **URL**: https://apify.com/khoaphan/eaa-accessibility-auditor.md
- **Developed by:** [Khoa Phan](https://apify.com/khoaphan) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## EAA & WCAG 2.2 E-Commerce Accessibility Auditor

Deterministic, `robots.txt`-compliant **European Accessibility Act (EAA — Directive (EU) 2019/882 / EN 301 549 / WCAG 2.2 Level AA)** & checkout readiness auditor for **Shopify, WooCommerce, Magento, Next.js, and custom storefronts**.

Since **June 28, 2025** (actively enforced across EU member states in 2025–2026), e-commerce businesses selling to EU consumers are legally required to provide accessible product discovery, cart, and checkout experiences — and EU regulators / the European Disability Forum explicitly warn that third-party JavaScript overlay widgets alone do **not** establish EN 301 549 conformity.

***

### What It Audits Across Storefronts & Checkout Flows

| Audit Pillar | Standard Mapping | Deterministic Checks Performed |
| :--- | :--- | :--- |
| **1. Document, Language & Zoom** | `WCAG 3.1.1`, `2.4.2`, `1.4.4` | Missing `<html lang="...">`, empty `<title>`, and mobile viewport zoom locks (`user-scalable=no` or `maximum-scale < 2.0`). |
| **2. Product & Storefront Media** | `WCAG 1.1.1` | `<img>` tags missing `alt` attributes entirely while distinguishing valid decorative `alt=""` images from product gallery images. |
| **3. Forms, Search & Checkout** | `WCAG 1.3.1`, `1.3.5`, `3.3.2`, `4.1.2` | Unlabeled `<input>`, `<select>`, and `<textarea>` fields (including placeholder-only traps) plus missing `autocomplete` tokens on customer email/name/phone/address fields. |
| **4. Buttons, Cart Icons & Links** | `WCAG 2.4.4`, `4.1.2` | Icon-only cart/search/menu `<button>` and `<a href>` elements with zero accessible text, `aria-label`, or SVG/image labels, plus ambiguous `"Click here"` links. |
| **5. Headings & Landmarks** | `WCAG 1.3.1`, `2.4.1`, `2.4.6` | Missing `<h1>`, skipped heading hierarchy (`<h1>` -> `<h3>`), missing `<main>` landmark, and missing keyboard skip-to-content links. |
| **6. Overlay Widget Risk Flag** | `EAA / EN 301 549 Advisory` | Detects superficial overlay toolbars (`accessiBe`, `UserWay`, `EqualWeb`, `AudioEye`, `MaxAccess`, `User1st`, `FACIL'iti`) and flags regulatory non-reliance warnings. |
| **7. EAA Legal Statement & Stack** | `Directive (EU) 2019/882 Art. 13` | Checks for `/accessibility` or `Accessibility Statement` links and fingerprints `Shopify`, `WooCommerce`, `Magento`, `Next.js`, or `Custom` storefronts. |

***

### Input Configuration

```json
{
  "startUrls": [
    { "url": "https://khoaphan.dev" }
  ],
  "maxPagesPerSite": 5,
  "respectRobotsTxt": true,
  "timeoutSecs": 15
}
```

- **Smart Storefront Route Discovery:** When `maxPagesPerSite > 1`, the crawler automatically prioritizes internal `/checkout`, `/cart`, `/products`, `/collections`, `/accessibility`, and `/contact` routes on the same domain.
- **Built-in SSRF Protection:** Blocks localhost, loopback, link-local cloud metadata (`169.254.169.254`), and RFC1918 private IPs across initial requests and HTTP redirects.

***

### Sample Output Item (`Dataset` + `EAA_AUDIT_REPORT.md`)

In addition to structured JSON dataset items (`site_summary` and `page_audit`) ready for **n8n, Make, Zapier, CI pipelines, and MCP agents**, every run writes a ready-to-share **`EAA_AUDIT_REPORT.md`** into the Apify Default Key-Value Store for non-technical store owners and agencies.

```json
{
  "record_type": "page_audit",
  "domain": "example-shop.eu",
  "url": "https://example-shop.eu/checkout",
  "page_type": "checkout",
  "http_status": 200,
  "score_0_to_100": 64,
  "eaa_readiness_verdict": "HIGH_RISK_EAA_NON_COMPLIANT",
  "platform_detected": "Shopify",
  "overlay_widget_detected": "accessiBe",
  "has_accessibility_statement_link": false,
  "pages_audited": 1,
  "critical_violations_count": 2,
  "warnings_count": 2,
  "violations": [
    {
      "rule_id": "EAA-FORM-UNLABELED-INPUT",
      "severity": "critical",
      "wcag_criterion": "WCAG 2.2 SC 1.3.1, 3.3.2 & 4.1.2 (AA) / EN 301 549 9.3.3.2",
      "element_selector": "input[name=\"email\"]",
      "html_snippet": "<input name=\"email\" placeholder=\"Email address\" type=\"email\"/>",
      "issue": "Form/checkout control <input> has no associated programmatic label (currently relies only on placeholder='Email address', which disappears when typing).",
      "fix_instruction": "Connect a visible <label for=\"field-id\">Field Name</label> to the input's id, or add an explicit aria-label attribute so screen-reader and voice-control shoppers can complete forms and checkout."
    }
  ],
  "audited_at_utc": "2026-11-27T03:35:00Z"
}
```

***

### Author & Custom EAA Remediation / CI Integration

**Author:** Khoa Phan — <https://khoaphan.dev>\
**Contact:** `khoa@khoaphan.dev` (custom EAA storefront remediation, Playwright authenticated checkout testing, GitHub Actions CI accessibility gates, and MCP / agency white-label integrations).

# Actor input Schema

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

List of e-commerce storefront, product, cart, or checkout URLs to audit for European Accessibility Act (EAA / EN 301 549 / WCAG 2.2 Level AA) readiness.

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

Maximum number of internal pages to crawl per storefront (auto-discovers priority /products, /collections, /cart, /checkout, /contact, and /accessibility routes on the same host).

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

Check /robots.txt before crawling each storefront and skip disallowed paths.

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

Per-page HTTP request timeout in seconds.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://khoaphan.dev"
    }
  ],
  "maxPagesPerSite": 5,
  "respectRobotsTxt": true,
  "timeoutSecs": 15
}
```

# Actor output Schema

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

Dataset containing per-page and site-summary EAA / WCAG 2.2 AA audit items with selectors and plain-English fixes

## `markdownReport` (type: `string`):

Ready-to-share EAA_AUDIT_REPORT.md stored in the default Key-Value Store

# 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://khoaphan.dev"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khoaphan/eaa-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 = { "startUrls": [{ "url": "https://khoaphan.dev" }] }

# Run the Actor and wait for it to finish
run = client.actor("khoaphan/eaa-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 '{
  "startUrls": [
    {
      "url": "https://khoaphan.dev"
    }
  ]
}' |
apify call khoaphan/eaa-accessibility-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,khoaphan/eaa-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/0v3ykhNk1Kgq47KRM/builds/6KbXQ0Lwc1obgdLjX/openapi.json
