# Twitter4J/Twitter4J

Twitter4J is an open-source Java library for the Twitter API.

Repository: https://github.com/Twitter4J/Twitter4J
Canonical: https://ross.abutalabs.com/products/twitter4j
Homepage: http://twitter4j.org/
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2024-08-17T18:04:54+00:00

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

## Adoption (not part of the score)
Stars 2809, forks 1185 (observed 2026-08-28T04:07:23.636973+00:00)

## What it is
Twitter4J (now X4J) is a 100% pure Java library for the Twitter/X API with zero external dependencies and built-in OAuth support. It provides full Twitter API v1.1 coverage via a clean interface-based API usable from Java 8+.

## Use cases
- post tweets from a java application
- read a user's twitter timeline in java
- search tweets programmatically with java
- authenticate with the twitter api using oauth in java
- build a twitter bot in java
- send direct messages via the twitter api

## When to choose
- you need a mature, dependency-free Java client for the Twitter/X v1.1 API
- you want built-in OAuth handling without extra jars
- you're on Java 8+ and want Maven/Gradle integration with Java module support

## When to avoid
- you need newer Twitter API v2 features that the library may not cover
- you're not working on the JVM
- you need a client for a different social platform

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, auth, sdk
- domain: apis, social-media, developer-tools
- platform: jvm, cross-platform
- tags: twitter-api, x-api, oauth, zero-dependency, social-media-api

## Member repositories
- Twitter4J/Twitter4J (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:23.636973+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-30T08:14:24.517980+00:00, confidence not recorded.
  - readme: https://github.com/Twitter4J/Twitter4J (fetched 2026-08-28T04:07:23.636973+00:00, sha 3fa6cf31ce09)
  - homepage: http://twitter4j.org/ (fetched 2026-08-29T09:54:09.372351+00:00, sha f74c7f5daed0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
