{"success":true,"textStats":{"wordCount":18,"sentenceCount":2,"characterCount":85,"avgSentenceLength":9,"avgSyllablesPerWord":1.56,"polysyllabicWordCount":1,"polysyllabicWordPercentage":5.6},"scores":{"fleschReadingEase":{"score":66.1,"interpretation":"Standard","suitableFor":"Age 15–17"},"fleschKincaidGrade":{"score":6.3,"interpretation":"US Grade 6 reading level"},"gunningFog":{"score":5.8,"interpretation":"Very easy"},"automatedReadabilityIndex":{"score":5.3,"interpretation":"Roughly Grade 5 reading level"},"smogIndex":{"score":6.9,"interpretation":"Grade 7 reading level","note":"SMOG is most accurate with 30+ sentences"}},"overall":{"averageGradeLevel":6.1,"verdict":"Easy read","recommendedFor":"Most adults","plainEnglishScore":70},"suggestions":["Text is short (18 words). Readability scores are most reliable with 100+ words."],"sentenceBreakdown":{"all":[{"index":1,"sentence":"The quick brown fox jumps over the lazy dog.","wordCount":9,"fre":94.3,"grade":2.3,"complexity":"Easy"},{"index":2,"sentence":"This is a simple sentence for testing readability scores.","wordCount":9,"fre":37.9,"grade":10.2,"complexity":"Hard"}],"hardest":[{"index":2,"sentence":"This is a simple sentence for testing readability scores.","wordCount":9,"fre":37.9,"grade":10.2,"complexity":"Hard"},{"index":1,"sentence":"The quick brown fox jumps over the lazy dog.","wordCount":9,"fre":94.3,"grade":2.3,"complexity":"Easy"}]}}
curl --location --request POST 'https://zylalabs.com/api/12904/accessibility+compliance+readability+api/25685/analizar' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"text": "The quick brown fox jumps over the lazy dog. This is a simple sentence for testing readability scores."}'
{"success":true,"text_a":{"fleschReadingEase":100,"gradeLevel":2.1,"verdict":"Very easy read","wordCount":11},"text_b":{"fleschReadingEase":0,"gradeLevel":19.4,"verdict":"Highly technical","wordCount":15},"comparison":{"moreReadable":"text_a","easeDifference":100,"gradeDifference":17.3,"summary":"text_a is easier to read by 100.0 Flesch points"}}
curl --location --request POST 'https://zylalabs.com/api/12904/accessibility+compliance+readability+api/25686/comparar' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"text_a": "The cat sat on the mat. It was a sunny day.", "text_b": "The feline proceeded to position itself upon the horizontal surface whilst meteorological conditions remained favourable."}'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 可访问性合规性可读性 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
## 它的功能
评分任何英语文本或网址的可读性。返回5个行业标准可读性分数, actionable 的简单英语建议,句子级别的细分以及标记的最难句子,和可选的目标年级通过/不通过。
## 返回的分数
- **Flesch 可读性指数** — 0–100。分数越高,越容易阅读。
- **Flesch-Kincaid 年级** — 相当于美国学校的年级。
- **Gunning Fog 指数** — 理解所需的教育年限。
- **自动可读性指数 (ARI)** — 通过字符/词语比率确定年级水平。
- **SMOG 指数** — 通过多音节单词密度确定年级水平。
## 用例
内容团队,法律/合规,教育科技,搜索引擎优化工具,内容管理系统管道,A/B 文案测试。
## 端点
- `POST /api/analyze` — 分析文本或网址,带可选目标年级
- `POST /api/compare` — 并排比较两个文本
`POST /api/analyze` 端点返回可读性分数 建议 句子分析和可选的目标年级结果 `POST /api/compare` 端点提供两个文本的并排比较 包括它们的可读性分数 年级水平和哪个文本更容易阅读的摘要
`analyze` 的响应中的关键字段包括 `textStats` (单词、句子、字符计数)、 `scores` (Flesch 阅读易读性、Flesch-Kincaid 分数等)、 `overall` (平均年级水平、裁决)和 `suggestions` `compare` 的响应包括 `text_a` 和 `text_b` 的分数、裁决和 `comparison` 的摘要
响应数据采用JSON格式进行结构化 对于`分析`包括文本统计可读性评分总体评估建议和句子分解 `比较`响应将数据组织成每个文本的单独部分和比较摘要
`POST /api/analyze` 端点接受要分析的文本或 URL 的参数以及可选的评估目标等级 `POST /api/compare` 端点需要两个文本进行比较 用户可以通过提供不同的文本或 URL 来定制请求
典型的用例包括创建无障碍内容 法律合规检查 教育材料的开发 SEO优化和营销文案的A/B测试 API有助于确保内容对目标受众易于理解
用户可以利用可读性评分来调整内容复杂性,使用建议来提高清晰度,并分析句子的结构以识别具有挑战性的句子。这些数据有助于根据特定受众或合规标准定制内容
API使用既定的可读性公式和算法来计算分数确保一致性和可靠性定期更新和针对已知标准的测试有助于维护数据的准确性和质量
用户可以期待Flesch可读性得分在0到100之间变化更高的得分表示更容易阅读年级水平将根据文本的复杂性变化建议通常会突出需要改进的领域尤其是在较短的文本中