yahoo weather api has changed and now needs auth oauth oauth2
the yahoo weather api has changed and now needs auth oauth oauth2
old retired urls
new url that requires auth
yahoo api docs
- https://developer.yahoo.com/api/
- https://developer.yahoo.com/oauth/
- https://developer.yahoo.com/oauth2/guide/
- https://developer.yahoo.com/oauth2/guide/apirequests/
so now to make API requests, include the access token in the Authorization header. Note that API requests must be made securely over HTTPS. The header content comprises of the word Bearer followed by the access token.
also note that the "Yahoo-App-Id" header will be deprecated soon and after that request without the "X-Yahoo-App-Id" will be rejected.
yahoo api weather docs
yahoo api oauth headers
GET /forecastrss?location=sunnyvale,ca HTTP/1.1
Host: weather-ydn-yql.media.yahoo.com
X-Yahoo-App-Id: YOUR_APP_ID
Authorization: OAuth
oauth_consumer_key="YOUR_CONSUMER_KEY",oauth_signature_method="HMAC-SHA1",oauth_timestamp="YOUR_TIMESTAMP",oauth_nonce="YOUR_NONCE",oauth_version="1.0",oauth_signature="YOUR_GENERATED_SIGNATURE"
cache-control: no-cache
yahoo api oauth node js example
if you dont authenticate you will get the error(s)
Please provide valid credentials.
OAuth oauth_problem="OST_OAUTH_PARAMETER_ABSENT_ERROR", realm="yahooapis.com"
Please provide valid credentials.
OAuth oauth_problem="OST_OAUTH_PARAMETER_ABSENT_ERROR", realm="yahooapis.com"
you could also try the IBM bluemix weather or OpenWeatherMap apis which also requires auth or a key
- https://twcservice.mybluemix.net/api/weather/v1/geocode/33.40/-83.42/forecast/daily/3day.json
- https://openweathermap.org/api