Timeline & DMs
Download media
Download images, videos, and GIFs from tweets. Single or bulk (up to 50). Returns a gallery URL
POST
Download media
Documentation Index
Fetch the complete documentation index at: https://docs.xquik.com/llms.txt
Use this file to discover all available pages before exploring further.
1 credit per fresh tweet processed with media · cache hits are free · All plans from $0.00012/credit
galleryUrl plus cache or bulk
counts; it does not return per-file downloads, file metadata, or an uploaded
mediaId.
Headers
Your API key. Session cookie authentication is also supported.
Must be
application/json.Body
UsetweetIds for bulk downloads. If tweetIds is present with at least 1 string value, the route uses bulk mode and ignores single-tweet fields. Otherwise, use tweetInput, tweetId, or tweetUrl for a single tweet.
Tweet URL or numeric tweet ID for a single download. Accepts
x.com and twitter.com URL formats.Numeric tweet ID alias for
tweetInput. Used when tweetInput is not provided.Tweet URL alias for
tweetInput. Used when tweetInput and tweetId are not provided.Array of tweet URLs or IDs for bulk download. Maximum 50 string items. Invalid IDs are skipped; the request fails only when no valid tweet IDs remain.
Media download handoff
Use this endpoint when your agent needs a saved gallery for tweet images, videos, or GIFs. Write one manifest row per request so downstream jobs can store the gallery link without treating it as an uploaded media ID or an individual media file URL.Gallery URL
Store
gallery_url from galleryUrl as the durable link for downloaded media.Single tweet
Store
requested_tweet_id, tweet_id, and cache_hit. cacheHit: true means the single-tweet request used cached media and is free.Bulk result
Store
requested_tweet_ids, successful_tweet_count from totalTweets, and media_item_count from totalMedia. totalTweets counts successful tweets with media after invalid or failed IDs are skipped.Input mode
Send
tweetIds for bulk. When it contains at least 1 string, bulk mode ignores tweetInput, tweetId, and tweetUrl.Batch limit
Keep
tweetIds at 50 items or fewer. Split larger backfills into multiple requests.Write handoff
This endpoint creates a gallery download, not an uploaded media ID. Use Upload Media before DMs or hosted tweet assets.
cacheHit: true and are free. Bulk responses do not return freshCount; store the request IDs with totalTweets and totalMedia for reconciliation.
Response
- 200 OK (single)
- 200 OK (bulk)
- 400 Invalid Input
- 400 Invalid Tweet ID
- 400 Too Many Tweets
- 400 No Media
- 401 Unauthenticated
- 402 Subscription Required
- 404 Tweet Not Found
- 429 Rate Limit Exceeded
- 424 Dependency Failed
First download is metered and counts toward your monthly credit allowance. Subsequent requests for the same tweet return cached URLs at no cost (
cacheHit: true). All downloads are saved to your gallery at https://xquik.com/gallery.Last modified on May 24, 2026
Download media