Twitter API

Programmatically analyze, learn from, and engage with the conversation on Twitter

The Twitter API provides the tools you need to contribute to, engage with, and analyze the conversation happening on Twitter.

Twitter API v2: Early Access

We’re building a new Twitter API with a modern and more sustainable foundation as well as an improved developer experience. Early Access is now available for the first few endpoints of v2, which enable you to listen to, analyze, and control the conversation on Twitter. Additional endpoints, features, and access levels will be released soon!

Twitter API v1.1

The Twitter API v1.1 was launched in 2012 and enables you to post, interact, and retrieve data for resources such as Tweets, Users, Direct Messages, Lists, Trends, Media, and Places. We are currently in the process of replacing this version with the Twitter API v2.

Interested in scaling your data needs? Read more about our packaging.

Explore the possibilities with our tutorials

Learn how to use different Twitter API endpoints for popular use cases.

Analyze past conversations

v2

Search for topics or keywords and analyze the related conversation.

Measure Tweet performance

v2

Build a simple tool to understand how users’ Tweets are performing in the world.

Listen for important events

v2

Listen for events that matter to you so that you can trigger appropriate actions or notifications.

Stream Tweets in realtime

v2

Surface and stream Tweets and conversations as they happen.

Explore a user's Tweets

v2

Retrieve and explore a user’s timeline of Tweets from the last seven days.

Analyze the sentiment of Tweets

v2

Learn how to analyze the sentiment of your Tweet timeline.

Tools to get you started

Go from zero to "Hello World" with the help of these resources, tools, and libraries. 

Client libraries

Check out our curated selection of Twitter-built and community-supported client libraries.

v2 Postman collection

We have built out a Postman collection for our v2 endpoints to help you explore the API using their visual client!

Command line tool

If you would rather work with our endpoints using a command line tool, twurl is built for you!

Need help?

Visit our support section, where you can find troubleshooting tips, contact details, live API status monitor, and other helpful information that can help you understand how to overcome any obstacle.

Help us build the next generation of the Twitter API:

Migrate to Twitter API v2

Interested in migrating your current integration to the new version of the Twitter API? Check out our migration hub for resources that will help you move to the Twitter API v2. You can also access migration guides for each endpoint listed in the new v2 endpoint sections.

Was this document helpful?

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.