GET
tool-text-stats
公开接口 累计 1 次/api/v1/tool-text-stats
统计字符数、字节数、行数、中英文词数与阅读时长
/api/v1/tool-text-stats
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
text |
string |
必填 | - | 待统计文本 |
{
"ok": true,
"data": {
"result": {
"chars": 12,
"bytes": 20,
"lines": 1,
"cjk_chars": 6,
"latin_words": 2,
"reading_time_minutes": 0.03
}
}
}
curl -X GET '/api/v1/tool-text-stats'