[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [X (Twitter) user tweets](https://spiral.ai/integrations/codex/x-twitter-user-tweets)

# How to Use X (Twitter) user tweets in Codex

Fetch up to 100 popular posts from a public X profile, with post text and engagement counts. Use it to study a brand's strongest content; the results do not represent its latest posts or complete posting history.

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

## Prompts to try with X (Twitter) user tweets in Codex

- Use X (Twitter) user tweets for NASA and add a CSV to this project with returned post text, publication dates, URLs, likes, and reposts.
- Use X (Twitter) user tweets for Nike and adidas, then create a Markdown comparison of recurring topics with supporting post links.
- Use X (Twitter) user tweets for Spotify and build a report in this project ranking the returned posts separately by likes, replies, and reposts.
- Use X (Twitter) user tweets for Adobe and create a JSON dataset of product announcements found in the returned sample, including text, dates, and URLs.
- Use X (Twitter) user tweets for LEGO and compare the response with this project's previous snapshot, reporting engagement changes only for posts present in both.

## How to set up X (Twitter) user tweets in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

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

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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) user tweets**: 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-user-tweets",
    "input": {
      "handle": "levelsio"
    }
  }'
```

Then paste one of the prompts above: Codex finds X (Twitter) user tweets on Spiral, shows the price and runs it.

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

## X (Twitter) user tweets tools and prices

- [X (Twitter) · User Tweets](https://spiral.ai/tools/scrapecreators/scrapecreators/twitter-user-tweets) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| trim |  | — | Set to true for a trimmed down version of the response |

## What can you do with X (Twitter) user tweets in Codex?

Build a brand content report from public X posts, their text, and engagement counts. Use the returned popular-post sample to populate project reports and comparisons without claiming complete account coverage.

### Compare brand messaging

Compare the topics and calls to action in returned posts from Nike and adidas. Keep the conclusions scoped to the popular posts returned.

### Find content ideas with evidence

Group NASA's returned posts by subject and compare their likes and reposts to find examples worth studying for a science content calendar.

### Review product announcement language

Identify product announcements in Adobe's returned posts and summarize the benefits, opening lines, and calls to action used.

### Prepare a public brand briefing

Turn Duolingo's returned posts into a briefing on recurring themes and tone, with post links supporting each observation.

### Compare engagement signals

Rank Spotify's returned posts separately by likes, reposts, and replies to see which examples lead each measure.

### Review changes in a popular-post sample

Compare scheduled snapshots of LEGO's returned posts to identify newly observed posts and engagement changes on posts present in both snapshots.

## Overview

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

## X (Twitter) user tweets in other agents

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

## More Codex guides

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

## Questions about X (Twitter) user tweets in Codex

**Can Codex use X (Twitter) user tweets?**

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

**How much does X (Twitter) user tweets cost in Codex?**

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 Codex plan is separate.

**Do I need a ScrapeCreators account to use X (Twitter) user tweets in Codex?**

No. Spiral runs X (Twitter) user tweets 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) user tweets in Codex?**

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

**Does Codex wait while X (Twitter) user tweets runs?**

X (Twitter) user tweets runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**How many posts can I get from an X profile?**

The endpoint returns up to 100 popular posts from a public profile. That is a maximum, not a promise that every account returns 100.

**What engagement data comes back?**

The documented example includes likes, reposts, replies, quotes, bookmarks, and views alongside post text, creation timestamps, and post URLs.

**How fresh are the results?**

ScrapeCreators says it fetches the available Twitter information when requested. The selection still consists of popular posts, so a fresh response can contain older content.

