
Twitter API v2
Twitter API v2
Twitter API v2 is the current recommended version — post tweets, query tweets, stream, user management. Since 2023 Elon's acquisition, prices increased dramatically with free tier restrictions.
v2 design is modern (GraphQL-style field selection)
Free tier extremely limited (100 posts/month, 1500 queries)
Create an app at developer.twitter.com for a Bearer token. GET https://api.twitter.com/2/tweets/search/recent?query=...
Uptime · 30-day window
About this API
Twitter API v2 is Twitter (now X)'s officially recommended current API. Design is more modern than v1.1: every endpoint supports fields parameter for on-demand field selection (saves network), unified pagination, clearer categorized endpoints. But actual use is heavily impacted by Elon Musk's 2022 acquisition policy changes — Twitter dramatically cut free access and raised prices across tiers in 2023. Free tier is 100 writes/month and 1500 reads (testing only), Basic at $100/month is small-scale, Pro starts at $5000/month, Enterprise is tens of thousands. Massive impact on products originally relying on Twitter API (social media management tools, sentiment monitoring, researchers) — many migrated to Mastodon, Bluesky, or stopped Twitter integration. If you must use Twitter, budget first.
What you can build
- 1Social media management tools
- 2Twitter bots (auto-tweet)
- 3Sentiment monitoring and analysis
- 4Content publishing automation
Strengths & limitations
Strengths
- v2 design is modern (GraphQL-style field selection)
- Officially supported, has OpenAPI spec
- Streaming for real-time
Limitations
- Free tier extremely limited (100 posts/month, 1500 queries)
- Basic tier $100/month for small scale only
- Pro/Enterprise tier thousands per month
Example request
curl https://developer.twitter.com/<endpoint>Getting started
Create an app at developer.twitter.com for a Bearer token. GET https://api.twitter.com/2/tweets/search/recent?query=...
FAQ
What can the free tier do?+
Basically only enough for hobby/personal bot to post a few tweets. Any serious app requires paid.
v2 or v1.1?+
v2 is now and future. v1.1 was mostly discontinued in 2023.
Technical details
- Auth type
- unknown
- Pricing
- unknown
- Protocols
- REST, WebSocket
- SDKs
- python, javascript, go, java, csharp
- Response time
- 127 ms
- Last health check
- 5/12/2026, 7:38:32 AM