Calculate the weighted length, or character count, of a post string
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
Calculate the weighted length, or character count, of a post string for Bluesky, Facebook, Google Business Profile, Instagram, LinkedIn, Pinterest, Reddit, 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.
curl\-H"Authorization: Bearer API Key"\-H'Content-Type: application/json'\-d'{"post": "🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩"}'\-X POST https://api.ayrshare.com/api/post/checkPostWeight
curl\-H"Authorization: Bearer API Key"\-H'Content-Type: application/json'\-d'{"post": "🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩🍩"}'\-X POST https://api.ayrshare.com/api/post/checkPostWeight