# Check a website's accessibility with axe-core

**Use case:** 

Crawls up to 20 pages of a site and runs the automated WCAG checks of axe-core, the engine behind Lighthouse's accessibility audit, on each one: text contrast, links and buttons without a name, form fields without a label, ARIA misuse, tap targets too small, missing language, disabled zoom, keyboard order. Image alt text and heading levels are checked too. Each failure lists its elements and fix.

## Input

```json
{
  "startUrls": [
    "https://www.python.org"
  ],
  "crawlPages": true,
  "maxPages": 20,
  "compareWithPreviousAudit": true,
  "maxConcurrency": 5,
  "respectRobotsTxt": true,
  "excludeUrlPatterns": [],
  "includeSubdomains": false,
  "followNofollowLinks": false,
  "auditMetaTags": false,
  "auditHeadings": true,
  "auditContent": false,
  "auditTechnical": false,
  "auditPerformance": false,
  "auditSchema": false,
  "auditLinks": false,
  "auditImages": true,
  "auditAccessibility": true
}
```

## Output

```json
{
  "pageUrl": {
    "label": "Page",
    "format": "string"
  },
  "message": {
    "label": "Issue"
  },
  "category": {
    "label": "Category"
  },
  "estimatedImpact": {
    "label": "Impact"
  },
  "fixHint": {
    "label": "How to fix"
  },
  "audit": {
    "label": "Audit",
    "format": "object"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Complete SEO Audit Tool - Website Crawler with 0-100 Scores Actor is ready to run with the inputs already set for "Check a website's accessibility with axe-core". [Sign up or log in](https://console.apify.com/create-task-from-example/WVlJAza4oiAs3sVye) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Check a website's accessibility with axe-core" task

The Complete SEO Audit Tool - Website Crawler with 0-100 Scores Actor will start running based on the input automatically. You can also change all the input fields, like start urls, crawl additional pages, and more, to match your specific use case.

### 3. Receive the "Check a website's accessibility with axe-core" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as page, issue, category, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Check a website's accessibility with axe-core" task via API](https://apify.com/smart-digital/complete-seo-audit-tool.md).

## FAQ

### Is the accessibility check a full WCAG audit?

The accessibility check runs the automated rules of axe-core, which cover about a third of WCAG's success criteria. A page that passes still needs a human review: keyboard use, whether alt texts make sense, captions.

### What does the accessibility check report for each failure?

The accessibility check lists each failed rule with its impact, the number of elements concerned, up to three of them as CSS selectors and a link to the rule's explanation, plus the rules that applied and passed.

### Is the accessibility check the same as Lighthouse's?

The accessibility check runs axe-core 4.13, the engine behind Lighthouse's accessibility audit, on every rule of Lighthouse's accessibility category, tap target size included, and weighs each failure as Lighthouse does.

### Can the accessibility check also audit SEO?

The accessibility check turns the SEO modules off to stay focused; switch auditMetaTags, auditContent, auditTechnical, auditPerformance, auditSchema and auditLinks back on to get the full SEO audit in the same run, at the same price per page.

## About this Actor

This example demonstrates how to use [Complete SEO Audit Tool - Website Crawler with 0-100 Scores](https://apify.com/smart-digital/complete-seo-audit-tool.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/smart-digital/complete-seo-audit-tool.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/smart-digital/complete-seo-audit-tool.md

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`).
