Is there a limit on the length of the query string?

search

#1

I’m developing a program to search tweet.
I use V1.1 API and set the query strings(include search strings and exception strings).
I set a query string which length less than 330 byte is OK.
But I set a query string which length more than 330 byte can not work.

I checked https://dev.twitter.com, but It is not written specifically.

Is there a limit on the length of the query string?

Thank you.


#2

I think the same limit as for searches may apply:

https://dev.twitter.com/rest/reference/get/search/tweets

q (required) A UTF-8, URL-encoded search query of 500 characters maximum, including operators. Queries may additionally be limited by complexity.

So max 500 chars with additional complexity limitations.