X video download API

Resolve public X / Twitter posts into available MP4 downloads.

Last updated: 2026-11-02

Resolve a post

POST https://xvideodownloader.pro/api/v1/resolve

Send Content-Type: application/json. Authentication is optional. To use a key, add Authorization: Bearer YOUR_API_KEY.

curl https://xvideodownloader.pro/api/v1/resolve \
  -H 'Content-Type: application/json' \
  --data '{"url":"https://x.com/USERNAME/status/POST_ID"}'

Replace the placeholder with an actual public post link. A successful response has code: 0, message: "OK", and data containing:

FieldMeaning
request_idDiagnostic identifier
post_id, canonical_post_urlNormalized source identity
providerx-public-embed or fxembed
videos[]One entry per supported video
videos[].variants[]Actual available MP4 sources
width, height, bitrateSource metadata, or null when unknown
has_audio, size_bytesNull when unverified; animated GIF audio is false
download_urlOpaque temporary download URL
ticket_expires_atDownload ticket expiry, 15 minutes after resolution
source_expires_atNull: upstream expiry is unknown

Save a file

Send GET to a returned download_url. The response streams video/mp4 with Content-Disposition: attachment. Single byte ranges (bytes=0-1023 or bytes=1024-) and HEAD are supported. HEAD and retries consume download request limits. Keep the opaque URL private; anyone holding it can use it before expiry within service limits.

Errors

Errors return a non-2xx HTTP status, code, message, request_id, error, and retryable.

CodeHTTPAction
INVALID_URL400 / 413 / 415Correct the link, body size, or JSON content type
NO_VIDEO422Try a post with native video
NOT_ACCESSIBLE422Check that the post is public and exists
UNSUPPORTED_MEDIA422 / 413Try supported MP4 media under 250 MB
UNAUTHORIZED401 / 403Correct or revoke the key / origin
RATE_LIMITED429Wait for Retry-After
UPSTREAM_UNAVAILABLE502 / 503Retry later
DOWNLOAD_EXPIRED410Resolve the post again

Keys and limits

Create a key after signing in. Copy it immediately: the full key cannot be retrieved later. Revoke unused keys. Revocation stops new authenticated resolutions; already-issued download links remain valid until expiry. Limits and provider details. Cross-origin browser integrations are not enabled; use your server or a compatible MCP client.