Skip to main content

Text Processing Endpoints

Text Statistics​

Analyze text and return word count, reading time, and more.

POST /api/v1/text-stats

Parameters​

NameTypeRequiredDescription
textstringYesText 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​

NameTypeRequiredDescription
inputstringYesText to convert
tostringNoTarget 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​

NameTypeRequiredDescription
inputstringYesText to slugify
separatorstringNo"-" or "_" (default "-")
maxLengthnumberNoMax 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​

NameTypeRequiredDescription
markdownstringYesMarkdown 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​

NameTypeRequiredDescription
typestringNo"paragraphs", "sentences", or "words" (default paragraphs)
countnumberNoNumber 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​

NameTypeRequiredDescription
originalstringYesOriginal text
modifiedstringYesModified 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 } } }