[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [X (Twitter) account media](https://spiral.ai/integrations/claude-code/x-twitter-account-media)

# How to Use X (Twitter) account media in Claude Code

Returns media from a public X account. Use it to review a brand's published media without working through its broader post timeline.

|  |  |
| --- | --- |
| Model | X (Twitter) account media |
| Available through | TikHub |
| Category | Social Media |
| Price | $0.0013 per request. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with X (Twitter) account media in Claude Code

- Use X (Twitter) account media for NASA, account ID 11348282, and add a view of the returned media records to this project's research dashboard.
- Use X (Twitter) account media to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from X (Twitter) account media and tell me what changed since last week.
- Check X (Twitter) account media and summarize what you find in three bullet points.
- Pull the newest data from X (Twitter) account media and give me the result as a table.

## How to set up X (Twitter) account media in Claude Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code 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) account media**: 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": "tikhub",
    "model": "tikhub/twitter-web-fetch-user-media",
    "input": {
      "screen_name": "elonmusk"
    }
  }'
```

Then paste one of the prompts above: Claude Code finds X (Twitter) account media on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## X (Twitter) account media tools and prices

- [X (Twitter) Web · Get user media](https://spiral.ai/tools/tikhub/tikhub/twitter-web-fetch-user-media) (TikHub): $0.0013 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cursor |  | — | Page Cursor |
| rest_id |  | — | User ID |

## What can you do with X (Twitter) account media in Claude Code?

Build an internal X research panel for public organizations such as NASA and SpaceX. A coding agent can turn returned profile, post, reply, or media records into views that fit your project's existing data structures.

### Competitive communications review

Compare public company profiles, published posts, media, and account replies to see how competitors introduce themselves, announce products, and answer questions.

### Product launch briefing

Prepare an internal launch brief from a company's profile, announcements, media, and follow-up replies. Use batch profiles when several participating organizations need context.

### Public organization research

Build an editorial research packet for organizations such as NASA and SpaceX. Combine profile context with published posts, media, and replies that deserve further reporting.

### Brand communications audit

Review whether an organization's public profile, posts, media, and replies tell a consistent story. Refresh several organization profiles together when auditing a company portfolio.

### Announcement digest

Summarize posts from selected public business accounts into an internal digest, with returned media listed alongside relevant announcements.

### Campaign media inventory

List media returned for a public brand account and review its posts for campaign context before choosing material for an internal creative review.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## X (Twitter) account media in other agents

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

## More Claude Code guides

- [X (Twitter) account live status](https://spiral.ai/integrations/claude-code/x-twitter-account-live-status)
- [X (Twitter) account posts](https://spiral.ai/integrations/claude-code/x-twitter-account-posts)
- [X (Twitter) account followers](https://spiral.ai/integrations/claude-code/x-twitter-account-followers)
- [X (Twitter) account profile](https://spiral.ai/integrations/claude-code/x-twitter-account-profile)
- [X (Twitter) account background](https://spiral.ai/integrations/claude-code/x-twitter-account-background)
- [X (Twitter) account replies](https://spiral.ai/integrations/claude-code/x-twitter-account-replies)

## Questions about X (Twitter) account media in Claude Code

**Can Claude Code use X (Twitter) account media?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run X (Twitter) account media like any built-in tool.

**How much does X (Twitter) account media cost in Claude Code?**

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

**Do I need a TikHub account to use X (Twitter) account media in Claude Code?**

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

**How long does it take to set up X (Twitter) account media in Claude Code?**

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

**Does Claude Code wait while X (Twitter) account media runs?**

X (Twitter) account media runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**Does this include protected X content?**

No. TikHub's stated coverage excludes private, restricted, and password-protected content, so protected account material falls outside that boundary.

**Are repeated requests served from a cache?**

TikHub says every API request retrieves fresh, real-time data, even when the request is repeated.

