Spiral gives your agent every tool with one account. Browse the tools →

Codex · Social Media

How to Use X (Twitter) Search Posts in Codex

Find public X posts through Google, with post text, publication dates, engagement counts, and links. Use it to collect examples about a product or topic; Google's index limits coverage, so results are not a complete archive or a newest-first feed.

Prompts to try with X (Twitter) Search Posts in Codex

Copy an example into Codex, or ask in your own words.

Use X post search to find posts about GitHub Copilot code review. Save the returned text, publication dates, engagement counts, and links to a research JSON file in this project.

X (Twitter) Search PostsCodex
Try asking
  • Use X post search for Blender 4.5 and create a Markdown reading list in this repository, sorted by returned publication date with duplicate post IDs removed.

  • Use X post search to collect posts mentioning Next.js caching. Compare the issues described with this project's caching code and write a short investigation note with source links.

  • Use X post search for Firefox extensions and create a CSV of returned post IDs, publication dates, text, and links for our product research folder.

  • Use X post search to find posts about Google I/O 2026. Build a small viewer in this project that displays the returned text, dates, links, and available engagement counts.

How to set up X (Twitter) Search Posts in Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    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.

    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.

    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) Search Posts

    One request; the result comes back by polling or a webhook.

    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-search-posts",
        "input": {
          "query": "ai agents"
        }
      }'

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

X (Twitter) Search Posts providers and prices

Spiral runs X (Twitter) Search Posts through ScrapeCreators. Open a card for today's price, with every fee included.

ScrapeCreatorsSocial Media
X (Twitter) · Search Posts
scrapecreators/twitter-search-posts

What can you do with X (Twitter) Search Posts in Codex?

Build a searchable collection of X posts about products discussed in your project, with text, dates, engagement counts, and original links. Deduplicate results by post ID and label the collection as Google-indexed discovery.

Compare product messaging

Collect indexed posts about GitHub Copilot and Amazon Q Developer. Compare the product claims in the returned text and attach a source link to each example.

Research a product announcement

Find posts about a named release, such as Blender 4.5. Build a reading list with publication dates and links, keeping the findings limited to the posts returned.

Prepare an editorial brief

Collect public posts about NASA Artemis and group the returned text into topics for an article outline. Give the editor links to inspect before citing a claim.

Review conference discussion

Find indexed posts mentioning Google I/O 2026. Summarize the announcements discussed and select relevant examples with their publication dates.

Collect product feedback themes

Search for posts mentioning Firefox extensions and summarize recurring product issues in the returned sample. Keep the analysis about the product without building profiles of individual posters.

Build a public announcement digest

Collect indexed posts about ESA Euclid, check available author details for agency posts, and assemble a digest with dates and original links.

Questions about X (Twitter) Search Posts in Codex

Can Codex use X (Twitter) Search Posts?

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

How much does X (Twitter) Search Posts 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) Search Posts in Codex?

No. Spiral runs X (Twitter) Search Posts 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) Search Posts in Codex?

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

Does Codex wait while X (Twitter) Search Posts runs?

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

What details come back for each X post?

Results include post IDs, text, publication timestamps, engagement counts, and canonical links. Author details and media are included when available.

Does this search every public X post?

No. Discovery depends on Google's index rather than native X search, so the results cannot serve as a complete historical collection or a newest-first feed.

How quickly can a new post appear?

Discovery depends on Google indexing the post. Google says crawling can take days to weeks; that is general indexing guidance, not a promised delay for an individual X post.

How far can I paginate?

Supported page cursors run from 1 through 11, and a null continuation cursor means pagination has ended.

Can protected X posts appear?

Protected posts are outside this public search workflow. X says they do not appear in third-party search engines such as Google.

Get started

Start using X (Twitter) Search Posts in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options