The Debugger
The Debugger

Reputation: 340

No weather data from Yahoo Weather API

Yahoo retired its YQL API so, I am switching to use the OAuth1.0 protected weather forecast API,

https://weather-ydn-yql.media.yahoo.com/forecastrss?w=2502265

Got whitelisted my app through email as instructed here, https://developer.yahoo.com/weather/

Sending request to get weather data with the proper Authorization header returns nothing but this, error status: 500

<rss xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" version="2.0">
    <channel>
        <yweather:units distance="mi" pressure="in" speed="mph" temperature="F"/>
    </channel>
</rss> 

any idea what's going wrong?

Upvotes: 1

Views: 6793

Answers (2)

Synopsys
Synopsys

Reputation: 1

I had a very quick support from the Yahoo team. Below is their answer regarding this issue:

Hi,

Maybe you missed our earlier email but there was some service reliability issues, which should work well now. Please try again and let us know if you have any other problems. You can also read through the code examples on https://developer.yahoo.com/weather/documentation.html for sample OAuth1 call to our API.

PS: if you still encounter problems with Postman, please try curl command instead, which should have more reliable and valid response.

Regards,

Yahoo Weather Team

I can confirm, my app successfully connect to the weather API without any change on my code (no more 500 error)

Upvotes: 0

Dan
Dan

Reputation: 54

They are retiring their weather API. Did you go through the new onboarding listed on their site?

Important EOL Notice: As of Thursday, Jan. 3, 2019, the weather.yahooapis.com and query.yahooapis.com for Yahoo Weather API will be retired. To continue using our free Yahoo Weather APIs, use https://weather-ydn-yql.media.yahoo.com/forecastrss. Contact [email protected] for credentials to onboard to this free Yahoo Weather API service.

Upvotes: -2

Related Questions