Twitter libraries
Official Libraries
The Twitter teams maintain a small number of libraries that support the Premium and Enterprise APIs, as well as some SDKs for the Ads API.
JavaScript / Node.js
- Autohook - for the Premium Account Activity API
Python
- search-tweets-python - for Premium and Enterprise search
- twitter-python-ads-sdk - for the Ads API
Ruby
- search-tweets-ruby - for Premium and Enterprise search
- twitter-ruby-ads-sdk - for the Ads API
Community Libraries
These are some of the many community-supported libraries that cover the Twitter API, across several programming languages and platforms. The libraries listed here should support most features of the Standard API, unless otherwise noted - check with the authors for details.
If you have built a library that supports the Twitter APIs, feel free to let us know about it via our Developer Community forums, for possible addition to this page.
.NET
ASP
C++
Clojure
ColdFusion
Dart
Elixir
Erlang
Go
- twittergo by @kurrik
- go-twitter by @dghubble
- Anaconda by @chimeracoder
Haskell
Java
- JTwitter by @winterwellassoc
- Twitter4J by @yusuke
- twitter4j-ads by @sprinklr - for the Ads API
JavaScript / Node.js
- twitter-lite by @dandv and @peterpme
- twitter-ads by @FallenTech - for the Ads API
- twit by @tolga_tezel
Julia
Lua
Objective-C
Perl
PHP
- twitteroauth by @abraham
- codebird-php by @jublo - also supports the Ads API
- Twitter-API-PHP by @j7mbo
- phirehose by @fennb
- twitter-php by @DavidGrudl
- twitter-streaming-api by @spatie
- twitter-php-ads-sdk by @hborras - for the Ads API
PowerShell
Python
- python-twitter by the Python-Twitter Developers
- tweepy by the tweepy Developers
- twitter by the Python Twitter Tools developer team
- TwitterSearch by @ckoepp
- twython by @ryanmcgrath and @mikehelmick
- TwitterAPI by @geduldig - also supports the Ads API and Premium search
R
- rtweet by @kearnymw - also supports Premium search
- streamr by @p_barbera