How to Use X community posts in Claude Code
Returns posts from a specified X community. Use it to review the community's discussion rather than its description or account roster.
Prompts to try with X community posts in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use X community posts for community 1493290339532222469 and build a topic summary from the returned posts.
Use X community posts to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from X community posts and tell me what changed since last week.
Check X community posts and summarize what you find in three bullet points.
Pull the newest data from X community posts and give me the result as a table.
How to set up X community posts 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 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": "tikhub", "model": "tikhub/twitter-web-fetch-community-timeline", "input": { "community_id": "1493290339532222469" } }'
Then paste one of the prompts above: Claude Code finds X community posts on Spiral, shows the price and runs it.
X community posts providers and prices
Spiral runs X community posts through TikHub. Open a card for today's price, with every fee included.
What can you do with X community posts in Claude Code?
Build an internal X research panel for a brand or publication. Your coding agent can add returned posts, community context, or organization checks to the project and compare them with saved observations.
Prepare an event recap
Combine public organization relationship checks, community context and rosters, list coverage and rosters, and announcement replies into an internal event report.
Assess a public community
Review its stated purpose, rules, represented organizations, discussion topics, and replies to selected posts before planning editorial participation.
Assemble sponsorship evidence
Document public partner reposts and follows alongside community context, organization representation in lists and communities, related posts, and announcement feedback.
Compare competitor publishing
Compare public business connections, repost distribution, community positioning, list representation, published discussion, and reply themes across competing brands.
More on X community posts and Claude Code
Overview
X community posts in other agents
Questions about X community posts in Claude Code
Can Claude Code use X community posts?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run X community posts like any built-in tool.
How much does X community posts cost in Claude Code?
$0.0013 per request. 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 TikHub account to use X community posts in Claude Code?
No. Spiral runs X community posts 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 community posts in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while X community posts runs?
X community posts runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.
Can TikHub retrieve private X content?
TikHub describes its X coverage as publicly available data. Protected posts and accounts fall outside that coverage and can return empty results or errors.
Can it recover deleted X posts?
Deleted posts can return empty results or errors. TikHub does not describe these endpoints as a recovery service for deleted content.
Are X handles reliable identifiers over time?
Handles can change, while numeric account and post IDs remain stable. Use numeric IDs when comparing observations over time.
Are these X endpoints read-only?
Yes. TikHub describes its X access as read-only public data access.
Does a missing result always mean the content never existed?
No. TikHub says deleted, suspended, or protected posts and accounts can produce empty results or errors.
Start using X community posts 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


