Resources for researchers

Tools and guides to support your work

Learn the fundamentals of using Twitter data for academic research with our get-started guides or take your current use of our APIs further with tutorials, articles, code samples, and third-party tools.

Guides for getting started

These guides give you the foundational knowledge and skills required to use the Twitter API for research projects. Start here if you are new to Twitter data or using APIs.

See the criteria and information needed to complete the Academic Research product track application.

This guide walks through the new operators available to filter Step-by-step guide for beginner developers to set up your environment and run your first program.

Learn the new payload structure, individual fields, and relevance to academic research.

See the new operators available to filter Twitter data, and see query design considerations for getting the right data.

Learn how to explore a user’s Tweets and mentions using the user Tweet timeline and user mention timeline endpoints.

Learn how to identify and get notifications of Tweets that match your query on the filtered stream endpoint.

Learn how to retrieve and reconstruct an entire conversation thread to better understand how a conversation started and evolved.

Learn how to use Tweet annotations to discover or filter Tweets based on how they are programmatically defined as a context or entity.

Tutorials, Articles, and Code Samples

These resources can help with intermediate to advanced uses of the Twitter API. Start here if you're familiar with Twitter data and you want to dig deeper into a topic or specific task.

What's new with Twitter API v2

Find example reference architectures and code samples for data processing and storage on Amazon Web Services (AWS).

Python and R are both popular for common data science tasks; this shows how you can use them together with the Twitter API.

See how to get a high-quality Tweet sample and do basic NLP using our standard search API.

A beginners guide to getting started with the Twitter API in R.

See how to collect data around a cultural topic, and apply clustering models to learn more about those participating in that conversation.

Learn methods for working with Twitter data as a time series to detect trends, from basic operations and transformations to threshold-based methods.

See a tutorial on how to use recent search with a Text Analytics service to detect language and determine sentiment scores.

Use our code samples in R and Python to quickly get started using the full-archive search endpoint.

Use our code sample to quickly page through all results that match a broad query using the full-archive search endpoint.

Use our code sample to quickly pull Tweet annotations using the full-archive search endpoint.

Use our code sample to quickly pull all of the Tweets that are included within a specified conversation thread using the full-archive search endpoint.

Use our code sample to quickly pull Tweet annotations using the recent search endpoint.

Learn about five methodsways you can use to turn a JSON payload into a CSV; CSVs are a great way to review individual fields in Twitter data.

Learn to build an app in Java that publishes links to Tweets you want to see on tools like Slack, Chime, e-mail, or even SMS.

Connect with others using Twitter data for research on our Academic Research forum.

Third-party resources

These are some popular code libraries, analysis tools, and other resources used by researchers and sourced from our conversations with the academic research community.

Note: Inclusion of third-party services on this list is not an endorsement by Twitter, and does not indicate their current compliance status.

  • Libraries and data access
  • Data analysis tools
  • Data visualization tools
  • Infrastructure, databases and hosting

Libraries and data access

These code libraries will help you connect to the Twitter API or access Twitter data:

An easy-to-use Python library for accessing the Twitter API

A python package from Twitter with support for Premium APIs.

A R client for accessing Twitter’s REST and stream APIs

An unofficial Java library for the Twitter API

A Javascript library for Twitter APIs

A PHP auth wrapper for Twitter API

A graphical user interface for querying the Twitter API v2 and exploring the results returned

A graphical user interface for querying an API and exploring the results returned

A desktop application for hydrating Twitter ID datasets.

A command line tool and Python library for archiving Twitter JSON data.

Python API client for Twitter API v2

See Twitter’s full list of community libraries (non-research specific) here.

Data analysis tools

These tools help you set up your analysis of Twitter data.

An interactive development environment for Python


An open source data analysis tool for Python

A collection of packages for data science tasks in R

A tool to explore the new Tweet payload

Add-ons for Microsoft Excel that support social network and content analysis

Open Data Analytics software

The Digital Methods Initiative Twitter Capture and Analysis Toolset (DMI-TCAT) is a set of tools to retrieve and collect tweets from Twitter and to analyze them in various ways

Mecodify is an open-source tool created as part of the Media Conflict and Democratization Project ( to help gather, analyse and visualise Twitter data for use by social science scholars

A free Windows program for keyword, issue, time series, sentiment, gender and content analyses of (mainly) social media texts

Qualitative data analysis software

A community-supported text and social networks analyzer for social media researchers and educators to study public discourse on social media sites

A low level data parser designed for parsing Twitter data

A high level toolkit for dealing with Twitter data

Software to create data science using an intuitive environment

Data visualization tools

These tools help you set up visualizations of Twitter data.

The leading visualization and exploration software for all kinds of graphs and networks

A data visualization package for R

A free Web service for scientists interested in using Twitter content in their research

A Python library for creating statistical graphics

A Social Network Analysis tool

An interactive visualization library in Python

An open source software platform for visualizing complex networks and integrating these with any type of attribute data

Organize complex data into relationship maps

An advanced text analytics visualization tool

A Python library for creating static, animated, and interactive visualization

Mecodify is an open-source tool created as part of the Media Conflict and Democratization Project ( to help gather, analyze and visualize Twitter data for use by social science scholars

Tweet sentiment visualisation app

Infrastructure, databases and hosting solutions

These are some of the most commonly used solutions to store and process Twitter data

Amazon’s cloud platform that provides compute, storage and application services

Google’s cloud platform that provides infrastructure and services

Provides databases and compute services in the cloud

Provides analytics and data services

A general purpose. Document-based database solution

A native graph database platform

Learn more about Twitter data for academic researchers