# Twitter API v2 — card for AI agents

Strongly-typed Node.js client for Twitter API v1.1 and v2.

Category: SDKs for hosted services · npm package `twitter-api-v2` · latest version 1.31.0 (checked 2026-11-01)
Install: `npm install twitter-api-v2`
License: Apache-2.0 (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 44.2 (#2637 of all tools, 137 of 287 in its category)
- Used in 4 public projects set up for AI coding agents (0.1%)
- Downloads last week: 493,691 (as of 2026-11-24), +27.9% over 4 weeks
- GitHub stars: 1,555 (as of 2026-11-24)
- Last push: 2026-10-25

## Often used with
dotenv 73.3%, Axios 46.7%, date-fns 40.0%, Zod 62.2%, uuid 37.8%, Express 37.8%

## Links
- AgentGid page: https://agentgid.com/tools/twitter-api-v2/
- Homepage: https://github.com/plhery/node-twitter-api-v2#readme
- Repository: https://github.com/plhery/node-twitter-api-v2

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
