How to Use X community tweets in Claude Code
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.
Prompts to try with X community tweets in Claude Code
Copy an example into Claude Code, or ask in your own words.
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 Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.
Use the Spiral skill
- Send Claude Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run X community tweets
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": "scrapecreators", "model": "scrapecreators/twitter-community-tweets", "input": { "url": "https://x.com/i/communities/1926186499399139650" } }'
Then paste one of the prompts above: Claude Code finds X community tweets on Spiral, shows the price and runs it.
X community tweets providers and prices
Spiral runs X community tweets through ScrapeCreators. Open a card for today's price, with every fee included.
What can you do with X community tweets in Claude Code?
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.
More on X community tweets and Claude Code
X community tweets in other agents
Questions about X community tweets in Claude Code
Can Claude Code use X community tweets?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run X community tweets like any built-in tool.
How much does X community tweets cost in Claude Code?
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 Claude Code plan is separate.
Do I need a ScrapeCreators account to use X community tweets in Claude Code?
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 Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while X community tweets runs?
X community tweets runs in the background. Claude Code 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.
Start using X community tweets in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


