GitHub repository
Source code, issues, and releases.
Installation
Quick start
Key features
| Feature | Description |
|---|---|
| OAuth support | Bearer Token, OAuth 2.0 with PKCE, and OAuth 1.0a |
| Automatic pagination | Iterate through results without manual next_token handling |
| Streaming | Real-time data via persistent connections (filtered stream, etc.) |
| Full API coverage | All X API v2 endpoints — search, timelines, filtered stream, and more |
Authentication
- Bearer Token
- OAuth 2.0
- OAuth 1.0a
Common methods
| Category | Method |
|---|---|
| Posts | client.posts.search_recent() |
| Users | client.users.get_me() |
| Spaces | client.spaces.get() |
| Lists | client.lists.get() |
| DMs | client.direct_messages.get() |
Learn more
Installation
Development install, prerequisites, and verification.
Quickstart
Step-by-step first request walkthrough.
Authentication
Detailed guide for all auth methods.
Pagination
Automatic pagination and iterators.
Streaming
Real-time data via filtered stream.
API Reference
Complete client and model reference.