Back to Tool
📝
Word Counter API
Count words, characters, sentences, and paragraphs in text
Endpoint
POST
/api/v1/word-counterAuthentication
Include your API key in the request header:
X-API-Key: your_api_key_hereGet your API key from the Dashboard
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
| text | string | Yes | The text to analyze |
Response
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the operation was successful |
| characters | number | Total character count |
| charactersNoSpaces | number | Characters excluding spaces |
| words | number | Word count |
| sentences | number | Sentence count |
| paragraphs | number | Paragraph count |
| lines | number | Line count |
| readingTime | string | Estimated reading time |
Code Examples
curl -X POST https://tools.shubhambadgujar.com/api/v1/word-counter \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"text": "Hello world. This is a test sentence."}'Rate Limits
- • 100 requests per minute
- • 10,000 requests per day
- • Max request size: 10MB
Need Help?
Contact us at support@shubhambadgujar.com