Validate media URL
Check if a media URL is accessible and return metadata (content type, file size) plus per-platform size limit comparisons. Performs a HEAD request (with GET fallback) to detect content type and size. Rejects private/localhost URLs for SSRF protection. Platform limits are sourced from each platform's actual upload constraints.
API key authentication - use your Late API key as a Bearer token
In: header
Public media URL to validate
uriResponse Body
application/json
curl -X POST "https://getlate.dev/api/v1/tools/validate/media" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.com/image.jpg" }'{
"valid": true,
"url": "http://example.com",
"error": "string",
"contentType": "image/jpeg",
"size": 0,
"sizeFormatted": "245 KB",
"type": "image",
"platformLimits": {
"instagram": {
"limit": 8388608,
"limitFormatted": "8.0 MB",
"withinLimit": true
},
"twitter": {
"limit": 5242880,
"limitFormatted": "5.0 MB",
"withinLimit": true
},
"bluesky": {
"limit": 1000000,
"limitFormatted": "977 KB",
"withinLimit": true
}
}
}Check IG hashtag bans POST
Check if Instagram hashtags are banned, restricted, or safe to use. Rate limits: Build (50/day), Accelerate (500/day), Unlimited (unlimited).
Validate post character count POST
Check weighted character count per platform and whether the text is within each platform's limit. Twitter/X uses weighted counting (URLs = 23 chars via t.co, emojis = 2 chars). All other platforms use plain character length. Returns counts and limits for all 15 supported platform variants.