Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yahoo weather-api response as json

I am using yahoo weather api to get weather information

This is returning an xml output.
I want to get it in JSON format. How can i get this as JSON?

like image 427
Muhammad Zeeshan Avatar asked Feb 15 '11 07:02

Muhammad Zeeshan


1 Answers

I would suggest using YQL and requesting JSON output. The link you referenced is Yahoo's weather RSS feed.

http://query.yahooapis.com/v1/public/yql?q=select%20item%20from%20weather.forecast%20where%20location%3D%2248907%22&format=json

like image 126
seeingidog Avatar answered Sep 19 '22 15:09

seeingidog