Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

Not long ago I wrote that Yahoo effectively shut down its Weather API by forcing OAuth 1.0. After what seems like an uproar by many developers Yahoo reversed it's decision (in a way) and re-enabled public access to the Weather API, but there is a catch. You have to use the new YQL way of fetching data and it seems very slow to respond.
I've put together an example of this new API, read about it here: Example Yahoo Weather YQL to fetch forecasts and render with JQuery.


It looks like the examples have been updated and from what I could gather it is possible to make a request to a YQL URL and fetch the data without authentication.

So it's possible to execute a query like this just by sending it as a URL parameter...
 YQL
select * from weather.forecast where woeid=1100661


...and get results back in the JSON format (or XML if you wish)...
yqlweather2.png


The whole URL request looks like this:
 URL
https://query.yahooapis.com/v1/public/yql?q=select+%2A+from+weather.forecast+where+woeid%3D1100661&format=json


All you have to do is URL Encode the YQL statement and pass it in using the 'q' URL paramether. The 'format' URL parameter specifies whether the weather data should be returned as JSON or XML. In case you are wondering, I looked up the WOEID here.



Of course you probably don't want to bring back all of the results so you can tailor that query using the YQL Console first...
yqlweather1.png


I'm glad Yahoo has reenabled public access but it is definitely too late in my opinion as I would imagine many like myself have switched from this API to something like OpenWeatherMap.

-i

Please leave your comments or feedback below!
comments powered by Disqus
Other posts you may like...
Hi! You can search my blog here ⤵
Or browse the recent top tags...

Recent Blog Posts

How to remove caked on stickers from old game carts

How to pass parameters to your PHP script via the command line

jPhotoFrame new layout engine explained with examples

Atari Lynx Multi SD Card cartridge review

Jersey JAX-RS filters and interceptors execution order when throwing Exceptions

Why I'll never renew a domain with GoDaddy again

Fake AirPods - HBQ-i7 TWS wireless headset teardown

How to fix Postman error - Failed to import data: format not recognized

Switching out macOS Mail for Microsoft Outlook

Using DeoxIT to repair old game catridges

Recent Galleries

BMB-012 Nanoblock T-Rex Skeleton Model assembly

Tiny Arcade revision 6 kit assembly and decal application

Atari Lynx repair - Part 5 - McWill LED screen mod installation

Atari Lynx repair - Part 4 - screen cover replacement

Atari Lynx repair - Part 2 - re-capping the motherboard

Atari Lynx repair - Part 3 - broken speaker replacement

Atari Lynx repair - Part 1 - introduction and case disassembly

Building a custom Atari Lynx game box storage shelf unit in a day

Protecting old Atari Lynx game boxes with snug fit plastic sleeves

Monument Valley 2 is released and does not disappoint

Blogs and Friends

Matt Moores Blog
Georgi's FlatPress Guide
Perplexing Permutations
The Security Sleuth
Ilia Rogatchevski
Travelling Fairy

Blog Activity

Blog Activity