{“error”:{“message”:“There were errors processing your request: Unknown parameter:‘lang’”,“sent”:“2018-06-04T00:57:03+00:00”,“transactionId”:“0020c76400d1d79b”}}

According to this table, yes that operator should be available in the sandbox. Are you able to describe the exact search you’re attempting to run?

I’ve just tested this myself, for example:

$ http --session-read-only=sandbox api.twitter.com/1.1/tweets/search/30day/dev.json "query=lang:en andypiper" maxResults=10

This returns data successfully for an app that only has sandbox access.

1 Like

It looks like those are standard search operators (for example, resultType is not a premium search operator). Take a look at this guide.

1 Like

I know the table, and, that’s why I did not understand.

This is the search I’m trying to run (via TwitterAPI library for Python):
r = TwitterPager(api, ‘tweets/search/30day/:prob’,
{‘query’:‘apple OR Apple OR APPLE AND #AAPL’,
‘maxResults’:100,
‘lang’:‘en’,
‘fromDate’:‘201806020000’,
‘toDate’:‘201806030000’})

This is the error:
{“error”: {“message”: “There were errors processing your request: Unknown parameter: ‘lang’”, “sent”: “2018-06-04T10: 52: 53 + 00: 00”, “transactionId”: “0001fa4e00ca4c7a”}}

Thanks,

the lang: operator should be inside your query string.

1 Like

In standard search the “lang:” outside. anyway Thank you.

I need to write lang between each OR or just one time?
‘query’:‘lang:en apple AAPL OR lang:en Apple AAPL OR lang:en APPLE AAPL’
OR
‘query’:‘lang:en apple AAPL OR Apple AAPL OR APPLE AAPL’

Just once - unless you’re seeing an alternative behaviour? If so, I’d have to double check with someone else to confirm.