Postmedia.All guides

← All guides

How to download images and videos from an X post with Codex

Use Codex and Postmedia to find and save available images or videos from an X (Twitter) post.

To download available images or videos from an X post with Codex, connect the Postmedia MCP server, then give Codex the post link and a destination folder. Postmedia uses your browser session to collect available media.

Before you start

Follow the Codex setup guide. You need the paid Postmedia extension, the free MCP helper, and a local Codex session on macOS or Linux. Keep Chrome or Helium open. X may require you to sign in.

Ask Codex to save an X post

  1. Copy the URL of the X post.
  2. In Codex, ask it to list the connected Postmedia browsers and collect media from that URL.
  3. Specify images, videos or both, and name a folder on your computer. Ask for the post link and the paths of files actually saved.
  4. Check the results before reuse. Multiple selected files may be saved as a ZIP.

Use Postmedia to collect the available images and videos from this X post: [paste post URL]. Save the original author’s media to [folder path]. Check that the files were saved and report the post URL, saved file paths, and any media you could not download.

Replace both placeholders before sending the prompt. Ask for images only or videos only if that is what you need.

Can it download an X thread?

Postmedia can collect media from the original post and loaded replies by the same author. Replies that have not loaded may be missing. The agent should collect again after more replies load and review uncertain or other people’s media separately. See the X thread guide.

Why is an image or video missing?

Access, page loading and X’s response can affect results. Some videos are protected, segmented or unavailable and cannot be downloaded. A search preview does not prove a file can be saved; check the collection and download result. Save only media you have permission to use.

MCP setup · Codex guide · Claude Code guide · Download an X post with Codex