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

n8n · Social Media

How to Use X post search in n8n

Returns sourced research about public X posts matching a topic. Use it to discover announcements, compare claims, or collect evidence across posts before inspecting a specific conversation.

Prompts to try with X post search in n8n

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

Every weekday morning, use X post search to research @Cloudflare's public incident updates from the previous day and summarize stated symptoms, workarounds, and recovery notices.

X post searchn8n
Try asking
  • Every Monday, use X post search to summarize @github's public GitHub Actions announcements from the previous week, linking each finding to its source post.

  • Each evening, use X post search to research @NASA's public Artemis updates from that day and prepare a short announcement brief.

  • Every Monday at 9am: use X post search to look this up and give me the result as a table.

  • Pull the latest numbers from X post search and tell me what changed since last week.

How to set up X post search in n8n

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

Use the Spiral skill

  1. Send n8n 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 Spiral's MCP server

  1. Create a key

    Create a key under API keys in the console.

  2. Add an MCP Client node

    In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

    https://api.spiral.ai/mcp
  3. Pick a tool

    The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:

    {
      "provider": "fal",
      "model": "fal-ai/flux/schnell",
      "input": { "prompt": "a lighthouse at dawn" },
      "wait": true
    }
  4. Run X post search in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds X post search, prices it and runs it each time the step fires.

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 post search

    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": "alexandria",
        "model": "x-com/posts/search",
        "input": {
          "query": "<query>"
        }
      }'

Then paste one of the prompts above: n8n finds X post search on Spiral, shows the price and runs it.

X post search providers and prices

Spiral runs X post search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaSocial Media
X · Search posts
x-com/posts/search

Settings you can ask for

Ask n8n for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 105

Maximum output records, not a bound on upstream fetched items.

Every API field of X · Search posts is on its tool page: open its card above.

What can you do with X post search in n8n?

Produce recurring briefs from public X announcements and available follow-up discussion. A scheduled agent can revisit an organization's topic or a known post and report newly retrieved statements with their supporting links.

Check a product announcement

Find a company's launch posts with X post search, or examine a known announcement with X post details. Build a brief that separates the original announcement from later replies and clarifications.

Investigate a service incident

Research public incident updates from a service's official account, or inspect a known incident post and available replies. Extract the stated symptoms, workarounds, and recovery updates for a support brief.

Prepare a competitor briefing

Find a competitor's public product announcements, or examine a specific announcement already flagged by the team. Summarize the claims and available clarifications with links to the supporting posts.

Verify a reported claim

Search for the original public business or organization statement, or inspect its known post. Compare the available wording and conversation context with the claim in a draft article.

Collect product feedback examples

Discover public discussions of a product, or examine replies available around its announcement. Group concrete complaints and feature requests as examples for review without presenting them as a representative survey.

Research conference announcements

Find an organizer's public event updates, or inspect a known schedule announcement. Pull out stated session changes and clarifications to help prepare an attendee briefing.

Questions about X post search in n8n

Can n8n use X post search?

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run X post search like any built-in tool.

How much does X post search cost in n8n?

$0.005238 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

Do I need an Alexandria account to use X post search in n8n?

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs X post search on its own Alexandria account.

How long does it take to set up X post search in n8n?

About two minutes: create a key, then add an MCP Client node, then pick a tool.

Does n8n wait while X post search runs?

X post search runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

Which X posts are public?

Public posts are visible to anyone, including people without an X account. Protected posts are searchable only by their author and followers, so public research does not cover those conversations.

Does X research include every matching post?

No. X explicitly says it may omit posts from search results, and its safe search mode filters potentially sensitive content. A collection of returned posts cannot establish the total number of posts about a topic.

Can X research find current posts?

X Search accesses real-time X content. That supports research into current announcements and discussions, but the documentation's real-time description is not a measured guarantee of how quickly each new post appears.

What conversation context can a post fetch include?

X Search documents thread fetch as retrieving one post with parent posts and replies. That context can help distinguish an opening announcement from a reply that depends on an earlier statement.

Does every returned source link support the summary?

Not necessarily. xAI distinguishes encountered source URLs from sources directly referenced in the final answer, so check which post supports each claim.

Get started

Start using X post search in n8n

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

Paste this into n8n:

Set up n8n

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