RadarPricesOrder

Home › APIs › Social media & marketing

Social media & marketing

Social Media Image Resizer API

In plain words

Turns one picture into the exact sizes Instagram, Facebook, X, LinkedIn, YouTube and TikTok ask for.

Used by: Marketers, social media managers, agencies and scheduling tools.

Send one image and get it back in the exact pixel size each network wants: Instagram post, portrait and story, Facebook post and cover, X post and header, LinkedIn post and banner, YouTube thumbnail and banner, TikTok cover, Pinterest pin, link preview image, profile photo. Up to 8 sizes per call. Fill and crop from the centre, or keep the whole picture on a background colour. JPG, PNG or WebP out. Call it without a file to get the size table.

Try it live, no sign-up

Run the example as is, or change the input. 5 own tries a day without a key.

Example request

curl -X POST https://radarbg.com/v1/social-image-resizer \
  -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"fileContent": "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAgCAIAAAAt/+nTAAAAOUlEQVR42u3PAQkAMAgAMH0XkxnfEm8hCFuDZfXEZS+OExAQEBAQEBAQEBAQEBAQEBAQEBAQENj3AREOAbOcmaPYAAAAAElFTkSuQmCC", "presets": "instagram-post,youtube-thumbnail"}'

Answer: {"ok": true, "count": N, "items": [...], "usage": {...}}. Failed calls are not counted.

Inputs

FieldTypeDescription
fileContentstringThe image as base64 (JPG, PNG, WebP, HEIC...), max 20 MB
presetsstringOne or more sizes, comma separated, e.g. instagram-post,youtube-thumbnail. instagram-post, instagram-portrait, instagram-story, facebook-post, facebook-cover, x-post, x-header, linkedin-post, linkedin-banner, youtube-thumbnail, youtube-bann
fitstringcover = fill the size and crop the edges, contain = whole image on a background
backgroundstringBackground colour for fit=contain, hex, default #ffffff
formatstringOutput format
modestringsizes = only list every size, no image needed

Price

Included in every plan: 500 calls a month free, then from €9 a month for 5,000 calls across all APIs. Pro, €29 for 25,000 calls, is the one we recommend.

Questions

What does the Social Media Image Resizer API do?

Turns one picture into the exact sizes Instagram, Facebook, X, LinkedIn, YouTube and TikTok ask for.

Where does the data come from?

Send one image and get it back in the exact pixel size each network wants: Instagram post, portrait and story, Facebook post and cover, X post and header, LinkedIn post and banner, YouTube thumbnail and banner, TikTok cover, Pinterest pin, link preview image, profile photo. Up to 8 sizes per call. Fill and crop from the centre, or keep the whole picture on a background colour. JPG, PNG or WebP out

How much does it cost?

500 calls a month are free with no card. Paid plans start at EUR 9 a month for 5,000 calls and include every API on Radar. Failed calls are not counted.

Can I use it without writing code?

Yes. Try it live on this page, use our free browser tools, or ask us to run it on your list as a service.

Related APIs

E-mail Signature Generator APIMakes a neat e-mail signature that works in Gmail and Outlook.
Keyword TrendsShows how popular a search word is over time and in which countries.
Lemmy ScraperCollects public posts and comments from Lemmy communities by topic.
Link Preview APIGets the title, picture and description of any link, like the preview you see in chat apps.
Mastodon ScraperFollows a hashtag or account on Mastodon and collects the public posts.
QR Code GeneratorMakes a QR code for a link, Wi-Fi login or bank payment that never expires and does not track people.