# Accessibility Regression Evidence API (`afkdigital/accessibility-regression-evidence`) Actor

Compare authorized public page versions with pinned axe-core scans. New, fixed, unchanged and review-needed evidence. $0.10 per completed pair; incomplete pairs free.

- **URL**: https://apify.com/afkdigital/accessibility-regression-evidence.md
- **Developed by:** [AFK Digital](https://apify.com/afkdigital) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$100.00 / 1,000 completed page pair (2 successful scans)s

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 Regression Evidence API

Compare two authorized public versions of a page under identical browser settings and the same pinned axe-core engine. Built for release checks, QA pipelines and evidence review.

**Price: $0.05 per completed page scan, billed atomically as one $0.10 event per completed baseline/candidate pair.** Both scans must succeed. Incomplete pairs, duplicate pairs in one input and same-run retries/resurrections receive no extra charge. No start fee, per-finding fee or separate platform-usage charge. A separately started run is a new job. All subscription tiers have the same flat price.

This is automated regression evidence, **not an accessibility certificate, WCAG conformance guarantee, legal compliance assessment or substitute for manual assistive-technology testing.**

### Quick start

Use only pages you own or are authorized to test. Both versions must be public and reachable without login. The prefilled example uses synthetic pages with one fixed button-name issue, one new issue and one unchanged issue.

```json
{
  "pagePairs": [
    {
      "baselineUrl": "https://api.apify.com/v2/key-value-stores/nrypm3IpGXejS6awv/records/baseline",
      "candidateUrl": "https://api.apify.com/v2/key-value-stores/nrypm3IpGXejS6awv/records/candidate"
    }
  ],
  "viewport": {
    "width": 1280,
    "height": 720
  },
  "ruleTags": [
    "wcag2a",
    "wcag2aa",
    "wcag21a",
    "wcag21aa",
    "wcag22aa"
  ],
  "maxPairs": 5
}
```

Run the Actor, then open **Regression evidence**, **JSON differences**, **CSV differences** and **Scan and billing summary**.

### Inputs

| Field | Meaning |
|---|---|
| pagePairs | Objects containing baselineUrl and candidateUrl. 1–10 pairs, at most maxPairs. Exact duplicate normalized URL pairs are processed once. |
| viewport | Integer width 320–1920 and height 240–1080. Default 1280×720. |
| ruleTags | Union of axe-core tags: wcag2a, wcag2aa, wcag21a, wcag21aa, wcag22aa, best-practice. Default all listed WCAG tags. |
| maxPairs | 1–10, default 5. Oversized input is rejected before scanning. |

Keep build data, application state and server responses comparable. A/B tests, dynamic content and external resources can affect results. Each page opens in a clean context without shared cookies or storage.

### Classification

| finding_status | Required evidence |
|---|---|
| new | The same uniquely identified element explicitly passed this rule in baseline and violates it in candidate. |
| fixed | A baseline violation has an explicit passing result for the same element and rule in candidate. |
| unchanged | Same rule and unique stable identity violate in both snapshots, including a moved positional selector. |
| needs_review | Identity changed, is missing or ambiguous; no matching explicit pass exists; axe reported an incomplete check; or either scan failed. |

Identity uses a unique data-testid or id plus tag, role and type, hashed before persistence. This is a matching convention, not proof that an application never reuses IDs. A selector alone, text similarity or absence of a violation never proves a fix. Removed or newly inserted elements without a reliable cross-version identity deliberately require review.

When both scans succeed with no violations or incomplete checks, a pair-level row has null rule_id and reason NO_AUTOMATED_FINDINGS_IN_SELECTED_RULES. This is not conformance certification. Failed scans produce pair-level scan_status=incomplete, explicit side-specific error codes and **null**, not zero, finding counts.

### Output

Rows contain page_pair_id, page_url, rule_id, impact, selector, finding_status, evidence, engine_version and scan_status. Additional side and row_id fields support repeat-safe exports.

- page_pair_id identifies the original input position, for example pair-1.
- page_url retains the origin, replaces the path with a short SHA-256 reference and removes query/fragment. Map back to your input using page_pair_id and side.
- selector is positional CSS using tags and nth-of-type; raw IDs, classes and attribute values are excluded.
- evidence contains reason codes, check IDs, structural tags, hashed identities and baseline/candidate positional selectors. It omits page HTML/text, labels, accessible names, form values and screenshots.
- SUMMARY records selected rule IDs/tags, browser/engine versions, per-side status, duration, totals and billing.
- Default Dataset supports JSON/CSV exports; DIFF, DIFF.csv and SUMMARY are also saved in the run key-value store.

The original input URLs remain in Apify run input. Do not include credentials, private tokens or personal data in URLs. Browsers necessarily receive page content during analysis; exported evidence minimizes content. Use appropriate Apify storage access settings for your results.

### Engine and supported scope

Release **1.0.0** pins **axe-core 4.14.0**, **Playwright 1.65.0**, and the corresponding Chromium browser build. Actual browser version is reported per successful scan. Both sides use the same installed engine and browser.

Fixed settings: desktop, device scale factor 1, en-US locale, UTC timezone, light color scheme, reduced motion, fresh storage, JavaScript enabled and valid TLS required. Scanning follows load, a 500 ms settling interval and font readiness. The engine runs in an isolated execution world so page scripts cannot substitute window.axe. No clicking, login, scrolling workflow or interactive state exploration is performed.

Version 1 supports **public IPv4 HTTP/HTTPS on ports 80/443 and light DOM**. Frames and open shadow DOM are rejected as unsupported rather than silently passing. Closed shadow DOM is outside coverage and cannot be detected reliably. Media, WebSockets, popups or blocked private resources make a scan incomplete. Service workers and downloads are disabled. Captchas/authentication walls are not bypassed; a login/error page returned with HTTP 200 can still be scanned, so verify that your server served the intended page.

Limits: one page at a time; 45 seconds/page including navigation; navigation 20 seconds; 10,000 DOM elements; 10,000 findings per result category; 300 proxy connection/request operations and 25 MiB/page. Work budget 240 seconds; default platform timeout 300 seconds. Remaining pairs can be marked not_started when time or event budget is insufficient. No automatic scan retries.

A DNS-validating proxy pins each connection to a vetted public IPv4 address. Navigation, redirects and subresources use it. Direct browser DNS, QUIC and non-proxied WebRTC UDP are disabled. Private, loopback, link-local, reserved and IPv6 destinations are rejected. Hostnames require public IPv4 DNS answers. A blocked resource does not become a passing scan.

### Billing and restart behavior

The single Pay-per-Event key is **completed-page-pair** at **$0.10**, equivalent to two successful scans at $0.05 each. Findings are not billable events. Completed pairs may contain violations, no violations or review-needed findings.

Evidence is saved before billing. A durable pair billing intent precedes the charge request. If the charge outcome is uncertain, a resumed run never reissues that charge. This intentionally favors underbilling over double billing. Existing Dataset row IDs are checked when resuming. A new run is a separate job; resurrect the same run to continue interrupted work.

### Tests and limitations

Controlled fixtures cover known new/fixed/unchanged errors, changed IDs/selectors, an unavailable page, metadata-IP redirects and private subresources. Automated tests additionally cover mixed DNS answers, direct loopback, mapped IPv6 and ambiguous billing failures.

Findings apply only to the tested snapshots, viewport and selected rules. Add manual keyboard, screen-reader, zoom and interaction testing. This product is developed independently by AFK Digital and is not endorsed by Deque.

### Licenses and support

axe-core 4.14.0 is unmodified and distributed under MPL-2.0. [Versioned source and documentation](https://github.com/dequelabs/axe-core/tree/v4.14.0). Installed rule IDs/tags are recorded in docs/ENGINE_RULES.json; the full license is in docs/AXE_LICENSE.txt. Playwright and Apify SDK use Apache-2.0; ipaddr.js uses MIT. Chromium retains bundled third-party notices.

For support, open an issue on the Actor's Apify page with a run ID and a synthetic reproduction. Avoid personal page content and authentication details.

Aggregate findings is null when coverage is incomplete. completed_pair_findings counts only completed pairs. Essential subresource load failures produce incomplete scans.

# Actor input Schema

## `pagePairs` (type: `array`):

Objects with baselineUrl and candidateUrl. Authorized public IPv4 HTTP/HTTPS on default ports; no credentials. No frames or shadow DOM in v1.

## `viewport` (type: `object`):

Integer width 320–1920 and height 240–1080.

## `ruleTags` (type: `array`):

Allowed: wcag2a, wcag2aa, wcag21a, wcag21aa, wcag22aa, best-practice. Union of tags; not certification.

## `maxPairs` (type: `integer`):

Reject input above this limit; duplicate pairs processed once.

## Actor input object example

```json
{
  "pagePairs": [
    {
      "baselineUrl": "https://api.apify.com/v2/key-value-stores/nrypm3IpGXejS6awv/records/baseline",
      "candidateUrl": "https://api.apify.com/v2/key-value-stores/nrypm3IpGXejS6awv/records/candidate"
    }
  ],
  "viewport": {
    "width": 1280,
    "height": 720
  },
  "ruleTags": [
    "wcag2a",
    "wcag2aa",
    "wcag21a",
    "wcag21aa",
    "wcag22aa"
  ],
  "maxPairs": 5
}
```

# Actor output Schema

## `diffJson` (type: `string`):

No description

## `diffCsv` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `dataset` (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 = {
    "pagePairs": [
        {
            "baselineUrl": "https://api.apify.com/v2/key-value-stores/nrypm3IpGXejS6awv/records/baseline",
            "candidateUrl": "https://api.apify.com/v2/key-value-stores/nrypm3IpGXejS6awv/records/candidate"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("afkdigital/accessibility-regression-evidence").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 = { "pagePairs": [{
            "baselineUrl": "https://api.apify.com/v2/key-value-stores/nrypm3IpGXejS6awv/records/baseline",
            "candidateUrl": "https://api.apify.com/v2/key-value-stores/nrypm3IpGXejS6awv/records/candidate",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("afkdigital/accessibility-regression-evidence").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 '{
  "pagePairs": [
    {
      "baselineUrl": "https://api.apify.com/v2/key-value-stores/nrypm3IpGXejS6awv/records/baseline",
      "candidateUrl": "https://api.apify.com/v2/key-value-stores/nrypm3IpGXejS6awv/records/candidate"
    }
  ]
}' |
apify call afkdigital/accessibility-regression-evidence --silent --output-dataset

```

## MCP server setup

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

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/QevcwYmtLO4nfbqr6/builds/1nmOqL8gjcnNYmW8Q/openapi.json
