Base URL
Authentication
All requests require an API key. Three methods are supported:Your First Request
Get a user’s profile:Get a Tweet
text— the complete post text. Long “note tweets” return the full body (not truncated at ~140 chars); for retweets it is rebuilt asRT @user: <full original text>.media— photos/videos/GIFs (type:photo|video|animated_gif). For video/GIF,urlis the thumbnail andvideo_urlholds the highest-bitrate mp4;[]when there’s no media.card— link/summary preview (url,title,description,image,domain) ornull. Thetitleoften carries the key info for link-only posts.article— X long-form article{ title, text }ornull.entities— parsedmentions[],hashtags[],cashtags[](raw symbols), and expandedurls[].quoted_tweet/retweeted_tweet— the embedded quoted / original tweet (same shape, one level deep) ornull.
Pagination
List endpoints return paginated results. Passcursor from the previous response to get the next page:
has_next_page is false or next_cursor is null, there are no more pages.
Error Responses
Next Steps
REST API Reference
Browse all endpoints with interactive playground
WebSocket Guide
Set up real-time event subscriptions