{"url":"https://example.com/","timestamp":"2026-04-09T15:33:16.357Z","summary":{"score":98,"grade":"A","totalIssues":4,"errors":0,"warnings":3,"infos":1,"categorySummary":[{"name":"Images & Alt Text","score":100,"issueCount":0},{"name":"Headings","score":100,"issueCount":0},{"name":"Forms","score":100,"issueCount":0},{"name":"Links & Navigation","score":90,"issueCount":2},{"name":"Color Contrast","score":100,"issueCount":0},{"name":"ARIA","score":100,"issueCount":0},{"name":"Language","score":100,"issueCount":0},{"name":"Tables","score":100,"issueCount":0},{"name":"Media","score":100,"issueCount":0},{"name":"Semantic HTML","score":93,"issueCount":2}]},"categories":[{"name":"Images & Alt Text","score":100,"issues":[]},{"name":"Headings","score":100,"issues":[]},{"name":"Forms","score":100,"issues":[]},{"name":"Links & Navigation","score":90,"issues":[{"rule":"links-generic-text","severity":"warning","message":"Link has generic text: \"Learn more\"","element":"<a href=\"https://iana.org/domains/example\">Learn more</a>","wcag":"2.4.4","suggestion":"Use descriptive link text that explains the destination or purpose (e.g., \"View pricing details\" instead of \"Click here\")."},{"rule":"links-no-skip-nav","severity":"warning","message":"Page has no skip navigation link","element":"<body>","wcag":"2.4.1","suggestion":"Add a skip navigation link at the top of the page (e.g., <a href=\"#main\">Skip to main content</a>)."}]},{"name":"Color Contrast","score":100,"issues":[]},{"name":"ARIA","score":100,"issues":[]},{"name":"Language","score":100,"issues":[]},{"name":"Tables","score":100,"issues":[]},{"name":"Media","score":100,"issues":[]},{"name":"Semantic HTML","score":93,"issues":[{"rule":"semantic-no-main-landmark","severity":"warning","message":"Page has no <main> landmark","element":"<body>","wcag":"1.3.1","suggestion":"Add a <main> element to wrap the primary content of the page."},{"rule":"semantic-no-nav-landmark","severity":"info","message":"Page has no <nav> landmark","element":"<body>","wcag":"1.3.1","suggestion":"Add a <nav> element to identify navigation sections."}]}],"recommendations":[]}
curl --location --request GET 'https://zylalabs.com/api/12322/accessibility+audit+api/23147/run+accessibility+audit?url=https://example.com' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 无障碍审计 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
对任何网页运行自动化的WCAG无障碍审计。检测违规行为、警告和ADA及EAA合规的最佳实践
The Accessibility Audit API can detect various types of accessibility violations, including issues related to color contrast, missing alt text for images, improper heading structures, and other WCAG compliance failures.
The Accessibility Audit API provides output in JSON format, which includes detailed reports on violations, warnings, and best practices for accessibility compliance.
You can integrate the Accessibility Audit API into your web development workflow by running audits on your web pages during the development phase to identify and fix accessibility issues before deployment.
The core benefits of using the Accessibility Audit API include improving website accessibility for users with disabilities, ensuring compliance with ADA and EAA regulations, and enhancing overall user experience.
The API's audit reports include fields such as 'violation type', 'description', 'impact level', 'element affected', and 'suggested fixes', providing comprehensive insights into accessibility issues.
可访问性审核 API 返回与网页可访问性违规、警告和最佳实践相关的数据。这包括摘要分数、详细类别分数和审核过程中识别的具体问题
响应数据采用JSON格式结构化,包括一个包含整体得分的摘要部分一个包含单独得分和问题计数的类别摘要以及每个类别的问题的详细列表包括严重程度和建议解决方案
可访问性审计 API 的主要参数是要审计的网页的 URL 用户可以通过指定不同的 URL 来定制请求以分析不同页面的可访问性合规性
关键字段包括'score'(整体可及性得分)、'grade'(合规的字母等级)、'totalIssues'(发现的总问题数)和'issues'(识别的特定问题,包括严重性和消息)
该端点提供有关可访问性违规、警告和最佳实践的信息,按图像和替代文本、标题和颜色对比等领域分类,允许用户准确找出特定的合规问题
用户可以利用返回的数据根据严重性和类别得分来优先修复,实施推荐的更改,并通过比较不同版本网页的审核结果来跟踪随着时间的推移的改善
数据的准确性通过遵循WCAG指南和定期更新审计算法来保持确保API反映当前的最佳实践和网络可访问性合规标准
典型的用例包括在网页开发中进行审计以识别无障碍问题 对现有网站进行合规性检查 以及为利益相关者生成报告以证明遵循无障碍标准