# Wcag Ada Website Accessibility Compliance Auditor (`arezdev/wcag-ada-website-accessibility-compliance-auditor`) Actor

Check public website HTML for ten accessibility issue categories. Export evidence, review-priority scores, overlay detections and public contacts for remediation workflows. Static checks help prioritize manual review and do not certify legal compliance.

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

## Pricing

from $5.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

**Turn bulk website lists into accessibility review priorities, concrete HTML evidence, and contact-ready leads without running a browser.**

Audit public pages for ten static accessibility issue categories, score findings from 0 to 100, detect six overlay providers, and export a flat dataset to your sales or remediation workflow. The Actor uses Node.js 22, direct streaming requests, and a 256 MB default run configuration.

The names `complianceScore` and `legalRiskTier` describe deterministic prioritization heuristics. A score of 100 means these checks found no issues in the downloaded HTML. It does not establish WCAG 2.2 AA conformance, ADA Title III compliance, EAA compliance, or legal liability. W3C explains that preliminary checks cannot provide a comprehensive accessibility assessment: [Easy Checks](https://www.w3.org/WAI/test-evaluate/preliminary/). Use findings to request a manual review and substantiate outreach, rather than asserting that a business has violated the law.

Best for triaging accessibility reviews across website lists. Each supplied page is checked independently; linked pages and interactive behavior are not audited. Use the HTML evidence to prioritize manual assessment, not to assert legal noncompliance.

### Ready-to-run example

The Input form includes public example values. A fresh `apify run` uses the input schema defaults. To explicitly select the small sample, including when input was saved by an earlier local run, use:

```sh
apify run --input-file .actor/input.example.json
```

#### Run results and source access

Routine HTTP/2 to HTTP/1.1 recovery and other connection retries are logged at DEBUG level. If recovery succeeds, the page is audited normally. Final page failures still produce a warning and an ERROR dataset row. Enable DEBUG logging when investigating the individual connection attempts.

You can also paste [.actor/input.example.json](.actor/input.example.json) into the JSON input editor in Apify Console. Replace the example sources with your own targets and increase the limits when you are ready.

### How to use

1. Paste full public website URLs into **Website URLs**. Each supplied page is audited; paths and query parameters are preserved. Exact normalized duplicates are audited once.
2. Keep the default settings for an initial run, or enable **Save only high-risk leads** and **Exclude sites with accessibility widgets** to focus the saved leads.
3. Run the Actor and inspect **Accessibility Leads** or **Technical Findings** in the Output tab.
4. Download JSON or CSV, retrieve the dataset through the API, or connect your automation platform.

```json
{
  "urls": ["https://books.toscrape.com/", "https://quotes.toscrape.com/"],
  "onlyHighRiskLeads": false,
  "excludeSitesWithWidgets": false,
  "maxConcurrency": 25,
  "timeoutSecs": 15
}
```

The two-page prefill uses the Books to Scrape and Quotes to Scrape scraping sandboxes. Website availability and network latency can vary. The Actor does not crawl linked pages, submit forms, execute scripts, or make extra contact-page requests.

### What data can you extract?

Every result has the same 22 top-level fields. The evidence array contains at most five short strings, without nested finding objects.

| Fields | Meaning |
| --- | --- |
| `domain`, `auditedUrl` | Final public hostname without its leading `www.`, and the final requested URL after safe redirects or the HTTPS `www.` fallback |
| `status`, `httpStatusCode` | `SUCCESS` for downloaded and audited HTML, or `ERROR` with an HTTP status where available |
| `complianceScore`, `legalRiskTier` | Static score and its derived `CRITICAL`, `HIGH`, `MODERATE`, or `LOW` review priority |
| `totalViolations` | Total occurrences plus one for each failed page-level check across all ten categories |
| `missingAltCount` | Visible images without `alt`, excluding explicit presentational roles; `alt=""` is accepted as decorative |
| `emptyLinksAndButtonsCount` | Links with `href`, buttons, button-like inputs, and ARIA links/buttons without a static accessible name |
| `unlabeledFormFieldsCount` | Inputs, selects, and textareas without a usable native label, ARIA label/reference, or title; placeholders do not count |
| `zoomDisabledViolation` | Viewport declares `user-scalable=no`, `user-scalable=0`, or `maximum-scale` at or below 1 |
| `missingHtmlLangViolation` | No nonempty `lang` on the HTML element |
| `headingHierarchyViolation` | First heading skips level 1 or a later heading increases by more than one level |
| `untitledIframesCount` | Visible iframes without a title or resolvable ARIA name |
| `hasAccessibilityWidget`, `detectedWidgetProvider` | Overlay signature detection; multiple providers are comma-separated in a stable order |
| `violationEvidenceSnippets` | Up to five representative issue categories, at most 140 characters each, with HTML escaped for safe display |
| `primaryEmail`, `primaryPhone` | Best public contact found on the page, preferring same-domain mailto addresses and tel links; phone numbers contain digits and an optional leading `+` |
| `htmlTruncated`, `scrapedAt`, `errorMessage` | Partial-document flag, UTC ISO timestamp, and a safe error description |

Missing or empty page titles, positive `tabindex`, and autoplay media are also checked. Their findings contribute to `totalViolations`, scoring, and representative evidence; the flat schema does not add separate fields for these three checks.

Accessible-name checks understand labels that precede or follow their controls, wrapped labels, descendant text and image alternatives, hidden ARIA label references, and cyclic references. Elements hidden by HTML attributes, inline `display:none` or `visibility:hidden`, inert subtrees, templates, and script/style content are excluded from issue counts where appropriate. External CSS, layout, JavaScript changes, and the full browser accessibility tree are not evaluated.

Overlay signatures cover **accessiBe, UserWay, AudioEye, EqualWeb, Monsido, and OneClickAccessibility** in script sources, initialization code, and known DOM identifiers. An ordinary prose mention does not count. Presence of an overlay neither fixes nor proves compliance, and absence of a signature does not prove that no widget is installed.

#### Scoring

Subtract the following penalties from 100, with a minimum score of 0:

| Check | Penalty |
| --- | --- |
| Missing image alternatives | 5 per occurrence, capped at 20 |
| Empty links/buttons | 5 per occurrence, capped at 20 |
| Unlabeled fields | 5 per occurrence, capped at 20 |
| Missing HTML language | 5 |
| Disabled zoom | 10 |
| Missing or empty page title | 5 |
| Heading hierarchy issue | 5 |
| Untitled iframes | 5 per occurrence, capped at 5 |
| Positive tabindex | 5 per occurrence, capped at 5 |
| Autoplay audio/video | 5 per occurrence, capped at 5 |

The tiers are `CRITICAL` at 0-39, `HIGH` at 40-69, `MODERATE` at 70-89, and `LOW` at 90-100. These weights are product heuristics, not a W3C grading system. Findings such as heading skips and autoplay require human interpretation.

### Input settings

| Setting | Default | Details |
| --- | --- | --- |
| `urls` | Required | 1-100,000 full HTTP/HTTPS URLs; maximum 2,048 characters each |
| `onlyHighRiskLeads` | `false` | Save successful results only in the `HIGH` or `CRITICAL` tiers |
| `excludeSitesWithWidgets` | `false` | Save successful results only when no supported overlay signature is detected |
| `maxConcurrency` | `25` | Integer from 1 to 100; default is intended for 256 MB runs |
| `timeoutSecs` | `15` | Integer from 3 to 60; one deadline includes DNS, redirects, proxy attempts, and the entire response |
| `proxyConfiguration` | Optional | Controls proxy use as described below |

Filters apply together. `ERROR` records remain visible regardless of lead filters, and successful results excluded by filters are not saved or charged for the custom event. With restrictive filters, the Actor may inspect many URLs before filling the free plan's saved-item cap.

With proxy settings omitted, the Actor tries a free direct connection first. On HTTP 403, 429, or 503, it tries Apify datacenter proxy, starting with `SHADER` and falling back to the default account group if necessary. This requires the platform-provided proxy configuration to be available. No account profile lookup is used.

An explicit `useApifyProxy: true` permits a final attempt through the chosen groups/country, or `RESIDENTIAL` if no group is selected. `useApifyProxy: false` forces direct access. Supplying custom `proxyUrls` makes them exclusive, with no automatic Apify proxy fallback. Proxy traffic may incur separate costs. Never paste proxy authentication details into logs or shared input examples.

```json
{
  "urls": ["https://example.com"],
  "proxyConfiguration": { "useApifyProxy": false }
}
```

### Output example

This illustrative result matches the ten-check scoring rules:

```json
{
  "domain": "example.com",
  "auditedUrl": "https://example.com/",
  "status": "SUCCESS",
  "httpStatusCode": 200,
  "complianceScore": 60,
  "legalRiskTier": "HIGH",
  "totalViolations": 8,
  "missingAltCount": 4,
  "emptyLinksAndButtonsCount": 2,
  "unlabeledFormFieldsCount": 1,
  "zoomDisabledViolation": false,
  "missingHtmlLangViolation": true,
  "headingHierarchyViolation": false,
  "untitledIframesCount": 0,
  "hasAccessibilityWidget": false,
  "detectedWidgetProvider": null,
  "violationEvidenceSnippets": [
    "Missing image alt: &lt;img&gt;",
    "Missing HTML language: &lt;html&gt;",
    "Empty link or button: &lt;a&gt;",
    "Unlabeled field: &lt;input&gt;"
  ],
  "primaryEmail": "hello@example.com",
  "primaryPhone": "+14155552671",
  "htmlTruncated": false,
  "scrapedAt": "2026-10-20T12:00:00.000Z",
  "errorMessage": null
}
```

For `ERROR` rows, audit metrics, widget fields, and contacts are `null`; evidence is `[]`. A failed download never receives a misleading 100 score. Domain, URL, status, timestamp, safe error message, and any known HTTP status remain available.

### Use the results in Clay, n8n, Make, or your API

- **Clay:** run the Actor from your enrichment workflow, map `domain` to the company, and use `primaryEmail`, `complianceScore`, `legalRiskTier`, and evidence as enrichment columns.
- **n8n:** use the Apify integration or an HTTP Request node to run the Actor, then retrieve its default dataset. Filter on `status === "SUCCESS"` before routing leads.
- **Make:** run the Actor using an Apify module and iterate over dataset items to create CRM records or review tasks.
- **API:** start the Actor through the [Apify Actor run endpoint](https://docs.apify.com/api/v2/act-runs-post). Poll the run to completion, then request `/v2/datasets/{defaultDatasetId}/items?clean=true&format=json`. Use `format=csv` for a spreadsheet export. Keep authentication in your HTTP client's authorization configuration.

Store `auditedUrl` and `scrapedAt` alongside the lead so a reviewer can reproduce the observation. HTML evidence is escaped text; display it as text rather than rendering scraped markup. Dataset strings remove NUL characters and neutralize spreadsheet formulas, preserving valid numeric values and phone numbers.

### Pricing and limits

The custom pay-per-event name is **`page-audited`**. Only saved `SUCCESS` rows receive this event. **`ERROR` rows cost $0 in event fees.** Filtered successful pages do not trigger the event. Platform compute, storage, and proxy costs can still apply.

The event price is configured in Apify Console, not fixed by this repository. For a concrete example, at **$0.001 per saved successful audit**, 1,000 saved successful pages cost **$1.00 in event fees**. If a 1,000-target run saves 900 successful audits and 100 errors, the event fees at that example rate are **$0.90**. These are calculation examples; use the Store's current price for your actual run.

Cloud runs by non-paying users save at most **25 total records**, including both successes and errors. Paid Apify users and local runs have no additional repository-level saved-item cap. URL input is capped at 100,000 entries per run. The charging manager's remaining event budget is reserved against scheduled work and buffered successes, so the Actor stops scheduling when the allowance is exhausted and exits cleanly.

HTML is streamed up to **4 MiB of decompressed data per page**. Oversized documents retain the parsed prefix with `htmlTruncated: true`. A timeout, socket reset, or premature close after a 2xx response and at least **16 KiB** of received HTML can also produce a successful partial audit. Partial results cover only the received document and may miss labels, titles, widgets, or findings appearing later.

Parsing stops at depth 128, 4,096 tracked controls/IDs/label targets, or oversized markup tokens/attribute collections around 16 KiB. These guards also set `htmlTruncated: true`. The Actor uses bounded text windows, no full DOM, and no headless browser. Increase run memory when raising concurrency substantially above the default on complex pages.

### FAQ and troubleshooting

**Does this certify WCAG, ADA, or EAA compliance?** No. Static HTML cannot evaluate color contrast, focus visibility, keyboard interactions, rendered layout, assistive technology behavior, JavaScript-generated content, or jurisdiction-specific legal obligations. Obtain a manual accessibility and legal review where needed. Findings support triage and remediation.

**Why does a modern JavaScript website score well?** The server may return a small shell. The Actor audits that HTML without running the application. Check the actual rendered page manually, particularly when the document is sparse or partial.

**Why are some fields null?** `ERROR` rows deliberately have null audit metrics. Contacts can also be null on successful pages when no usable public contact appears in the downloaded HTML. The Actor does not infer or fabricate contact information.

**Why did a run return fewer leads than URLs?** URL duplicates are collapsed, enabled lead filters can exclude successful audits, the free plan may have reached 25 saved records, or the run's charge budget may be exhausted. Check the run status and `ERROR` rows.

**What happens on HTTP 403, 429, or 503?** The permitted proxy cascade is attempted within the same page deadline. If all permitted attempts fail, an uncharged error row is saved. HTTP/2 400/421/505 responses or `ERR_HTTP2_*` failures receive one HTTP/1.1 fallback. DNS failures, TLS certificate failures, and reset/refused connections on bare HTTPS domains receive one revalidated `www.` fallback, preserving the path and query.

**Are TLS and internal-network protections disabled for retries?** No. TLS certificate verification stays enabled. Every request and redirect is validated, every DNS answer must be public unicast, and direct requests pin the validated address without changing the origin hostname. Proxy CONNECT tunnels also use the validated IP and retain the domain for Host and TLS. Only default ports are accepted; local/private/reserved addresses and URL credentials are blocked.

**Can it run with LIMITED_PERMISSIONS?** Yes. It uses its run, dataset, input, and charging APIs. Automatic proxy configuration uses the platform-provided proxy setting with access checks disabled; it never calls `/v2/users/me`. Custom proxy configuration remains optional.

**Why does pricing configuration stop a run?** To keep error rows free, the Actor requires the default dataset event `apify-default-dataset-item` to be free. Configure only `page-audited` as the paid data event in Console. The Actor stops safely before writing data if a paid default dataset event is detected.

### Development and deployment

```sh
npm ci
npm run build
npm run typecheck
npm test
npm run smoke
```

Use Node.js 22 or newer. `npm test` uses `node:test` and launches child processes with `UV_THREADPOOL_SIZE=64`, `NODE_ENV=production`, and TLS verification enabled. The smoke command checks the two public prefill URLs and reports elapsed time and peak RSS; it requires network access and is separate from the deterministic test suite.

`npm run benchmark` runs a synthetic 25-request workload through the streaming client and parser with a 160 MB heap limit, including complex pages that exercise the parser guards. It reports peak RSS and exits unsuccessfully if the measured process exceeds 256 MB. This is a synthetic check, not a guarantee for every website or concurrency setting.

For a local SDK run, save input as `storage/key_value_stores/default/INPUT.json` and run `npm start`. Results appear under `storage/datasets/default`. Set `UV_THREADPOOL_SIZE=64` before starting a local Node process for bulk workloads.

The multi-stage Dockerfile uses `node:22-alpine`, installs from the lockfile, compiles strict TypeScript, prunes development dependencies, and runs as the non-root `node` user. Its runtime sets `UV_THREADPOOL_SIZE=64` and `NODE_ENV=production`. Build with `docker build -t wcag-accessibility-auditor .` and deploy the repository through Apify CLI or your connected Git repository.

Repository source: `src/parser.ts` implements the audit; `src/security.ts` and `src/client.ts` handle safe streaming; `src/billing.ts` and `src/runtime.ts` handle serialized batches, limits, and shutdown; `src/main.ts` wires the Apify SDK. Store metadata and schemas are under `.actor/`.

# Actor input Schema

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

Public HTTP or HTTPS page URLs on default ports. Paths and queries are preserved. Duplicate URLs are audited once. Maximum 100000 URLs.

## `onlyHighRiskLeads` (type: `boolean`):

Save successful audits only when their heuristic risk tier is HIGH or CRITICAL. Error records remain visible and receive no page-audited event charge.

## `excludeSitesWithWidgets` (type: `boolean`):

Exclude successful audits with a detected accessibility overlay. Widget presence does not establish accessibility compliance.

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

Maximum simultaneous page audits. Use the default for 256 MB runs; increase memory before using 100 on complex pages.

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

End-to-end deadline including DNS, redirects, protocol retries, proxy attempts, and body download. Interrupted successful HTML streams of at least 16 KiB can be salvaged.

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

Omit for direct requests followed by SHADER and default datacenter fallbacks on blocking. Explicit useApifyProxy:true permits the configured or residential final tier. useApifyProxy:false forces direct access. Custom proxyUrls are used exclusively. Proxy traffic can incur separate costs.

## Actor input object example

```json
{
  "urls": [
    "https://books.toscrape.com/",
    "https://quotes.toscrape.com/"
  ],
  "onlyHighRiskLeads": false,
  "excludeSitesWithWidgets": false,
  "maxConcurrency": 25,
  "timeoutSecs": 15
}
```

# 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://books.toscrape.com/",
        "https://quotes.toscrape.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("arezdev/wcag-ada-website-accessibility-compliance-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 = { "urls": [
        "https://books.toscrape.com/",
        "https://quotes.toscrape.com/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("arezdev/wcag-ada-website-accessibility-compliance-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 '{
  "urls": [
    "https://books.toscrape.com/",
    "https://quotes.toscrape.com/"
  ]
}' |
apify call arezdev/wcag-ada-website-accessibility-compliance-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,arezdev/wcag-ada-website-accessibility-compliance-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/fRRcCiAKkWwD6UuZt/builds/A90SLtlzrTZg7xiQU/openapi.json
