Web Accessibility API – Validate HTML Accessibility via REST API

What is the Web Accessibility API?

The Aspose.HTML Cloud Web Accessibility API enables you to validate the accessibility of HTML documents according to WCAG standards. This API helps ensure your web content is accessible to all users, including those with disabilities, by checking compliance with various WCAG levels (A, AA, AAA).

How It Works

To validate accessibility, send a POST request to the endpoint with an AccessibilityRequest object. The request can specify the HTML source (URL, content, base64, or storage path) and various validation options. The API returns a detailed report indicating whether the document passes accessibility checks and provides information about any issues found.

Request Object

The request body should be a JSON object with the following properties:

AccessibilityOptions

The Options object allows you to control which accessibility rules and features are checked. The available properties are:

Detailed option descriptions:

You can combine these options to customize the accessibility validation according to your needs. For example, you can check only certain WCAG levels, focus on specific tags, or enable/disable certain types of validation.

Response Object

The response contains:

See the API Reference for full details.

Common Functionality

The Web Accessibility API is available only via REST API and is not included in SDKs.