POST
/
validate
/
postLength
Available on Premium, Business, Enterprise plans.

Calculate the weighted length, or character count, of a post string for 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.

Header Parameters

Authorization
string
required
Format: Authorization: Bearer API_KEY. See API overview for more information.

Request Body

post
string
required

Post string to calculated the length.