Text Processing Endpoints
Text Statistics
Analyze text and return word count, reading time, and more.
POST /api/v1/text-stats
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to analyze |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/text-stats \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"text": "Hello world. This is a test."}'
{ "result": { "characters": 28, "words": 6, "sentences": 2, "readingTimeMinutes": 1 } }
Case Converter
Convert text between camelCase, snake_case, kebab-case, and more.
POST /api/v1/case-convert
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Text to convert |
to | string | No | Target case. Omit to get all conversions |
Supported cases: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, UPPERCASE, lowercase
Example
curl -X POST https://www.toolbox-kit.com/api/v1/case-convert \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"input": "hello world example", "to": "camelCase"}'
{ "result": "helloWorldExample" }
Slugify
Generate URL-friendly slugs from text.
POST /api/v1/slugify
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Text to slugify |
separator | string | No | "-" or "_" (default "-") |
maxLength | number | No | Max slug length |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/slugify \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"input": "Hello World! This is a Test"}'
{ "result": "hello-world-this-is-a-test" }
Markdown to HTML
Convert Markdown to HTML.
POST /api/v1/markdown-html
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
markdown | string | Yes | Markdown string to convert |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/markdown-html \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"markdown": "# Hello\n\nThis is **bold** text."}'
{ "result": "<h1>Hello</h1>\n<p>This is <strong>bold</strong> text.</p>" }
Lorem Ipsum
Generate placeholder text.
POST /api/v1/lorem-ipsum
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
type | string | No | "paragraphs", "sentences", or "words" (default paragraphs) |
count | number | No | Number to generate (1-50, default 3) |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/lorem-ipsum \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"type": "paragraphs", "count": 2}'
{ "result": "Lorem ipsum dolor sit amet...", "type": "paragraphs", "count": 2 }
Diff
Compute line-by-line diff between two strings.
POST /api/v1/diff
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
original | string | Yes | Original text |
modified | string | Yes | Modified text |
Example
curl -X POST https://www.toolbox-kit.com/api/v1/diff \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"original": "line1\nline2", "modified": "line1\nline3"}'
{ "result": { "unified": " line1\n- line2\n+ line3", "stats": { "added": 1, "removed": 1 } } }