Hacker News new | past | comments | ask | show | jobs | submit login
Google Weather API isn't really dead
7 points by dartonw on Feb 23, 2013 | hide | past | favorite
The weather API isn't exactly dead, it's just locked down. But not securely...

https://www.google.com/ig/api?weather=23220&hl=en&referrer=googlecalendar

The funny thing is that it only works if referrer is "googlecalendar" (so far from what I've tried), but it doesn't care if that's the actual HTTP_REFERER. Just passing it as a request parameter gets the XML response.

I stumbled upon this after getting pissed with the Yahoo API used by https://github.com/Neroth/gnome-shell-extension-weather, which appears to be broken in Fedora repos.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: