Skip to main content

Social media character counter API

Paste a post and see at once how it fits on X, Threads, Bluesky, Mastodon, LinkedIn, Instagram, Facebook, TikTok, Pinterest, YouTube and Google Business Profile.

Request​

FieldTypeDefaultDescription
textstring""The post text, up to 10,000 characters (twice the longest network limit); 5,000 without an API token.
networkstring: x, threads, bluesky, mastodon, linkedin, instagram, facebook, tiktok, pinterest, youtube_title, youtube, gbpCount for one network only; all networks when omitted.

Call it​

curl -X POST https://postboost.co/app/api/tools/social-media-character-counter \
-H 'Content-Type: application/json' \
-d '{"text":"New post: https://postboost.co/tools","network":"x"}'

With a token, send Authorization: Bearer YOUR_API_TOKEN as a default header (how, per SDK).

Response​

{
"hashtags": 0,
"networks": [
{
"key": "x",
"label": "X (Twitter) post",
"limit": 280,
"count": 33,
"remaining": 247,
"over": false
}
]
}

With MCP​

Connect https://postboost.co/mcp/tools (setup) and ask, for example: Count characters as each network counts them with the PostBoost count-characters tool.

Errors​

StatusWhen
401The Authorization header holds an invalid token. Leave it out to call as a guest.
413The JSON body is larger than 128 KB.
422A field is invalid; the body lists the errors per field.
429A limit is reached; see limits.