NOTE: As of February 13th, 2023, Twitter is planning to eliminate free access to its APIs for all users, including academic researchers.
This blog post from the University of Washington and this NPR article explain some additional details and what's expected in the researcher community.
Twitter data (in the form of individual tweets) can be a fascinating data source to explore research questions related to current events and public opinion.
There are a number of ways to get this data and your choice will depend on what kind of analysis you want to do, how comfortable you are with programming, and what your research question is.
Before getting started it's helpful to know a few things about how Twitter (a private commercial platform) works:
The Twitter developer portal is the most authoritative source of information about what is or is not allowed with the platform and its data.
Using Twitter data, created by ordinary people who did not necessarily consent to being the subjects of research, brings with it some particular legal and ethical challenges. The linked resources below come from groups and institutions involved with internet and social media research particularly.