Search/tweets fails for mentions of uppercase username, works with lowercase


#1

Hello,

I’ve encountered a weird case for a single username (https://twitter.com/ILCUK) for which

https://api.twitter.com/1.1/search/tweets.json?q=to%3AILCUK

fails with “Missing or invalid url parameter” error, but

https://api.twitter.com/1.1/search/tweets.json?q=to%3Ailcuk

works fine. The search operators guide does not mention anything and the actual example is “to:NASA” so it shouldn’t be a case-sensitivity issue.


#2

Definitely a weird case, this works (in both cases) on the premium search endpoint, but not on standard where it seems to fail on uppercase. However, as a workaround, I added the @ character to the query:

https://api.twitter.com/1.1/search/tweets.json?q=to%3A%40ILCUK

This appears to work as expected.