Is there a way to configure the v2 Search Recent endpoint payload to return most popular tweets (by likes or retweets)? I’d like to avoid pagination if at all possible, and also limit.

Context/background: the v1.1 trends api does return trending tweets, but it lacks the richness of the query capabilities in v2 search recent call. But with v2 search recent, I would have to paginate to all results and then follow up with a sorting based on likes/retweets - that’s a bloated payload, so not ideal.

thank you

No unfortunately - not that i know of - you’ll have to retrieve tweets, paginate etc with expansions for public_metrics and classify tweets as “popular” yourself.

1 Like