Awesome
Awesome Modern Twitter API
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 🙌
Contents
Libraries
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.
C# / .NET
- 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.
Dart / Flutter
- twitter-api-v2 - Library for Twitter API v2 written in Dart and Flutter.
Deno
- twi - Twitter API client for Deno ported from twitter-api-typescript-sdk.
Go
- 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.
Java
- 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.
JavaScript (Node.js) / TypeScript
- 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.
Kotlin
- 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.
PHP
- 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.
PowerShell
- BluebirdPS - A Twitter Automation Client for PowerShell 7.
Python
- 2wttr - Requires Academic Access.
- compliant-client
- python-twitter
- PyTweet
- search-tweets-python
- spacy
- tweepy
- tweetkit
- tweetple
- twitivity
- twitter-stream.py
- TwitterAPI
- twitterapiv2
- twitterati
R
Ruby
- 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.
Rust
- rs_twitter_request
- twitter-v2-rs - Rust bindings for Twitter API v2.
Swift
Resources
Community
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.
Documentation
- 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.
Sample apps
Code collections
- 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
Individual samples
- Bookmark Search - An app using OAuth 2.0 and the Bookmarks API that can be remixed on Glitch.
Tutorials
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
Tools
API testing
- Postman Collection
- Twitter API Tools
- Twitter OAuth Playground - Test any of the Twitter API endpoints from a web interface.
- Twitter Swagger UI
No-code
- twarc
- Tweet Downloader - Requires Academic Access.
- Twitter Data Toolkit