pat310 / google-trends-api

An API layer on top of google trends
https://www.npmjs.com/package/google-trends-api
MIT License
874 stars 174 forks source link

API source and DMAs #139

Open jgujgu opened 4 years ago

jgujgu commented 4 years ago

Hello, I just have 2 questions before I jump into using this library (which looks quite nice):

1) The official Trends endpoint seems to be limited to Academic researchers/journalists, so I was just wondering how you get the json data? Is this a reliable endpoint that will be probably be available for a long time to come? Since there does not seem to be a key/secret per user, does that mean a user of this library is truly at the mercy of arbitrary and invisible rate limiting, which could be ended by Google without a whisper?

1) Secondly, while I understand that the sub-state regions available on the trends UI are DMAs, where to get a list of DMAs is not very clear to me (and, such list, would probably need to be well organized with relationships to the state/country obviously)

Screen Shot 2020-05-10 at 1 23 20 PM

In your readme you have a link, unfortunately this link goes nowhere:

A list of DMAs can be found here: DMA list

I'm sure with enough searching I could find one (this is a good start) but do you have a go-to?