v2
latestOpenAPI 3.1.02026-08-075421692.0 MBValidate
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.
post/v1/tools/validate/media
Request body
Example request
{
"url": "https://example.com/image.jpg"
}Response
Media validation result
Example response
{
"contentType": "image/jpeg",
"sizeFormatted": "245 KB",
"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
}
}
}