Twitter API v2
Strongly-typed Node.js client for Twitter API v1.1 and v2.
SDKs for hosted services npm Apache-2.0
Used in agent projects
21
0.2% of 12,697 public repos built with AI coding agents
Rank in sdks for hosted services
#39 of 44
by use in those projects
Downloads
406K
npm, last 7 days, twitter-api-v2
GitHub stars
1,555
last push Aug 4, 2026
How Twitter API v2 is used
Twitter API v2 is a dependency in 21 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #39 of 44 in sdks for hosted services. The most used alternative there is Supabase JS. Projects that use it most often also use dotenv (71.4%), Solana Web3.js (66.7%), Axios (61.9%).
Often used with Twitter API v2
| dotenv | 71.4% of Twitter API v2 projects · 4.5× more than average |
|---|---|
| Solana Web3.js | 66.7% of Twitter API v2 projects · 4.0× more than average |
| Axios | 61.9% of Twitter API v2 projects · 6.2× more than average |
| Solana SPL Token | 61.9% of Twitter API v2 projects · 8.5× more than average |
| OpenAI | 28.6% of Twitter API v2 projects · 10.0× more than average |
| ws | 28.6% of Twitter API v2 projects · 12.6× more than average |
| node-cron | 28.6% of Twitter API v2 projects · 49.0× more than average |
| Metaplex | 28.6% of Twitter API v2 projects · 12.5× more than average |
By coding agent
| Claude Code | 0.1% of projects set up for it |
|---|
Share of public repos configured for each agent that list Twitter API v2 as a dependency.
Install
| Package | npm install twitter-api-v2 |
|---|---|
| Main stacks | TypeScript / JavaScript (14), Next.js (5), Python (2) |
| Example projects | nirholas/three.ws, ask-the-hive/the-hive, crazyrabbitLTC/mcp-twitter-server, gaohongxiang/web3-script, soldrift/solana-twitter-sniper |
Alternatives to Twitter API v2
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Supabase JS npm Isomorphic JavaScript SDK for Supabase backend-as-a-service. |
927 (7.3%) | 30.5M | 4,574 | MIT |
| Supabase SSR npm Supabase client library optimized for server-side rendering frameworks. |
332 (2.6%) | 8.1M | 210 | MIT |
| Resend npm Node.js SDK for Resend email API to send transactional emails. |
235 (1.9%) | 12.9M | 964 | MIT |
| Firebase npm Google's platform SDK for realtime database, auth, hosting and serverless functions. |
224 (1.8%) | 10.6M | 5,149 | Apache-2.0 |
| AWS SDK for JavaScript (S3) npm Official AWS SDK for uploading, downloading and managing S3 objects. |
200 (1.6%) | 49.4M | 3,673 | Apache-2.0 |
| Stripe npm Official SDK for integrating Stripe payments and billing into applications. |
197 (1.6%) | 23.5M | 4,523 | MIT |
| EmailJS npm Official browser SDK for sending emails directly from client-side JavaScript without a backend. |
189 (1.5%) | 122K | 143 | BSD-3-Clause |
| Supabase CLI npm Command-line tool for managing Supabase projects and databases locally. |
131 (1.0%) | 5.6M | 2,430 | MIT |