> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-oauth-2-ios.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

## X-built v2 tools and libraries

X maintains a set of official libraries and SDKs, listed here.

We also include a list of [community-supported libraries](#community-libraries) lower on this page.

[Explore XDev code on GitHub](https://github.com/xdevplatform)
[Find X samples on Glitch](https://glitch.com/@twitter)
[Find X samples on Replit](https://replit.com/@twitter)

***

## Community tools and libraries for v2

The libraries listed here have been built by members of the developer community. Note that they may be at different stages of API coverage.

If you've built your own X API library or useful tool, please [let us know](https://devcommunity.x.com/c/libraries-and-sdks/63), and we'll add it to this list to help others to find it. We also have some [version badges](https://twbadges.glitch.me/) you can borrow, to use in your own README files.

Looking for inspiration? You can browse and search in the [X](https://github.com/topics/twitter?o=desc\&s=updated) and [X-api-v2](https://github.com/topics/twitter-api-v2?o=desc\&s=updated) topics on GitHub to find helpful code examples from other developers.

**Jump to:** [C# / .NET](#csharp), [Dart / Flutter](#dart), [Go](#go), [Java](#java), [JavaScript (Node.JS) / TypeScript](#nodejs), [Kotlin](#kotlin), [PHP](#php), [PowerShell](#powershell), [Python](#python), [R](#r), [Ruby](#ruby), [Rust](#rust), [Swift](#swift)

### C# / .NET

* [**CoreTweet**](https://github.com/CoreTweet/CoreTweet) Yet Another .NET X Library
* [**LinqToTwitter**](https://github.com/JoeMayo/LinqToTwitter) LINQ Provider for the X API
* [**SocialOpinion**](https://github.com/jamiemaguiredotnet/SocialOpinion-Public) APIs written in C# that connect to the X API
* [**Tweetinvi**](https://github.com/linvi/tweetinvi) an intuitive X C# library
* [**TwitterSharp**](https://github.com/Xwilarg/TwitterSharp) C# wrapper around X API V2

### Go

* [**ctw**](https://github.com/0dayfall/ctw) a library for the X API
* [**go-twitter**](https://github.com/g8rswimmer/go-twitter) a Go library for X v2 API integration.
* [**gotwi**](https://github.com/michimani/gotwi) a library for the X API v2 in Go
* [**gotwtr**](https://github.com/sivchari/gotwtr) a library for the X API
* [**twitter-stream**](https://github.com/Fallenstedt/twitter-stream) a Go wrapper for X's V2 Filtered Stream API
* [**twitter**](https://github.com/creachadair/twitter) a Go client for the X API

### java

* [**twittered**](https://github.com/redouane59/twittered) X API client for Java developers
* [**twitter4j-v2**](https://github.com/takke/twitter4j-v2) a simple wrapper for X API v2 that is designed to be used with Twitter4J
* [**twitter-compliance**](https://github.com/UCL/twitter-compliance) multi-module Jakarta EE application for syncing compliance events from X
* [**JTW**](https://github.com/uakihir0/jtw) X V2 API client library for Java

### JavaScript (Node.JS) / TypeScript

* [**node-twitter-api-v2**](https://github.com/PLhery/node-twitter-api-v2) strongly typed, full-featured, light, versatile yet powerful X API client for Node.js
* [**twitter.js**](https://github.com/twitterjs/twitter.js) an object-oriented Node.js and TypeScript library for interacting with X API v2
* [**twitter-types**](https://github.com/twitterjs/twitter-types) type definitions for the X API
* [**twitter-v2**](https://github.com/HunterLarco/twitter-v2) An asynchronous client library for the X APIs
* [**tweet-json-to-html**](https://github.com/wdl/tweet-json-to-html) converts X API v2 Post JSON objects into HTML format

### Kotlin

* [**KTweet**](https://github.com/ChromasIV/KTweet) a Kotlin library that allows you to consume the X API v2.
* [**Tweedle**](https://github.com/tyczj/Tweedle) a Kotlin-based Android library around the X v2 API
* [**TwitterApiKit**](https://github.com/kojofosu/TwitterApiKit) saves you time creating data objects to access X's API v2. This library is supported on Java, Kotlin, and Android

### PHP

* [**bird-elephant**](https://github.com/danieldevine/bird-elephant) PHP client library for the X API v2 endpoints
* [**twifer**](https://github.com/ferrysyahrinal/twifer) Simple PHP Library for X API Standard v1.1 & X API v2
* [**twitter-api-v2-php**](https://github.com/noweh/twitter-api-v2-php) PHP package providing easy and fast access to X API V2
* [**twitteroauth**](https://github.com/abraham/twitteroauth) PHP library for use with the X API
* [**twitter-ultimate-php**](https://github.com/utxo-one/twitter-ultimate-php) PHP Wrapper for the X v2 API
* [**Twitter Stream API**](https://github.com/redwebcreation/twitter-stream-api) consume the X Stream API v2 in real-time

### PowerShell

* [**BluebirdPS**](https://github.com/thedavecarroll/BluebirdPS) a X Automation Client for PowerShell 7. Post, Retweet, send Direct Messages, manage lists, and more

### Python

* [**tweepy**](https://github.com/tweepy/tweepy) X for Python
* [**twarc**](https://twarc-project.readthedocs.io/en/latest/twarc2_en_us/) a command line tool and Python library for collecting JSON data via the X API, with a command (twarc2) for working with the v2 API
* [**python-twitter**](https://github.com/sns-sdks/python-twitter) a simple Python wrapper for X API v2
* [**TwitterAPI**](https://github.com/geduldig/TwitterAPI) minimal Python wrapper for X's APIs
* [**twitterati**](https://github.com/JeannieDaniel/twitterati) Wrapper for X Developer API V2
* [**twitter-stream.py**](https://github.com/twitivity/twitter-stream.py) a Python API client for X API v2
* [**twitivity**](https://github.com/twitivity/twitivity) Account Activity API client library for Python
* [**PyTweet**](https://github.com/TheFarGG/PyTweet) a synchronous Python wrapper for the X API
* [**tweetkit**](https://github.com/ysenarath/tweetkit) a Python Client for the X API for Academic Research
* [**tweetple**](https://github.com/dapivei/tweetple) a wrapper to stream information from the Full-Archive Search Endpoint, for Academic Research
* [**2wttr**](https://github.com/simonlindgren/2wttr) get Posts from the v2 X API, for Academic Research

### R

* [**academictwitteR**](https://github.com/cjbarrie/academictwitteR) R package to query the X Academic Research Product Track v2 API endpoint
* [**RTwitterV2**](https://github.com/MaelKubli/RTwitterV2) R functions for X's v2 API

### Ruby

* [**omniauth-twitter2**](https://github.com/unasuke/omniauth-twitter2) OmniAuth strategy for authenticating with X OAuth2
* [**tweetkit**](https://github.com/julianfssen/tweetkit) X v2 API client for Ruby
* [**twitter\_oauth2**](https://github.com/nov/twitter_oauth2) X OAuth 2.0 Client Library in Ruby

### Rust

* [**twitter-v2**](https://github.com/jpopesculian/twitter-v2-rs) Rust bindings for X API v2

### Swift

* [**Twift**](https://github.com/daneden/Twift/) An async Swift library for the X v2 API
* [**TwitterAPIKit**](https://github.com/mironal/TwitterAPIKit) Swift library for the X API v1 and v2

***

## Official v1.1 tools and libraries

The X teams maintain a set of official libraries and SDKs, listed here.\
We also include a list of [community-supported libraries](#community-libraries) lower on this page.

| Language             | Clients                                                                                                                                                | SDKs / Libraries | Tools                                                                                                                   |
| :------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------- | :---------------------------------------------------------------------------------------------------------------------- |
| JavaScript / Node.js | --                                                                                                                                                     | --               | [Autohook](https://www.npmjs.com/package/twitter-autohook) - Get started with the **Premium v1.1** Account Activity API |
| Python               | [search-tweets-python](https://github.com/xdevplatform/search-tweets-python) - A client supporting **v2**, **Premium v1.1**, and **Enterprise** search | --               | --                                                                                                                      |
| Ruby                 | [search-tweets-ruby](https://github.com/sferik/twitter) - A client supporting **v2**, **Premium v1.1**, and **Enterprise** search                      | --               | --                                                                                                                      |

\--

## Additional official resources

The tools below can also be useful when working with the X API.\
Looking for even more code? You can find examples on our [GitHub](https://github.com/xdevplatform) and on [Glitch](https://glitch.com/@twitter).

| Tool / Library        | Description                                                                                                                                                                               |
| :-------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| twemoji               | Twitter’s free, open source emoji character set, including a JavaScript library for cross-platform support.                                                                               |
| twitter-text          | A collection of libraries to standardize parsing and tokenization of Tweet text. Available for Java, JavaScript, Objective-C & Ruby. [Learn more about counting characters in Tweets.](#) |
| OpenAPI specification | Use this specification to exercise the **v2** API with tools like [Postman](#) or [Insomnia](#).                                                                                          |
| twurl                 | A command-line tool (CLI) for interacting with the Twitter API, including OAuth authentication. Requires a Ruby runtime.                                                                  |
| Postman collection    | Explore the Postman collection to work with X API endpoints for testing and development.                                                                                                  |

***

## Community tools and libraries

These are some of the many community-supported libraries that cover the X API across several programming languages and platforms. Note that these resources may not all have been tested by the Twitter team.

The libraries listed here should implement most features of the Standard API **v1.1**, unless otherwise noted—check with the authors for details and additional support.\
If you have built a library that supports X API **v2**, please let us know about it via our [community forums](https://devcommunity.x.com/c/libraries-and-sdks/63) for possible addition to this page. You can also use the forums to report any changes to these listings.

If you're missing a library or tool for your favorite programming language, let us know via the [feedback platform](https://twitterdevfeedback.uservoice.com/), where you can also vote for ideas or get inspired to build and submit something new.
