How to Use X (Twitter) user tweets in VS Code
Fetch up to 100 popular posts from a public X profile, with post text and engagement counts. Use it to study a brand's strongest content; the results do not represent its latest posts or complete posting history.
Prompts to try with X (Twitter) user tweets in VS Code
Copy an example into VS Code, or ask in your own words.
Use X (Twitter) user tweets for NASA and add a CSV to this project with returned post text, publication dates, URLs, likes, and reposts.
Use X (Twitter) user tweets for Nike and adidas, then create a Markdown comparison of recurring topics with supporting post links.
Use X (Twitter) user tweets for Spotify and build a report in this project ranking the returned posts separately by likes, replies, and reposts.
Use X (Twitter) user tweets for Adobe and create a JSON dataset of product announcements found in the returned sample, including text, dates, and URLs.
Use X (Twitter) user tweets for LEGO and compare the response with this project's previous snapshot, reporting engagement changes only for posts present in both.
How to set up X (Twitter) user tweets in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS 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 (Twitter) user 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-user-tweets", "input": { "handle": "levelsio" } }'
Then paste one of the prompts above: VS Code finds X (Twitter) user tweets on Spiral, shows the price and runs it.
X (Twitter) user tweets providers and prices
Spiral runs X (Twitter) user tweets through ScrapeCreators. Open a card for today's price, with every fee included.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Trim | on or off | Set to true for a trimmed down version of the response |
Every API field of X (Twitter) · User Tweets is on its tool page: open its card above.
What can you do with X (Twitter) user tweets in VS Code?
Build a brand content report from public X posts, their text, and engagement counts. Use the returned popular-post sample to populate project reports and comparisons without claiming complete account coverage.
Compare brand messaging
Compare the topics and calls to action in returned posts from Nike and adidas. Keep the conclusions scoped to the popular posts returned.
Find content ideas with evidence
Group NASA's returned posts by subject and compare their likes and reposts to find examples worth studying for a science content calendar.
Review product announcement language
Identify product announcements in Adobe's returned posts and summarize the benefits, opening lines, and calls to action used.
Prepare a public brand briefing
Turn Duolingo's returned posts into a briefing on recurring themes and tone, with post links supporting each observation.
Compare engagement signals
Rank Spotify's returned posts separately by likes, reposts, and replies to see which examples lead each measure.
Review changes in a popular-post sample
Compare scheduled snapshots of LEGO's returned posts to identify newly observed posts and engagement changes on posts present in both snapshots.
More on X (Twitter) user tweets and VS Code
Overview
X (Twitter) user tweets in other agents
Questions about X (Twitter) user tweets in VS Code
Can VS Code use X (Twitter) user tweets?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run X (Twitter) user tweets like any built-in tool.
How much does X (Twitter) user tweets cost in VS 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 VS Code plan is separate.
Do I need a ScrapeCreators account to use X (Twitter) user tweets in VS Code?
No. Spiral runs X (Twitter) user 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 (Twitter) user tweets in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while X (Twitter) user tweets runs?
X (Twitter) user tweets runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.
How many posts can I get from an X profile?
The endpoint returns up to 100 popular posts from a public profile. That is a maximum, not a promise that every account returns 100.
What engagement data comes back?
The documented example includes likes, reposts, replies, quotes, bookmarks, and views alongside post text, creation timestamps, and post URLs.
How fresh are the results?
ScrapeCreators says it fetches the available Twitter information when requested. The selection still consists of popular posts, so a fresh response can contain older content.
Start using X (Twitter) user tweets in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


