Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>X JSON FeedNew to Visual Studio Code? Get it now.
X JSON Feed

X JSON Feed

Guillem Raja

|
3 installs
| (0) | Free
Browse your X (Twitter) feed as clean JSON or Markdown inside VS Code — no API key needed
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

𝕏 JSON Feed for VS Code

Browse your X (Twitter) timeline as clean JSON or Markdown — right inside your editor. No paid API key required.


Features

  • Home Timeline — fetch your latest feed in one click
  • User Tweets — pull tweets from any @username
  • Search — query by keyword, hashtag, or advanced syntax
  • Tweet Detail — get the full data of any tweet by ID
  • JSON or Markdown — choose your output format from the sidebar
  • Hide Retweets — filter out RTs with a single toggle
  • Pagination — "Load More" to keep scrolling through results
  • Secure — tokens stored in VS Code's OS keychain, never sent anywhere except x.com

Quick Start

1. Get your session cookies

  1. Open x.com and log in
  2. Open DevTools (F12) → Application → Cookies → https://x.com
  3. Copy the values of auth_token and ct0

2. Connect in VS Code

  1. Click the 𝕏 icon in the activity bar to open the sidebar
  2. Paste both cookie values and click Connect

That's it — hit Home Timeline and your feed appears as a new editor tab.


Sidebar Dashboard

Action Description
Home Timeline Your personalized feed
User Tweets Any public user's tweets
Search Keywords, hashtags, from:user, etc.
Tweet by ID Full detail for a single post
Format Switch between JSON and Markdown output
Hide Retweets Toggle to filter out retweets
Load More Paginate through results

Command Palette

All commands available via Ctrl+Shift+P / Cmd+Shift+P:

Command
X Feed: Fetch Home Timeline Fetch your home feed
X Feed: Fetch User Tweets Fetch a user's tweets
X Feed: Search Tweets Search X
X Feed: Get Tweet Detail Fetch a single tweet
X Feed: Login with Session Tokens Connect with cookies
X Feed: Logout / Clear Tokens Disconnect and clear stored tokens

Settings

Setting Default Description
xJsonFeed.tweetCount 20 Tweets per request (1–100)
xJsonFeed.outputFormat json Output format: json or markdown
xJsonFeed.hideRetweets false Hide retweets from results
xJsonFeed.autoRefreshSeconds 0 Auto-refresh interval in seconds (0 = off)

How It Works

VS Code Extension  ──cookies──▶  x.com GraphQL API  ──▶  Same API the web app uses
                   ◀──JSON────                       ◀──

The extension makes the same requests your browser makes when you visit x.com — using the same public bearer token, GraphQL endpoints, and your session cookies.


Disclaimer

  • This extension uses X's internal/undocumented API — the same one their web app uses
  • It may break at any time if X changes their endpoints or GraphQL query IDs
  • Using session cookies outside the browser may violate X's Terms of Service — use at your own risk
  • Your tokens are stored locally in VS Code's SecretStorage (OS keychain) and never leave your machine

Updating GraphQL Query IDs

If fetches start failing with non-auth errors, X may have rotated their query IDs:

  1. Open x.com → DevTools → Network → filter graphql
  2. Browse around (home, profiles, search) and note the IDs in the URLs:
    https://x.com/i/api/graphql/{QUERY_ID}/{OperationName}
    
  3. Update GRAPHQL_OPS in src/xClient.js

License

MIT


If you find this useful, buy me a coffee ☕

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft