Open awb99 opened 5 years ago
this is a limitation of Google's API rather than this library that you're using to access the API.
Thanks @hayksaakian! Not sure if there is a good way to communicate this issue. One possible solution is to actually put a hard limit on the array size, but then this may change whenever Google Trends changes. We could add a guide in the documentation saying that Google Trends only accepts up to 5 keywords and then update it anytime they change it, but I feel like people would miss that.
Thabks for the explanations! To me this limit dramatically uses the usefullness of google trends. The reason is that it normalises all keywords so that 100 equals to the highest # of searches of all searches. So if I want to conpare say 6 keywords then I have to include the 100 ranked keyword in the second query with the 6th keyword, because otherwise they would be normalises differently. If google would give the raw data then one could do the normalisation one self easily. I guess that's life. Haha
On Sat, 6 Apr 2019, 14:43 Patrick Trasborg, notifications@github.com wrote:
Thanks @hayksaakian https://github.com/hayksaakian! Not sure if there is a good way to communicate this issue. One possible solution is to actually put a hard limit on the array size, but then this may change whenever Google Trends changes. We could add a guide in the documentation saying that Google Trends only accepts up to 5 keywords and then update it anytime they change it, but I feel like people would miss that.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pat310/google-trends-api/issues/119#issuecomment-480501194, or mute the thread https://github.com/notifications/unsubscribe-auth/AKWhGpuCSgcAa2XgASJ5ZxZgT9Dnosa0ks5veJZTgaJpZM4cfoqg .
@awb99 Including a control keyword in all requests might be a way around that.
I tested running trend data on multiple keywords. When using more than 5 keywords, this is what comes back. It might be that google trend api has this hard limit, but it seems pretty low to me. This is the error that comes back when using 6 or more keywords: