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.