---
title: "Download images and videos from tweets"
method: POST
path: "/x/media/download"
tags: ["Media"]
---

# Download images and videos from tweets

`POST /x/media/download`

## Request body

- object
  - `tweetInput` string — Tweet URL or ID (single tweet)
  - `tweetId` string — Numeric tweet ID alias for tweetInput
  - `tweetUrl` string — Tweet URL alias for tweetInput
  - `tweetIds` string[] — Array of tweet URLs or IDs (bulk, max 50 string items)

## Response `200`

Media download result. Single: tweetId + galleryUrl + cacheHit. Bulk: galleryUrl + totalTweets + totalMedia.

- object
  - `tweetId` string
  - `galleryUrl` string
  - `cacheHit` boolean
  - `totalTweets` integer
  - `totalMedia` integer

## Other responses

- `400` — Invalid input
- `401` — Unauthenticated
- `402` — Payment required. MPP reads return a problem document and `WWW-Authenticate`. Authenticated reads return balances and checkout actions. Guest keys receive only the guest top-up action. Other endpoints may use legacy errors. A failed request never creates checkout. Require user confirmation before creating one.
- `404` — Tweet media source not found
- `424` — Dependency unavailable, unauthorized, or rate limited. Default v1 returns 502. The best-practice response contract returns 424 for transparent dependency failures.
- `429` — Xquik tier rate limit exceeded. The response includes a `Retry-After` header with the number of seconds to wait before retrying.
- `502` — Dependency unavailable, unauthorized, or rate limited. Default v1 returns 502. The best-practice response contract returns 424 for transparent dependency failures.

## Changes

- **2026-08-12** `d8082b3892a2` — 84 warning
  - added the new `invalid_complete_replies_request` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `invalid_complete_replies_request` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `invalid_complete_replies_request` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …80 more
- **2026-08-11** `f6affe6e547e` — 4 info
  - response property `oneOf[#/components/schemas/AuthenticatedPaymentRequired]/payment_options/credits/create_checkout/provider` deprecated (media type: application/json)
  - response property `oneOf[#/components/schemas/AuthenticatedPaymentRequired]/payment_options/subscription/create_checkout/provider` deprecated (media type: application/json)
  - response property `oneOf[#/components/schemas/GuestPaymentRequired]/payment_options/credits/create_checkout/provider` deprecated (media type: application/json)
  - response property `payment_options/guest_wallet/create_checkout/provider` deprecated (media type: application/problem+json)
- …earlier changes not shown

[Full history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/x/media/download/post.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api/revisions/d8082b3892a2/schema)
