[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [X (Twitter) community search](https://spiral.ai/integrations/grok/x-twitter-community-search)

# How to Use X (Twitter) community search in Grok

Returns communities matching a keyword, with pagination for more results. Use it to find places where a topic is discussed rather than individual posts about it.

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

## Prompts to try with X (Twitter) community search in Grok

- Use X (Twitter) community search to find communities about astronomy. Summarize the returned community information and identify results worth reviewing for a science newsletter.
- Use X (Twitter) community search to look this up and give me the result as a table.
- Pull the latest numbers from X (Twitter) community search and tell me what changed since last week.
- Check X (Twitter) community search and summarize what you find in three bullet points.
- Pull the newest data from X (Twitter) community search and give me the result as a table.

## How to set up X (Twitter) community search in Grok

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

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok 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) community 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-communities",
    "input": {
      "keyword": "superman"
    }
  }'
```

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

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

## X (Twitter) community search tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| cursor |  | — | Cursor |

## What can you do with X (Twitter) community search in Grok?

Prepare a source brief about a public organization or topic on X using retrieved evidence. A chat app can explain the returned posts, account information, connections, or broadcast status in plain English.

### 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.

### Research potential organization partnerships

Find topic communities and public organizations appearing in repost, follower, and following results. Use account background and affiliate information to prepare a shortlist for manual partnership research.

### 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.

### 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 Grok guides](https://spiral.ai/integrations/grok)

## X (Twitter) community search in other agents

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

## More Grok guides

- [X (Twitter) batch account profiles](https://spiral.ai/integrations/grok/x-twitter-batch-account-profiles)
- [X (Twitter) organization affiliates](https://spiral.ai/integrations/grok/x-twitter-organization-affiliates)
- [X (Twitter) accounts followed](https://spiral.ai/integrations/grok/x-twitter-accounts-followed)
- [X (Twitter) post details](https://spiral.ai/integrations/grok/x-twitter-post-details)
- [X (Twitter) account replies](https://spiral.ai/integrations/grok/x-twitter-account-replies)
- [X (Twitter) post search](https://spiral.ai/integrations/grok/x-twitter-post-search)

## Questions about X (Twitter) community search in Grok

**Can Grok use X (Twitter) community search?**

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

**How much does X (Twitter) community search cost in Grok?**

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

**Do I need a TikHub account to use X (Twitter) community search in Grok?**

No. Spiral runs X (Twitter) community search on its own TikHub account. You sign in to Spiral once and never paste a key.

**How long does it take to set up X (Twitter) community search in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while X (Twitter) community search runs?**

X (Twitter) community search runs in the background. Grok 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.

