xdevplatform/samples resource
Sample code for the X API v2 endpoints observed · 2026-08-28
Health v2 · maintenance only
65/100
- Activity 73
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2212
- days_rel: n/a
- days_push: 167
- n_releases_24m: 0
Adoption not part of the score
3200 stars · 1092 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A collection of working sample code for the X (Twitter) API v2, with examples in Python, JavaScript, Ruby, Java, and R covering posts, users, timelines, streams, and more. It includes LLM-friendly documentation files and a machine-readable endpoint catalog.
Use cases
- learn how to call the X API v2
- search recent posts with the twitter api
- post a tweet programmatically using oauth 2.0
- stream filtered tweets in real time
- upload media to X via the api
- manage followers, blocks, and mutes through the api
- example code for twitter api in ruby or java
When to choose
- you want copy-paste working examples for X API v2 endpoints
- you need samples across multiple languages like Python, JavaScript, Ruby, Java, or R
- you are building a bot or integration and need auth patterns (bearer token, OAuth 2.0 PKCE, OAuth 1.0a)
When to avoid
- you need a production-ready client library rather than example scripts
- you are integrating with a platform other than X/Twitter
- you need X API v1.1 legacy endpoint coverage
Facets
learning-resource · maturity active
http-client developer-tools sdk apis social-media developer-tools tutorials python jvm cross-platform x-api twitter-api code-samples oauth api-examples nodejs
2 sources
- readme: https://github.com/xdevplatform/samples · fetched 2026-08-28 · 8da822f65162
- homepage: https://docs.x.com/x-api/getting-started/about-x-api · fetched 2026-08-29 · 3ddd286016d1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| xdevplatform/samples | main | 65 |
For agents
markdown · JSON · MCP: product_card(name="xdevplatform/samples")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem