{"uid":"cap_J1LyVwDeoMgUlqKSJC8co","slug":"xmedia-x-twitter-media-downloader-c84ace1f","name":"xmedia X/Twitter Media Downloader","description":"**Twitter (X) Video & Image Downloader — Tweet Media to Direct CDN URLs** on x402 Atlas — pay-per-call over the [x402 protocol](https://x402.org).\n\nPaid routes are billed per call in USDC on Base, starting at $0.005; each operation states its exact price below. Request a route with no payment to receive the `402` challenge, then repeat it with an `X-PAYMENT` header — an x402 client (`x402-fetch` / `x402-axios`) performs that exchange for you.\n\nFull onboarding, quickstart, and the other APIs: https://use.x402atlas.com/docs","url":"https://xmedia.use.x402atlas.com/tweet?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https?://(www\\.|mobile\\.)?(x\\.com|twitter\\.com)/.*/status/.*$","description":"Full URL of a public tweet / X post on x.com or twitter.com; the path must contain /status/<id>, e.g. https://x.com/user/status/1234567890"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["queried_at","post_url","video_count","image_count","videos","images"],"properties":{"images":{"type":"array","items":{"type":"string"},"description":"Direct CDN image URLs; always present, never null"},"videos":{"type":"array","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Direct CDN .mp4 URL"},"thumbnail":{"type":"string","description":"Thumbnail image CDN URL"}}},"description":"Always present, never null; empty if the post has no video"},"post_url":{"type":"string","description":"Echoed input tweet URL"},"queried_at":{"type":"string","format":"date-time","description":"UTC timestamp when the upstream was queried"},"image_count":{"type":"integer","minimum":0,"description":"Number of images found in the post"},"video_count":{"type":"integer","minimum":0,"description":"Number of videos found in the post"}}}}}}},"responseSchema":{"type":"json","example":{"images":["https://pbs.twimg.com/media/AbC123.jpg"],"videos":[{"url":"https://video.twimg.com/amplify_video/1234567890/vid/avc1/1920x1080/abc.mp4?tag=28","thumbnail":"https://pbs.twimg.com/amplify_video_thumb/1234567890/img/xyz.jpg"}],"post_url":"https://x.com/user/status/1234567890","queried_at":"2026-07-05T12:00:00Z","image_count":1,"video_count":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":2,"rating":{"score":"0.46","successRate":"0.50","reviews":2,"stars":"2.8","state":"rated"},"availabilityStatus":"unknown","priceObserved":{"p10Cents":"0.5000","medianCents":"0.5000","p90Cents":"0.5000","minCents":"0.5000","maxCents":"0.5000","p95Cents":"0.5000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_N5REXbMp3uCn6NmqWmRFb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts direct CDN video (.mp4) and image URLs from a public X (Twitter) post URL","exampleAgentPrompt":"Can you get me the direct downloadable video and image links from this tweet: https://x.com/NASA/status/1234567890?","exampleUseCases":[{"title":"Download viral tweet video","prompt":"There's a viral video going around on X at https://x.com/user/status/9876543210 — can you grab me the direct MP4 link so I can download and save it?"},{"title":"Embed tweet images in blog","prompt":"I want to embed the images from this tweet into my blog post without hotlinking to Twitter. Can you pull the direct CDN image URLs from https://x.com/NatGeo/status/1122334455667788900?"},{"title":"Archive news tweet media","prompt":"I need to archive all the media from this breaking news tweet before it gets taken down — can you extract every video and image URL from https://x.com/BBCBreaking/status/1098765432109876543?"}],"resultDescription":"Returns direct CDN URLs for all media in the tweet: .mp4 video file URLs with associated thumbnail images, plus direct URLs for every image attached to the post — ready to stream, embed, re-host, or download without scraping or browser automation.","failureModes":["Tweet URL is private or requires login — returns error or empty media list","Tweet has no media (text-only post) — returns empty media arrays","Invalid or malformed tweet URL — returns validation error","Tweet has been deleted — returns not found error","Rate limiting or payment failure — returns 402 or 429 error"],"whenToPreferThis":"Use this endpoint when you need direct CDN media URLs from a public X/Twitter post without running a browser or scraping HTML. Ideal for agents that need to re-host, embed, or download tweet videos and images programmatically. Prefer over generic scrapers when you specifically need .mp4 video links with thumbnails from X posts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":8,"lastUsedAt":"2026-09-13T03:41:47.003Z","lastSuccessfullyRanAt":"2026-08-27T16:21:55.821Z","lastHealthCheckAt":"2026-10-16T18:31:25.327Z","isFirstParty":false,"canonicalSlug":"xmedia-x-twitter-media-downloader-c84ace1f"}