Notes
OAuth 1.0a vs OAuth 2.0 on the X API: which to use
How OAuth 1.0a User Context and OAuth 2.0 PKCE differ on the X API: credentials, token lifetime, scopes, and which one fits a CLI, bot or web client.
How to search recent posts with the X API
Use GET /2/tweets/search/recent: the 7-day window, query operators that cut noise, the 512-character limit, pagination with next_token, and read costs.
How to upload images and video with the X API v2
The X API v2 chunked media upload step by step: initialize, append, finalize, status checks, size limits, and attaching the media ID to a new post.
How X API pay-per-use pricing works for small tools
How X API credits are charged per request and per resource, what posts and reads cost as of November 2026, and how to keep a small tool's bill predictable.
What changed when X moved to API v2
The practical differences from v1.1: versioned endpoints, opt-in fields, and OAuth 2.0 PKCE, for anyone porting a client.
Building on the free tier without hitting a wall
What the X API free tier allows, the documented posting limits, and how to design a small tool that stays inside them.
Self-hosting an open-source X client
A checklist for running an open-source X client on your own machine: credentials, secrets, a reverse proxy, and staying current.