# Public Accessibility Snapshot Agent (`jacksu/public-accessibility-snapshot-agent`) Actor

Check public HTML pages for basic accessibility signals: language, headings, image alt text, form labels, link text, ARIA landmarks, risks, and evidence.

- **URL**: https://apify.com/jacksu/public-accessibility-snapshot-agent.md
- **Developed by:** [jack su](https://apify.com/jacksu) (community)
- **Categories:** Business, Automation, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 useful accessibility snapshot results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Public Accessibility Snapshot Agent

Run a lightweight accessibility preflight on public HTML pages. The Actor
checks visible page evidence for language declaration, title, heading
structure, image alt text, form labels, ambiguous link/button text, ARIA roles,
landmarks, evidence snippets, and a stable change hash.

This is designed for AI agents, website QA, growth teams, content operations,
and procurement workflows that need a quick public-page risk snapshot before
spending time on a full manual accessibility audit.

### What It Returns

- `accessibilityScore`: a bounded basic-risk score from visible HTML evidence.
- `riskLabels`: signals such as `missing_language`, `missing_h1`,
  `images_missing_alt`, `unlabeled_form_controls`, and
  `ambiguous_link_or_button_text`.
- `languageSignal`, `headingOutline`, `imageAltSummary`,
  `formControlSummary`, `ambiguousTextSummary`, and `ariaLandmarkSummary`.
- `evidenceSnippets` and `evidenceUrls` so an AI agent can explain the result.
- `accessibilityHash` and `changeStatus` for change monitoring.

### Good Fits

- Batch preflight of public marketing pages before a redesign or migration.
- AI-agent website QA where you need structured accessibility risk labels.
- Monitoring whether basic public-page accessibility signals changed.
- Vendor or competitor website review where only public page evidence is used.

### Safety Boundary

- Public HTTP and HTTPS pages only.
- No browser rendering, JavaScript execution, login, cookies, form submission,
  CAPTCHA bypassing, external resource downloading, or screen-reader emulation.
- Query strings, fragments, URL credentials, path parameters, private networks,
  localhost, `.local`, account-like sensitive paths, and token-like path
  segments are rejected or safely redacted.
- HTML/text responses are capped at 3 MB.
- This Actor is not a WCAG certification, legal compliance opinion, or
  substitute for a full manual audit.

### Pricing Behavior

The pay-per-event setup charges only for useful public accessibility snapshots:

- `apify-actor-start`: charged once when a run starts.
- `useful-accessibility-snapshot-result`: charged only for a new or changed
  snapshot with enough visible evidence and any required focus-check match.

The Actor intentionally does not configure `apify-default-dataset-item`, so
errors, duplicate inputs, unchanged snapshots, focus misses, and low-evidence
records can be written without charging the useful-result event.

### Example Input

```json
{
  "startUrls": ["https://www.w3.org/WAI/"],
  "focusChecks": ["headings", "alt", "forms"],
  "requestTimeoutSecs": 20
}
```

# Actor input Schema

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

Public HTTP/HTTPS page URLs. Query parameters, fragments, credentials, path params, private-network hosts, and token-like account paths are rejected.

## `focusChecks` (type: `array`):

Optional checks that must have visible evidence before the useful event is charged. Examples: alt, forms, headings, language, aria, links.

## `previousAccessibilitySnapshots` (type: `array`):

Optional previous records from this Actor. If the stable accessibilityHash is unchanged, the result is written without charging the useful event.

## `requestTimeoutSecs` (type: `integer`):

Maximum time in seconds to wait for the public page response.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.w3.org/WAI/"
  ],
  "focusChecks": [],
  "previousAccessibilitySnapshots": [],
  "requestTimeoutSecs": 20
}
```

# Actor output Schema

## `datasetId` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("jacksu/public-accessibility-snapshot-agent").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("jacksu/public-accessibility-snapshot-agent").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call jacksu/public-accessibility-snapshot-agent --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jacksu/public-accessibility-snapshot-agent",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Utcu7iUt5fmiAMzQW/builds/2iPK2ZQblMt89BkAS/openapi.json
