Listen & analyze

Understand the public conversation


With the Twitter API, you can tap into the public conversation to understand what's happening, discover insights, listen for events, and more.

What does it mean to listen and analyze?

Here are some ways developers, researchers, and businesses listen and analyze with the Twitter API to better understand the world around us:

Stream Tweets in real-time

Surface and stream Tweets and conversations as they happen.

Analyze past conversations

Search for topics or keywords and analyze the related conversation.

Measure Tweet performance

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

Listen for important events

Listen for events that matter to you so that you can trigger appropriate actions or notifications. Build a simple tool to understand how users’ Tweets are performing in the world.

Explore Tweets from a specific account

Retrieve and explore a user’s timeline of Tweets and replies.

Explore and get started with tutorials for some of the most common use cases.

API functionality to listen and analyze

The latest generation of our Twitter API includes a number of endpoints and features designed to help you understand the global conversation on Twitter.

Query the most recent seven days of public Tweets to analyze and understand past events.

Filter the complete stream of realtime public Tweets to listen to what's happening or derive insights from the conversation.

Stream a sample of new Tweets as they are published, across ~1% of all public Tweets in real-time to quickly assess what's trending or what people think about a topic.

Look up Tweets by ID to get information about Tweets to help you understand Tweet performance, whether the Tweet is part of a broader conversation thread, and more.

Look up a user or group of users by name or ID, and get up-to-date fields like follower count and the ID of their pinned tweet.

Return a list of users who follow a particular person, or the users a particular person follows using user ID.

Return a collection of Tweets posted by a user.

Return a collection of Tweets mentioning a user.

Topic labels applied to Tweets based on Twitter's ML models to make it easy to identify and discover Tweets you care about.

Tweet metrics included within the Tweet object so that you can quickly understand the performance and engagement of Tweets.

A field to help you understand and rebuild the full conversation around a Tweet.

Developer spotlights

  • Combat hate speech
  • Forecasting in financial markets
  • Adapting to climate change
HateLab
 

Created by researchers at Cardiff University, the Hatelab Dashboard draws on the Twitter API to monitor conversations at scale and apply the latest techniques in machine learning to classify toxic speech. The lab’s partner organizations use this intelligence to deploy social media content that helps defuse hate speech and promote healthier conversations. Hatelab’s novel approach to hate speech detection earned them 1st place in the SIGLEX and Microsoft sponsored SemEval competition in 2019.

SMA
 

See how Social Market Analytics, a leader in unstructured financial data, uses derived analytics from Twitter data to forecast more effectively in volatile markets.

UC Davis and Max Planck Institute for Human Development

How are people adapting to extreme weather and climate change? Do they get used to it over time? How quickly do people normalize weather changes and does that play into how seriously they take climate change? These were the driving questions that Frances Moore, Assistant Professor in the Department of Environmental Science and Policy at University of California, Davis, and Nick Obradovich, Senior Research Scientist and Principal Investigator at the Max Planck Institute for Human Development, set out to ask. Learn how they used Twitter data to develop insights on human adaptation to climate change. 

Next Steps

Are you an academic researcher? A business
Learn about the solutions and resources designed for you.