lang:en needs to go inside the query, so in your code, it’s SEARCH_TERM.

Right now it’s being passed as a url parameter. The only valid URL parameters to the 30day endpoint are here: Premium search APIs | Docs | Twitter Developer Platform (fromDate, toDate, next etc.)

Thanks for the reply! understood what you said.
Can you please share the line of code for SEARCH_TERM. How it is suppose to be written?
i want to include language as english , country as india in my query.

There are examples of how to write search queries here: Premium operators | Docs | Twitter Developer Platform

in your case,

SEARCH_TERM = 'covid19 india stockmarket lang:en'

would search for any tweets that have “covid19” and “india” and “stockmarket” in the text, and written in english

Great help! Thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.