Step 1: Install the SDK
Step 2: Get Your Bearer Token
- Log in to the X Developer Portal.
 - Create or select an app.
 - Under “Keys and Tokens,” generate a Bearer Token (app-only auth).
 
Step 3: Write and Run Your First Script
Create a filequickstart.py:
Next Steps
- Explore Authentication to understand how to use Bearer Token (app-only) auth, OAuth 2.0 with PKCE (user context), and OAuth 1.0.
 - Learn about Pagination for use-cases where you want large number of results returned without worrying about making multiple API calls.
 - Dive into Streaming to learn how to work with real-time data.