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.
If you want to use weather API for commercial purpose, please request an invite here.
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 appPlease 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.