16

Is it possible to get the "Popular times" information through the Google Places API or any other API? I need this information to be displayed in my application for a particular place.

xomena
  • 31,125
  • 6
  • 88
  • 117
Ashwin Praveen
  • 661
  • 2
  • 10
  • 20

4 Answers4

17

This is one of the top feature requests in Google issue tracker (more than 500 stars):

https://issuetracker.google.com/issues/35827350

Currently, the state is Assigned, however, no any ETA provided by Google. Please star it to get further updates.

xomena
  • 31,125
  • 6
  • 88
  • 117
3

I haven't managed to test it myself but this is what populartimes offers to do in Python:

import populartimes
populartimes.get("your-api-key", ["bar"], (48.132986, 11.566126), (48.142199, 11.580047))

More info on developer's github.

radek
  • 7,240
  • 8
  • 58
  • 83
  • 5
    Be careful with this solution as it might be against of ToS paragraph 10.1 (a) – xomena Nov 02 '17 at 09:59
  • @radek Can you please guide me to implement this same in my MVC application (using javascript/jquey)? – prog1011 May 26 '18 at 13:05
  • 1
    There is [an anecdote](https://github.com/m-wrzr/populartimes/issues/90#issuecomment-664045321) of somebodies account being suspended for this. – Mattwmaster58 Feb 23 '22 at 23:18
2

It's possible to scrape it, but it violates the Google ToS.

user3320795
  • 523
  • 2
  • 6
  • 17
  • 4
    @radek Section 10.1 (a) of ToS: "**No access to APIs or Content except through the Service.** You will not access the Maps API(s) or the Content except through the Service. For example, you must not access map tiles or imagery through interfaces or channels (including undocumented Google interfaces) other than the Maps API(s)." https://developers.google.com/maps/terms?#section_10_1 – xomena Nov 01 '17 at 21:46
  • Thank you @xomena! – radek Nov 02 '17 at 04:06
  • In practice, what does violating the Google ToS actually mean if you do it? Will they ban your account? Will they take legal action against you? – phocks Jun 05 '23 at 04:34
0

yes its possible but as said it violates googles ToS , i have used npm package busy-hours but it's not working so i have modified their code and here is new npm package https://www.npmjs.com/package/google-busy-hours

SuperUser Sudo
  • 295
  • 2
  • 6