[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [X (Twitter) post search](https://spiral.ai/integrations/n8n/x-twitter-post-search)

# How to Use X (Twitter) post search in n8n

Returns X search results for a keyword. Use it to find relevant posts, including matches where the keyword does not appear in the post's own text.

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

## Prompts to try with X (Twitter) post search in n8n

- Every weekday morning, use X (Twitter) post search to find NASA posts about Artemis from the previous day. Summarize the returned posts in my morning brief.
- Every Monday at 9am: use X (Twitter) post search to look this up and give me the result as a table.
- Pull the latest numbers from X (Twitter) post search and tell me what changed since last week.
- Check X (Twitter) post search and summarize what you find in three bullet points.
- Pull the newest data from X (Twitter) post search and give me the result as a table.

## How to set up X (Twitter) 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:

```text
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:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run X (Twitter) 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 (Twitter) 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.

```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) post search**: 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-search-timeline",
    "input": {
      "keyword": "Elon Musk"
    }
  }'
```

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

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

## X (Twitter) post search tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cursor |  | — | Cursor |
| search_type |  | Top | Search Type |

## What can you do with X (Twitter) post search in n8n?

Produce a recurring X research brief for a public organization, industry, or event. A scheduled agent can repeat retrievals and compare returned results to detect changes in topics, account connections, or broadcast status.

### Review a product announcement

Build a launch brief from matching posts, a specific announcement, reposting accounts, country trends, and the company's current broadcast status. Limit account analysis to public businesses, publishers, and creators.

### Prepare a newsroom event brief

Find event communities and related posts, examine cited announcements, and check current trends and broadcasts. Add the organizing institution's account background and affiliated accounts to distinguish its public communication channels.

### Audit an organization's public account presence

Review account background, affiliated accounts, public organizational connections, and relevant posts. Use the findings to identify channels that should appear in an internal communications directory.

### Choose topics for a publisher's editorial meeting

Compare country trends with topic communities and matching posts. Review public publishers and organizations in a publication's follower and following results to suggest sources worth reading.

### Watch for public organization broadcasts

Check an institution and its affiliated accounts for live status on a schedule. Pair the checks with event posts and country trends to prepare an internal briefing when a broadcast is detected.

### Build a public science communications brief

Prepare a NASA-focused brief covering account background, affiliates, live status, mission posts, reposting organizations, topic communities, and country trends. Include public institutions from follower and following results as additional sources to review.

## Overview

- [TikHub](https://spiral.ai/providers/tikhub)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## X (Twitter) post search in other agents

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

## More n8n guides

- [X (Twitter) post details](https://spiral.ai/integrations/n8n/x-twitter-post-details)
- [X (Twitter) profile](https://spiral.ai/integrations/n8n/x-twitter-profile)
- [X (Twitter) organization affiliates](https://spiral.ai/integrations/n8n/x-twitter-organization-affiliates)
- [X (Twitter) reposting accounts](https://spiral.ai/integrations/n8n/x-twitter-reposting-accounts)
- [X (Twitter) community search](https://spiral.ai/integrations/n8n/x-twitter-community-search)
- [X (Twitter) trending topics](https://spiral.ai/integrations/n8n/x-twitter-trending-topics)

## Questions about X (Twitter) post search in n8n

**Can n8n use X (Twitter) post search?**

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

**How much does X (Twitter) post search cost in n8n?**

$0.0013 per request. 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 a TikHub account to use X (Twitter) post search in n8n?**

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

**How long does it take to set up X (Twitter) 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 (Twitter) post search runs?**

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

**Can this data include protected or deleted X content?**

TikHub's X coverage is limited to public content. Deleted, suspended, or protected posts and accounts return empty results or errors.

**How fresh are the results?**

TikHub says repeated requests fetch fresh, real-time data even when the request is identical. That describes retrieval freshness, rather than a guarantee that X has updated every underlying value.

**Does one response contain every matching result?**

For list and search requests, TikHub documents bounded result pages. Reposting accounts, communities, followers, and accounts followed use cursors to retrieve additional pages.

**Does TikHub guarantee that X data is complete and accurate?**

No. TikHub's terms explicitly disclaim a guarantee that retrieved data is accurate, complete, or current.

**Does access give me permission to republish X content?**

Access does not establish permission to republish the content. TikHub's terms say retrieved material may carry third-party intellectual property rights.

