A curated list of awesome libraries, SDKs, software and resources for the modern (post-v1.1) Twitter API.
The Twitter API is the programming interface that enables developers like you to build apps and tools on top of the Twitter Developer Platform. Version 2 of the API represented a complete rewrite from the legacy (v1.1) platform, with new endpoints, data formats, and semantics. This list only includes content that is directly relevant to the modern API.
This list is community-contributed, and it is not owned by Twitter. The list can only be even more awesome, with your help! Feel free to contribute, or add to the discussion around items that could be included in the future. Spotted a dead link, typo, or other mistake? Please raise an issue 🙌
API libraries in a range of programming languages. This list is not intended to be comprehensive, but aims to include awesome libraries and SDKs that cover a solid range of the API features and endpoints. No order of priority or preference is intended, both first-party and third-party libraries are included.
- CoreTweet - Yet Another .NET Twitter Library.
- LinqToTwitter - LINQ Provider for the Twitter API (C# Twitter Library).
- SocialOpinion - APIs written in C# that connect to the Twitter API.
- Tweetinvi - Tweetinvi, an intuitive Twitter C# library.
- TwitterSharp - C# wrapper around Twitter API V2.
- twitter-api-v2 - Library for Twitter API v2 written in Dart and Flutter.
- twi - Twitter API client for Deno ported from twitter-api-typescript-sdk.
- ctw - Twitter v2 API.
- go-twitter - A Go library for Twitter v2 API integration.
- gotwi - A library for using the Twitter API v2 in the Go language.
- gotwtr - A library that provides Twitter v2 API.
- twitter-stream - A Go wrapper for Twitter's V2 Filtered Stream API.
- twitter - A Go client for the Twitter v2 API.
- JTW - Twitter v2 API Client for Java that can be complied to Objective-C by J2ObjC.
- twitter-api-java-sdk - A Java SDK for the Twitter API (official).
- twitter-compliance - Multi-module Jakarta EE application for syncing compliance events from Twitter.
- twitter4j-v2 - A simple wrapper for Twitter API v2 that is designed to be used with Twitter4J.
- twittered - Twitter API client for Java developers.
- node-twitter-api-v2 - Strongly typed, full-featured, Twitter API v2 client for Node.js.
- tweet-json-to-html - Converts Twitter API v2 Tweet JSON object into HTML format.
- twitter-api-typescript-sdk - A TypeScript SDK for the Twitter API.
- twitter-types - Type definitions for Twitter API.
- twitter.js - A Node.js and TypeScript library for interacting with Twitter API v2.
- KTweet - A Kotlin Library that allows you to consume the Twitter API v2.
- Tweedle - A Kotlin-based Android library around the Twitter v2 API.
- TwitterApiKit - Twitter's API v2 Objectified. This library is supported on Gradle, Maven, Java, Kotlin, and Android projects.
- bird-elephant - PHP library for Twitter API v2.
- twifer - Simple PHP Library for Twitter API.
- twitter - Twitter API for Laravel 5.5+, 6.x, 7.x & 8.x.
- Twitter Stream API - Consume the Twitter Stream API in real-time.
- Twitter-api-v2-php - PHP package providing easy and fast access to Twitter API V2.
- Twitter-ultimate-php - A complete PHP Wrapper for the Twitter v2 API.
- twitteroauth - PHP library for use with the Twitter OAuth REST API.
- BluebirdPS - A Twitter Automation Client for PowerShell 7.
- 2wttr - Requires Academic Access.
- compliant-client
- python-twitter
- PyTweet
- search-tweets-python
- spacy
- tweepy
- tweetkit
- tweetple
- twitivity
- twitter-stream.py
- TwitterAPI
- twitterapiv2
- twitterati
- omniauth-twitter2 - OmniAuth strategy for authenticating with Twitter OAuth2.
- search-tweets-ruby - Ruby client for Twitter API v2 search endpoints.
- tweetkit - Twitter v2 API client for Ruby.
- twitter_oauth2 - Twitter OAuth 2.0 Client Library in Ruby.
- twttr - Twitter API v2 Interface.
- rs_twitter_request
- twitter-v2-rs - Rust bindings for Twitter API v2.
Forums, discussion and Q&A channels.
- Developer Forums - Twitter-owned discussion forums for the API and developer platform.
- Questions tagged
[twitter]
on Stack Overflow - Stack Overflow topic for Twitter questions. [twitter-api-v2]
on LibHunt - Code projects using Twitter API v2 on LibHunt.
- API version badges - Useful API version support labels for Markdown or other documentation.
- OpenAPI Specification - The core API specification document, in OpenAPI format.
- Tweet capacity quick reference - A short summary of API data volumes.
- Twitter Developer Website - The official Twitter API documentation.
- Twitter page on Glitch - Remixable examples on Glitch
- Twitter page on Replit - Samples and templates on Replit
- TwitterDev org on GitHub - Source code repositories on GitHub
- Bookmark Search - An app using OAuth 2.0 and the Bookmarks API that can be remixed on Glitch.
Guides, blog posts, tutorials, videos, howtos on using the Twitter API.
- How to search for Tweets about various 'Topics' using the Twitter API v2
- Introduction to Twitter Data Processing and Storage on AWS
- Twitter API v2 Tips and Tricks
- Understanding the entire conversation around a Tweet with v2
- Postman Collection
- Twitter API Tools
- Twitter OAuth Playground - Test any of the Twitter API endpoints from a web interface.
- Twitter Swagger UI
- twarc
- Tweet Downloader - Requires Academic Access.
- Twitter Data Toolkit