ACME API Documentation logo

Check Post Length

Calculate the weighted length, or character count, of a post string

POSThttps://api.acme.com/api/validate/postLength
Available on Premium, Business, Enterprise plans.

Calculate the weighted length, or character count, of a post string for Bluesky, Facebook, Google Business Profile, Instagram, LinkedIn, Pinterest, Reddit, Threads, TikTok, X/Twitter, and YouTube. Checks if the post length is valid and returns the maximum length allowed for each social network.

Special characters, such as ü, ø, or 😊, have a higher character count value (unicode).

This check is automatically done with the /post endpoint.

The weighted length is an estimate calculated by ACME. Social networks may have slightly different character counts based on their own calculation methods.

Header Parameters

Authorizationstringrequired
API Key of the Primary Profile.

Format: Authorization: Bearer API_KEY

Body Parameters

poststringrequired

Post string to calculate the length.

curl \
-H "Authorization: Bearer API Key" \
-H 'Content-Type: application/json' \
-d '{"post": "🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩"}' \
-X POST https://api.acme.com/api/post/checkPostWeight
{
    "twitterWeightedLength": 2932,
    "blueskyWeightedLength": 199,
    "instagramWeightedLength": 3015,
    "tikTokWeightedLength": 3017,
    "linkedInWeightedLength": 3015,
    "facebookWeightedLength": 3015,
    "pinterestWeightedLength": 3015,
    "youtubeWeightedLength": 3015,
    "gmbWeightedLength": 3015,
    "twitterValid": false,
    "twitterLongValid": true,
    "facebookValid": true,
    "gmbValid": false,
    "instagramValid": false,
    "linkedInValid": false,
    "pinterestValid": false,
    "redditValid": true,
    "tikTokValid": false,
    "youtubeValid": true,
    "maxCharLimits": {
        "bluesky": 300,
        "facebook": 63206,
        "gmb": 1500,
        "instagram": 2200,
        "linkedin": 3000,
        "pinterest": 500,
        "reddit": 10000,
        "tiktok": 2200,
        "twitter": 280,
        "twitterLong": 25000,
        "youtube": 5000
    }
}