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

n8n · Social Media

How to Use X account posts in n8n

Returns structured analysis of a sample of one X account's posts within a date range. Use it to research announcements or recurring topics without treating the sample as a complete timeline.

Prompts to try with X account posts in n8n

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

Each morning, use X account posts to review @NASA's posts from the previous day and summarize announcements found in the returned sample.

X account postsn8n
Try asking
  • Every Friday, use X account posts to research @github's posts from the past seven days and prepare a brief on the subjects found.

  • Every Monday, use X account posts to review @Cloudflare's posts from the previous week and highlight statements relevant to a company research brief.

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

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

How to set up X account posts 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 account posts in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds X account posts, 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 account 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": "alexandria",
        "model": "x-com/users/posts",
        "input": {
          "username": "<username>"
        }
      }'

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

X account posts providers and prices

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

AlexandriaSocial Media

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 · Research account posts is on its tool page: open its card above.

What can you do with X account posts in n8n?

Maintain a recurring brief on public organizations' X presence. Scheduled reviews can surface changes in returned account descriptions or newly found statements for a person to assess.

Prepare a company briefing

Use a company's public profile to establish context, then summarize announcements found in its posts for an upcoming meeting.

Compare competitor messaging

Compare how public business accounts describe themselves and the subjects they emphasize in sampled posts.

Research a creator partnership

Review a public creator account's description and sampled content to assess subject fit for a proposed collaboration.

Plan an editorial interview

Read an organization's account description and recent public statements to prepare questions grounded in what it has published.

Review a brand's public positioning

Compare the brand description in its profile with themes found in its posts, and identify differences worth reviewing.

Maintain an organization research brief

Refresh a public organization's account description and review newly found posts for changes relevant to an existing brief.

Questions about X account posts in n8n

Can n8n use X account posts?

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

How much does X account posts 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 account posts in n8n?

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

How long does it take to set up X account posts in n8n?

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

Does n8n wait while X account posts runs?

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

Can this research include protected X posts?

Public X posts are visible even without an X account, while protected posts are visible only to followers. Keep public account research within that visibility boundary.

How current is the X information?

Grok's X Search accesses real-time social media content. Its results can still vary because the model chooses its own queries.

Are X profile descriptions independently verified business information?

X lets account owners customize their name, bio, location, and website. Treat those details as the account's own description when using them to interpret its public presence.

How much detail can an X bio contain?

An X bio has a maximum of 160 characters. That makes it useful for a short account description, but a narrow basis for a detailed company or creator brief.

Get started

Start using X account posts 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