Skip to content

Twitter / X Downloader

This API allows you to extract media from Tweets. It supports both legacy twitter.com links and modern x.com links, automatically resolving the highest quality MP4 available.

POST /api/v1/twitter

The following parameters are accepted in the request body:

FieldTypeRequiredDescription
urlstringYesThe link to the Tweet containing the video or GIF.
Terminal window
curl -X POST https://heavstal.com.ng/api/v1/twitter \
-H "Content-Type: application/json" \
-H "x-api-key: <YOUR_API_KEY>" \
-d '{"url": "https://x.com/user/status/123456789"}'
{
"status": "success",
"creator": "HEAVSTAL TECH",
"data": {
"description": "This is a funny video caption",
"thumbnail": "https://pbs.twimg.com/media/...",
"video_hd": "https://video.twimg.com/.../vid/720x1280/file.mp4",
"video_sd": "https://video.twimg.com/.../vid/320x560/file.mp4",
"audio": null
}
}