Tools and libraries

The Twitter teams maintain a set of official libraries and SDKs, listed here.

Can't find what you're looking for? Let us know or vote on existing requests via our feedback platform

To see tools and libraries for the Twitter Ads API or Twitter for Websites, please visit their respective pages:


Official tools and libraries

JavaScript / Node.js

Clients

SDKs / Libraries

Tools

Autohook

Get started with the Premium v1.1 Account Activity API

Python

Clients

SDKs / Libraries

Tools

search-tweets-python

A client supporting v2, Premium v1.1 and Enterprise v1.1 search

Ruby

Clients

SDKs / Libraries

Tools

search-tweets-ruby

A client supporting v2, Premium v1.1 and Enterprise v1.1 search

Additional official resources

The tools below can also be useful when working with the Twitter API.

Looking for even more code? You can find examples on our GitHub, and on Glitch.

OpenAPI specification

Use this specification to exercise the v2 API with tools like Postman or Insomnia.

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.

twurl

A command-line tool (CLI) for interacting with the Twitter API, including OAuth authentication.

Requires a Ruby runtime.

Postman collection 

Explore the v2 API endpoints using Postman, the visual REST client.

Community tools and libraries

These are some of the many community-supported libraries that cover the Twitter 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 for additional support.

If you have built a library that supports Twitter API v2, please let us know about it via our community forums, for possible addition to this page. You can also use the forums to let us know about any changes to the listings on this page.

If you're missing a library or tool for your favorite programming language, let us know via the feedback platform, where you can also vote for ideas, or get inspired to build and submit something new.

.NET

(ASP, C#, VB)

Clients

SDKs / Libraries

Tools

C++

Clients

SDKs / Libraries

Tools

Clojure

Clients

SDKs / Libraries

Tools

ColdFusion

Clients

SDKs / Libraries

Tools

Dart

Clients

SDKs / Libraries

Tools

Elixir

Clients

SDKs / Libraries

Tools

Erlang

Clients

SDKs / Libraries

Tools

Go

Clients

SDKs / Libraries

Tools

tw-oob-oauth-cli

A small PIN-based OAuth tool to retrieve tokens, by @smaeda-ks

twty

A command-line client tool written in Go, by @mattn

Haskell

Clients

SDKs / Libraries

Tools

Java

Clients

SDKs / Libraries

Tools

twitter-client

by @redouanebali (Premium v1.1, Labs, preliminary v2 support)

JavaScript / Node.js

Clients

SDKs / Libraries

Tools

twittersignin

A wrapper around Twit to simplify signin, by @shalvah

Julia

Clients

SDKs / Libraries

Tools

Kotlin

Clients

SDKs / Libraries

Tools

Tweedle

by @tyczj (v2 in alpha)

Lua

Clients

SDKs / Libraries

Tools

Objective-C

Clients

SDKs / Libraries

Tools

Perl

Clients

SDKs / Libraries

Tools

PHP

Clients

SDKs / Libraries

Tools

PowerShell

Clients

SDKs / Libraries

Tools

Python

Clients

SDKs / Libraries

Tools

tweetget

by @gnascimento. A search client library for Premium v1.1.

TwitterAPI

by @geduldig. Includes v2, Premium v1.1 and Labs support.

tweepy

by the tweepy Developers. Includes Premium v1.1 support.

twitter

by the Python Twitter Tools developer team. Includes a CLI, IRC tools, and minimalist API library for v1.1

R

Clients

SDKs / Libraries

Tools

rtweet

by @kearnymw. Includes Premium v1.1 search support.

rtweetXtras

Helper functions for rTweet, by @Arf9999

tweetrmd

Easily embed Tweets into R Markdown, by @gadenbuie

Ruby

Clients

SDKs / Libraries

Tools

t

A command-line tool by @sferik

twitter-labs-api

by @tomholford (supports Labs)

Rust

Clients

SDKs / Libraries

Tools

Scala

Clients

SDKs / Libraries

Tools

Shell script (Bash)

Clients

SDKs / Libraries

Tools

tweet.sh

A simple Twitter client by @piroor. Requires additional command-line tools.

Swift

Clients

SDKs / Libraries

Tools

TypeScript

Clients

SDKs / Libraries

Tools

twitter-d

TypeScript definitions for v1.1 Twitter API objects, by @Abraham

Was this document helpful?

Thank you

Thank you for the feedback. We’re really glad we could help!

Thank you for the feedback. How could we improve this document?

Thank you for the feedback. Your comments will help us improve our documents in the future.