Text Utilities & Formatter API
收藏Text Utilities & Formatter API 数据集概述
基本信息
- 数据集名称:Text Utilities & Formatter API
- 数据集地址:https://rapidapi.com/abhishekgawande1667/api/text-utilities-formatter-api
- 类别:Text Analysis
- 提供者:Abhishek
- 订阅者数量:3
- 版本:v1 (current)
定价方案
- BASIC:$0.00 / mo
- PRO:$16.00 / mo
- ULTRA:$60.00 / mo
- MEGA:$150.00 / mo
数据集描述
该API为开发者提供了一套强大的文本处理工具。它通过简单的API调用,支持文本清理、格式化、大小写转换、单词和字符计数、slug生成、阅读时间估计以及空格标准化。适用于CMS平台、博客、表单验证、自动化工具和内容工作流,该API提供快速、可靠且可扩展的性能。
主要功能
- 文本清理与格式化
- 大小写转换
- 单词和字符计数
- slug生成
- 阅读时间估计
- 空格标准化
端点详情
- 方法:POST
- 路径:
/api/text-utils - 描述:分析和转换输入文本。适用于内容编辑器、SEO工具、CMS平台以及需要文本清理或格式化的开发者工具。
请求头
| Header | 是否必需 | 示例 |
|---|---|---|
| X-RapidAPI-Key | ✅ | YOUR_API_KEY |
| X-RapidAPI-Host | ✅ | text-utilities-formatter-api.p.rapidapi.com |
| Content-Type | ✅ | application/json |
请求体
- 媒体类型:
application/json - 字段:
text(string, 必需):要分析和格式化的文本
响应示例
成功 (200) json { "success": true, "data": { "wordCount": 6, "characterCount": 28, "characterCountNoSpaces": 23, "sentenceCount": 2, "readingTimeMinutes": 1, "cleanedText": "Hello world This is a test", "normalizedWhitespace": "Hello world! This is a test.", "cases": { "uppercase": "HELLO WORLD! THIS IS A TEST.", "lowercase": "hello world! this is a test.", "titleCase": "Hello World! This Is a Test.", "camelCase": "helloWorldThisIsATest", "snake_case": "hello_world_this_is_a_test", "kebab_case": "hello-world-this-is-a-test" }, "slug": "hello-world-this-is-a-test" } }
错误 (400) json { "success": false, "error": "Text field is required in JSON body" }
技术说明
- 阅读时间估计基于每分钟200个单词的平均速度。
titleCase在句子大写中会尊重次要单词(例如“and”、“or”、“the”)。- POST请求需确保设置
Content-Type: application/json。




