The Twitter API platform provides three tiers for searching Tweets. The premium and enterprise search APIs provide an endpoint that returns time-series counts of Tweets matching your query.

Search API endpoints: