# plhery/node-twitter-api-v2

Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.

Repository: https://github.com/plhery/node-twitter-api-v2
Canonical: https://ross.abutalabs.com/products/node-twitter-api-v2
Homepage: https://www.npmjs.com/package/twitter-api-v2
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: twitter-api, npm-package, streaming-api
Last push: 2026-08-04T19:54:41+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 96, longevity 100
- inputs: {"age_days": 2184, "days_push": 29, "days_rel": 29, "gap_med": 18.0, "n_releases_24m": 21}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1558, forks 214 (observed 2026-08-28T04:05:03.396702+00:00)

## What it is
A strongly typed, dependency-free Node.js client for the Twitter API v1.1 and v2, with bundled TypeScript types for requests and responses. It supports streaming, pagination helpers, OAuth2 user-context authentication, and media upload helpers.

## Use cases
- post tweets from a node.js app
- fetch user timelines with the twitter api v2
- stream tweets in real time
- upload images and videos to twitter
- authenticate users with twitter oauth2
- paginate through twitter api results
- build a twitter bot in typescript

## When to choose
- you need a lightweight, zero-dependency twitter client for node.js
- you want full TypeScript typings for twitter api requests and responses
- you need both v1.1 and v2 endpoint support including media upload and streaming

## When to avoid
- you need a client for a platform other than twitter/x
- you are not using node.js or a javascript runtime
- you require active feature development given twitter api policy changes and the project's maintenance stance

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, sdk, streaming
- domain: apis, social-media, developer-tools, web-development
- platform: -
- tags: twitter-api, twitter-api-v2, oauth, media-upload, pagination, zero-dependencies, nodejs, typescript

## Member repositories
- plhery/node-twitter-api-v2 (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:03.396702+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:29:55.198458+00:00, confidence not recorded.
  - readme: https://github.com/plhery/node-twitter-api-v2 (fetched 2026-08-28T04:05:03.396702+00:00, sha 5f9a5a5d0cfb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
