[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [X (Twitter) video download](https://spiral.ai/integrations/opencode/x-twitter-video-download)

# How to Use X (Twitter) video download in opencode

Fetch one public X post's text, media details, publication time, and engagement counts. Use it to inspect a specific announcement or compare posts from a saved list of campaign links.

|  |  |
| --- | --- |
| Model | X (Twitter) video download |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | Up to $0.0013 per run. |
| Returns | video, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with X (Twitter) video download in opencode

- Use X (Twitter) post details for https://x.com/adrian_horning_/status/1628769691547074562 and add its text, publication time, likes, reposts, and bookmarks to a CSV in this project.
- Use X (Twitter) post details for https://x.com/Austen/status/1935730646267158797 and build a report row containing the post ID, text, and returned media details.
- Use X (Twitter) post details for https://x.com/SpaceflightNow/status/2062602790015242374 and add a source card to this project's news page with the returned text and publication time.
- Use X (Twitter) post details for https://x.com/adrian_horning_/status/1628769691547074562 and compare its engagement counts with the last saved observation in this project's reports directory.
- Use X (Twitter) post details for https://x.com/Austen/status/1935730646267158797 and create a JSON fixture from the returned post ID, text, publication time, views, likes, replies, and reposts.

## How to set up X (Twitter) video download in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run X (Twitter) video download**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "scrapecreators",
    "model": "scrapecreators/twitter-tweet",
    "input": {
      "url": "https://x.com/user/status/1935730646267158797"
    }
  }'
```

Then paste one of the prompts above: opencode finds X (Twitter) video download on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## X (Twitter) video download tools and prices

- [X (Twitter) video download](https://spiral.ai/tools/scrapecreators/scrapecreators/twitter-tweet) (ScrapeCreators): Up to $0.0013 per run.

## What can you do with X (Twitter) video download in opencode?

Build a campaign report from public X post links already saved in your project. Use the returned text, publication times, media details, and engagement counts to populate the report and calculate changes between saved observations.

### Compare campaign posts

Fetch a saved list of public brand posts and compare likes, reposts, replies, and bookmarks alongside each post's text.

### Measure engagement growth

Revisit selected announcement links and calculate changes in their engagement counts between observations.

### Prepare an editorial source brief

Retrieve a public organization's post text, publication time, and attached media details for a sourced news brief.

### Review posts that attract bookmarks

Compare bookmark counts across selected public business or creator posts, then examine the text of the most bookmarked examples.

### Catalog campaign media

Collect the media entities returned for selected public campaign posts and pair them with post IDs and captions for creative review.

### Build a launch report

Turn approved announcement links into a table of publication times, post text, views, likes, replies, reposts, and quotes.

## Overview

- [ScrapeCreators](https://spiral.ai/providers/scrapecreators)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## X (Twitter) video download in other agents

- [Amp](https://spiral.ai/integrations/amp/x-twitter-video-download)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/x-twitter-video-download)
- [Claude](https://spiral.ai/integrations/claude-desktop/x-twitter-video-download)
- [Claude Code](https://spiral.ai/integrations/claude-code/x-twitter-video-download)
- [Cline](https://spiral.ai/integrations/cline/x-twitter-video-download)
- [Codex](https://spiral.ai/integrations/codex/x-twitter-video-download)
- [Cursor](https://spiral.ai/integrations/cursor/x-twitter-video-download)
- [Devin](https://spiral.ai/integrations/devin/x-twitter-video-download)
- [dots](https://spiral.ai/integrations/dots/x-twitter-video-download)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/x-twitter-video-download)
- [Gemini](https://spiral.ai/integrations/gemini/x-twitter-video-download)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/x-twitter-video-download)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/x-twitter-video-download)
- [goose](https://spiral.ai/integrations/goose/x-twitter-video-download)
- [Grok](https://spiral.ai/integrations/grok/x-twitter-video-download)
- [Grok Build](https://spiral.ai/integrations/grok-build/x-twitter-video-download)
- [Hermes](https://spiral.ai/integrations/hermes/x-twitter-video-download)
- [Instinct](https://spiral.ai/integrations/instinct/x-twitter-video-download)
- [Manus](https://spiral.ai/integrations/manus/x-twitter-video-download)
- [Muse](https://spiral.ai/integrations/muse/x-twitter-video-download)
- [Muse Code](https://spiral.ai/integrations/muse-code/x-twitter-video-download)
- [n8n](https://spiral.ai/integrations/n8n/x-twitter-video-download)
- [Notion](https://spiral.ai/integrations/notion/x-twitter-video-download)
- [OpenClaw](https://spiral.ai/integrations/openclaw/x-twitter-video-download)
- [Perplexity](https://spiral.ai/integrations/perplexity/x-twitter-video-download)
- [Raycast](https://spiral.ai/integrations/raycast/x-twitter-video-download)
- [VS Code](https://spiral.ai/integrations/vscode/x-twitter-video-download)
- [Windsurf](https://spiral.ai/integrations/windsurf/x-twitter-video-download)
- [Zapier](https://spiral.ai/integrations/zapier/x-twitter-video-download)

## More opencode guides

- [X (Twitter) user tweets](https://spiral.ai/integrations/opencode/x-twitter-user-tweets)
- [X (Twitter) video transcript](https://spiral.ai/integrations/opencode/x-twitter-video-transcript)
- [X (Twitter) trending topics](https://spiral.ai/integrations/opencode/x-twitter-trending-topics)
- [X account posts](https://spiral.ai/integrations/opencode/x-account-posts)
- [X (Twitter) reposting accounts](https://spiral.ai/integrations/opencode/x-twitter-reposting-accounts)
- [X account profile](https://spiral.ai/integrations/opencode/x-account-profile)

## Questions about X (Twitter) video download in opencode

**Can opencode use X (Twitter) video download?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run X (Twitter) video download like any built-in tool.

**How much does X (Twitter) video download cost in opencode?**

Up to $0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need a ScrapeCreators account to use X (Twitter) video download in opencode?**

No. Spiral runs X (Twitter) video download on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

**How long does it take to set up X (Twitter) video download in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while X (Twitter) video download runs?**

X (Twitter) video download runs in the background. opencode starts the run, checks on it and gives you the video, json when it's ready.

**Does public coverage include protected posts?**

X makes posts public by default, but protected posts are visible only to the account's followers. Keep public-post research within that visibility boundary.

**How can I tell when cached post data was collected?**

ScrapeCreators includes a cached_at timestamp identifying when the cached copy was scraped. That timestamp gives the collection time for the returned copy.

**Does a post's view count tell me how many people saw it?**

No. X can count repeated views by the same person, so post views are not a unique-audience count.

**Can returned post data be used commercially?**

ScrapeCreators permits commercial use, resale, and redistribution of its output. Its terms also make you responsible for complying with X's applicable terms, policies, and laws.

