Character Counter API - counts, UTF-8 bytes, X/Twitter, SMS segments & SEO limits
character_counterCount characters (with and without spaces), words, lines, UTF-8 bytes, X/Twitter weighted character count (23-char URLs, emoji weight), SMS GSM-7 vs UCS-2 segment count, and remaining space for Instagram, YouTube and Google SEO. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/character-counter.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "Hello world! Check https://example.com/page"
},
"name": "character_counter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to measure |