Skip to main content

Social media post preview API

Paste a caption and pick an image to see your post as feed cards for Instagram, X, LinkedIn and Facebook: where the text folds behind more, how each network crops the image and whether the caption fits the limit. Download any card as a PNG mockup.

Request​

FieldTypeDefaultDescription
textstring
instagram_ratiostring: 1:1, 4:5, 1.91:1"1:1"Image ratio of the Instagram feed post.
image_widthintegerImage width in pixels. Give it with image_height to get display_ratio and cropped per card.
image_heightintegerImage height in pixels. Give it with image_width.

Call it​

curl -X POST https://postboost.co/app/api/tools/social-media-post-preview \
-H 'Content-Type: application/json' \
-d '{"text":"New feature: schedule a month of posts in one sitting."}'

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

Response​

{
"networks": [
{
"key": "instagram",
"count": 54,
"limit": 2200,
"over": false,
"preview": "New feature: schedule a month of posts in one sitting.",
"folded": false,
"min_ratio": "1:1",
"max_ratio": "1:1"
},
{
"key": "x",
"count": 54,
"limit": 280,
"over": false,
"preview": "New feature: schedule a month of posts in one sitting.",
"folded": false,
"min_ratio": "4:5",
"max_ratio": "2:1"
},
{
"key": "linkedin",
"count": 54,
"limit": 3000,
"over": false,
"preview": "New feature: schedule a month of posts in one sitting.",
"folded": false,
"min_ratio": "4:5",
"max_ratio": "1.91:1"
},
{
"key": "facebook",
"count": 54,
"limit": 5000,
"over": false,
"preview": "New feature: schedule a month of posts in one sitting.",
"folded": false,
"min_ratio": "4:5",
"max_ratio": "1.91:1"
}
]
}

With MCP​

Connect https://postboost.co/mcp/tools (setup) and ask, for example: Preview where a post folds and when its image is cropped on Instagram, X, LinkedIn and Facebook with the PostBoost preview-post 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.