Guides: working with Twitter/X data

Practical guides for working with Twitter/X data.

Run several X accounts from Claude and ChatGPT — An AI assistant calling the reply_to_tweet tool of the hosted MCP server with the account argument set to a support account, and getting the reply's ID back.

Guides

Run several X accounts from Claude and ChatGPT

Save all your X accounts once, then tell Claude or ChatGPT which one posts, replies, likes or sends a DM. Bulk import, choosing the account per prompt, keeping sessions working, cost.

5 min read

Post to X from Claude, ChatGPT and Cursor — An AI assistant calling the create_tweet tool of the hosted MCP server after the user approved the text, and getting the new tweet's ID back.

Guides

Post to X from Claude, ChatGPT and Cursor

Let Claude, ChatGPT, Claude Code or Cursor post, reply, like and answer DMs on your own X account through the hosted MCP server. Setup for each app, example prompts, cost and safety.

4 min read

Get tweets in Node.js and TypeScript, no X API — Endpoint mapping from twitter-api-v2 to TwittrAPI: client.v2.userTimeline becomes client.users.tweets; client.v2.search becomes client.search.tweets; public_metrics.like_count becomes counts.likes; meta.next_token becomes nextCursor.

Guides

Get tweets in Node.js and TypeScript without the X API (2026)

TypeScript code for Node 18+ that reads an X account's latest tweets and searches by keyword, with cursor pagination, retries and typed errors. Plain fetch and the twittrapi npm package, plus what changes if you come from twitter-api-v2.

5 min read

snscrape and twscrape alternative, no X accounts — The TwittrAPI # mark with data packets flowing into lines of JSON.

Guides

snscrape and twscrape alternative in 2026

snscrape no longer works for X and twscrape needs your own X accounts. Swap the scraper for two small Python functions over an API and keep the rest of your code.

4 min read

Export all replies to an X post as CSV — A CSV filling with one row per reply (time, username, likes, text) from a paged export of an X post's replies.

Guides

Export all replies to a Twitter/X post with Python

Download the replies to any X post into a CSV: load the thread, page through every reply, sort by newest or most liked, keep only direct answers and see who quoted or reposted it, with Python code and the cost.

4 min read

Twitter/X social listening with an API, for cents — A brand mention query with X search operators and a list of new matching tweets, polled on a schedule with since_id.

Guides

Twitter/X social listening with an API: build your own for cents

Track brand mentions, competitors and keywords on X without a monthly listening-tool subscription: write the queries, poll without duplicates, filter noise, score sentiment and send alerts, with Python code and what it costs.

4 min read

Twitter/X trending topics by country, with an API — A trends request for the United States returning the top topic with its search query and tweet volume.

Guides

Get Twitter/X trending topics by country with an API

Fetch the topics trending on X for the world, a country or a city: find the location ID, call the trends endpoint, log trends over time and pull the tweets behind a trend, with Python and Node.js examples.

4 min read

New tweets by webhook, from any X account — A signed webhook request carrying a new tweet event to the reader's server, answered with 204.

Guides

How to get new tweets from any X account by webhook

Watch public X accounts and receive every new tweet as a signed webhook, delivered within 60, 5 or 1 seconds after X makes the post available. Setup in Python, signature check, test event and catch-up after downtime.

4 min read

Export followers to CSV — Diagram of an account's followers as a network of nodes, paged from the followers endpoint into the rows of a CSV file.

Guides

Export Twitter/X followers to CSV

Download the follower list of any public X account to a CSV file with handle, name, bio, follower counts and join date. Python and Node.js scripts, costs and the limits X sets.

4 min read

Search Twitter/X without a developer account — A search box with X search operators and a list of matching tweets, paged with a cursor.

Guides

Search Twitter/X without a developer account

Run X searches from code without an X developer account or app: query operators, filters, date ranges, pagination and polling for new tweets, with Python and Node.js examples.

5 min read

Tweets in Google Sheets with Apps Script — A spreadsheet filling with tweets (date, text, likes, link) from an hourly Apps Script trigger.

Guides

Pull tweets into Google Sheets with Apps Script

An Apps Script that imports tweets from an X search or account into Google Sheets every hour, without duplicates and without an X developer account. Python and Node.js versions included.

5 min read

Make your first call in a minute.

No X developer account. Prepaid, no subscription, and the balance does not expire.

$0.065per 1,000 calls