Skip to main content
Analyzes web pages or raw HTML for accessibility issues using axe-core. Returns violations grouped by WCAG criteria with enriched human context, remediation suggestions, and severity classification.

Best For

Comprehensive WCAG 2.0/2.1 compliance checking
Detailed violation reports with fix suggestions
Analysis of ARIA usage and semantic HTML
Low false positive rate

Parameters

url
string
required
URL of the page to analyze
Either url or html is required, but not both.
html
string
Raw HTML content to analyze (alternative to URL)Useful for analyzing HTML snippets or templates before deployment.
options
object
Configuration options for the analysis

Response

success
boolean
required
Whether the analysis completed successfully
target
string
required
The analyzed URL or "[html content]"
issueCount
number
required
Total number of issues found
issues
array
required
List of accessibility issues
summary
object
required
Aggregated statistics
duration
number
Analysis duration in milliseconds

Examples

Analyze with axe-core: https://example.com

Response Example

{
  "success": true,
  "target": "https://example.com",
  "issueCount": 5,
  "issues": [
    {
      "id": "axe-core:image-alt:a3f8b9",
      "ruleId": "image-alt",
      "tool": "axe-core",
      "severity": "critical",
      "wcag": {
        "criterion": "1.1.1",
        "level": "A",
        "principle": "perceivable"
      },
      "location": {
        "selector": "img:nth-child(2)",
        "snippet": "<img src=\"logo.png\">"
      },
      "message": "Images must have alternate text",
      "humanContext": "**Non-text content (WCAG 1.1.1 - Level A)**\n\nAll non-text content must have a text alternative that serves the equivalent purpose. Screen reader users cannot perceive images without alternative text.",
      "suggestedActions": [
        "Add descriptive alt attribute to images",
        "Use aria-label for decorative icons with function",
        "Mark decorative images with empty alt=\"\""
      ],
      "affectedUsers": ["screen-reader", "low-vision"],
      "priority": "critical",
      "remediationEffort": "low",
      "confidence": 1
    }
  ],
  "summary": {
    "total": 5,
    "bySeverity": {
      "critical": 1,
      "serious": 2,
      "moderate": 2,
      "minor": 0
    },
    "byPrinciple": {
      "perceivable": 3,
      "operable": 2,
      "understandable": 0,
      "robust": 0
    }
  },
  "duration": 2340
}

Use Cases

Pre-deployment WCAG Validation

Analyze https://staging.myapp.com with axe-core at WCAG AA level
Validate WCAG compliance before deploying to production.

Component Testing

{
  "html": "<button>Click</button><button><img src='icon.png'></button>",
  "options": {
    "wcagLevel": "AA"
  }
}
Test individual components or templates for accessibility issues.

Form Accessibility

{
  "url": "https://example.com/checkout",
  "options": {
    "selector": "form#checkout",
    "wcagLevel": "AA"
  }
}
Focus analysis on critical forms to ensure proper labeling and structure.

Dynamic Content Analysis

{
  "url": "https://spa-app.com",
  "options": {
    "browser": {
      "waitForSelector": "[data-loaded='true']",
      "waitForTimeout": 5000
    }
  }
}
Analyze single-page applications after content loads.
Use includeIncomplete: true to identify issues that require manual verification, such as certain color contrast scenarios or complex ARIA patterns.

analyze-with-pa11y

Alternative engine for WCAG testing with HTML CodeSniffer

analyze-mixed

Run axe-core and Pa11y together for maximum coverage

analyze-contrast

Dedicated color contrast analysis

Full Accessibility Audit

Comprehensive audit workflow using multiple tools

Build docs developers (and LLMs) love