Skip to main content
POST
/
validate
/
postLength
curl \
-H "Authorization: Bearer API Key" \
-H 'Content-Type: application/json' \
-d '{"post": "🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩"}' \
-X POST https://api.ayrshare.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
    }
}

Documentation Index

Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

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 Ayrshare. Social networks may have slightly different character counts based on their own calculation methods.

Header Parameters

Body Parameters

post
string
required
Post string to calculate the length.
curl \
-H "Authorization: Bearer API Key" \
-H 'Content-Type: application/json' \
-d '{"post": "🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩"}' \
-X POST https://api.ayrshare.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
    }
}