[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [X community tweets](https://spiral.ai/integrations/gemini-cli/x-community-tweets)

# How to Use X community tweets in Gemini CLI

Fetch posts from an X Community with text, timestamps, views, likes, replies, reposts, bookmarks, and quote counts. Use it to compare discussions and engagement within a community.

|  |  |
| --- | --- |
| Model | X community tweets |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | Up to $0.0013 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with X community tweets in Gemini CLI

- Use X community tweets for https://x.com/i/communities/1926186499399139650 and add a table to this project showing returned post text, publication time, likes, replies, and bookmarks.
- Fetch X community tweets for https://x.com/i/communities/1926186499399139650 and create a CSV export of post IDs, text, timestamps, and all six engagement counts.
- Use X community tweets for https://x.com/i/communities/1926186499399139650 to build a report of posts mentioning OpenAI, ChatGPT, or Claude. Show the matching text and reply counts.
- Use X community tweets for https://x.com/i/communities/1926186499399139650 and add separate rankings by bookmarks, replies, and reposts to the project's report.
- Fetch X community tweets for https://x.com/i/communities/1926186499399139650 and compare the results with the project's previous saved response by post ID. Report newly observed posts and engagement changes.

## How to set up X community tweets in Gemini CLI

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

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI 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 community tweets**: 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": "scrapecreators",
    "model": "scrapecreators/twitter-community-tweets",
    "input": {
      "url": "https://x.com/i/communities/1926186499399139650"
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds X community tweets on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## X community tweets tools and prices

- [X (Twitter) · Community Tweets](https://spiral.ai/tools/scrapecreators/scrapecreators/twitter-community-tweets) (ScrapeCreators): Up to $0.0013 per run.

## What can you do with X community tweets in Gemini CLI?

Build a community discussion report from X post text, timestamps, and engagement counts. Coding agents can add topic filters, sortable tables, and comparisons between saved responses to your project.

### Community discussion briefs

Summarize topics in the returned posts, with post IDs and publication times supporting each finding.

### Content research

Compare the wording and subjects of posts with the most bookmarks, likes, or reposts to develop editorial ideas.

### Product feedback review

Find mentions of a public product in returned community posts and separate feature requests, complaints, and praise.

### Engagement comparisons

Rank returned posts separately by replies, bookmarks, and reposts to distinguish discussion from saving and sharing.

### Repeated discussion checks

Compare successive responses by post ID to identify newly observed posts and changes in engagement on posts present in both.

### Brand mention briefs

Collect returned posts mentioning a public business, then summarize the claims and accompanying engagement counts for review.

## Overview

- [ScrapeCreators](https://spiral.ai/providers/scrapecreators)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## X community tweets in other agents

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

## More Gemini CLI guides

- [X community roster](https://spiral.ai/integrations/gemini-cli/x-community-roster)
- [X creator connected accounts](https://spiral.ai/integrations/gemini-cli/x-creator-connected-accounts)
- [X community posts](https://spiral.ai/integrations/gemini-cli/x-community-posts)
- [X creator profile](https://spiral.ai/integrations/gemini-cli/x-creator-profile)
- [X community details](https://spiral.ai/integrations/gemini-cli/x-community-details)
- [X creator search](https://spiral.ai/integrations/gemini-cli/x-creator-search)

## Questions about X community tweets in Gemini CLI

**Can Gemini CLI use X community tweets?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run X community tweets like any built-in tool.

**How much does X community tweets cost in Gemini CLI?**

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 Gemini CLI plan is separate.

**Do I need a ScrapeCreators account to use X community tweets in Gemini CLI?**

No. Spiral runs X community tweets 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 community tweets in Gemini CLI?**

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

**Does Gemini CLI wait while X community tweets runs?**

X community tweets runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

**Are X Community posts private?**

X says Community posts are shared with followers and other X users outside the Community. Community discussions should not be treated as private conversations.

**How fresh are the returned posts and counts?**

ScrapeCreators says it fetches the latest available Community Tweets information when you make a request. That describes retrieval freshness, rather than a guarantee that every newly published post will appear.

**Which engagement measurements come back?**

The documented response includes seven counts: views, likes, reposts, replies, bookmarks, and quotes, plus the post's publication timestamp. There are six engagement counts; the timestamp identifies when the post was published.

**Does ScrapeCreators guarantee accurate X data?**

No. Its terms explicitly decline guarantees of both data availability and accuracy, including for the engagement counts returned with posts.

**Can the returned data be used commercially?**

ScrapeCreators permits commercial use, resale, redistribution, repackaging, and white-labeling of API output. Those permissions describe ScrapeCreators' own terms.

