Yahoo Weather API for your apps
Get up-to-date weather information for any location, including 10-day forecast, wind, atmosphere, astronomy conditions, and more. You can lookup weather by location (city name) or lat/long.
Terms of Use
The above feeds are provided free of charge for use by individuals and non-profit organizations for personal, non-commercial uses. We reserve all rights in and to the Yahoo logo, and your right to use the Yahoo logo is limited to providing attribution in connection with these RSS feeds. Yahoo also reserves the right to require you to cease distributing these feeds at any time for any reason. Usage of these feeds is subject to YDN terms of use. Your use of weather feeds is subject to the Yahoo APIs Terms of Use.
Commercial Use
If you want to use weather API for commercial purpose, please request an invite here.
Get Started
Get your API Keys
Start by creating a project. This will give you a Consumer Key and Secret which are needed for using the API.
On the success page, write down "App ID", "Client ID (Consumer Key)", and "Client Secret (Consumer Secret)" for future use.
Whitelist your app
Please fill out this form https://goo.gl/forms/ixXUBJ00xMQc5ne23. We will then process your request and inform you by email in 3 business days.Follow Our Documentation
Our API is OAuth1 protected. Please use the consumer key and secret created in Step 1 and generate an oauth signature. Please also include your OAuth app id in the "X-Yahoo-App-Id" header. Then call our API like this:
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
For details of the API, check out our documentation.