views:

2838

answers:

4
+3  Q: 

Free Weather API

Are there any free weather APIs for displaying weather in the iPhone application.

+2  A: 

Try METAR.

teabot
+1  A: 

A previous question dealt with weather APIs. I don't think all of them are free, but there's certainly a few that are.

thorncp
+5  A: 

These are not iPhone specific, but free weather APIs.

NOAA REST Interface

Example: http://www.weather.gov/forecasts/xml/sample%5Fproducts/browser%5Finterface/ndfdXMLclient.php?zipCodeList=90210&product=time-series&begin=2004-01-01T00%3A00%3A00&end=2013-04-21T00%3A00%3A00&maxt=maxt&mint=mint

Yahoo! Weather Forecast RSS

Example: http://weather.yahooapis.com/forecastrss?p=90210

Google Weather API - documentation URL for this?

Example: http://www.google.com/ig/api?weather=90210

Weather Underground API

Example: http://api.wunderground.com/auto/wui/geo/GeoLookupXML/index.xml?query=90210

Weather Channel - Requires signup

Example: found sample code at github. Ruby gem for accessing the Weather Channel XML API

WeatherAPI (Norway)

Example: http://api.yr.no/weatherapi/locationforecast/1.6/?lat=34;lon=-118

bill weaver
Just so you know, most (all?) the above, except for NOAA, have significant licensing restrictions against commercial use.
JJ Rohrer
@JJBig - That's a good point, though the question didn't specify a preferred license.
bill weaver
+1  A: 

I don't know why I cannot leave a reply to the first answer, but, I just signed up for the Weather Channel's API (Weather.com) with the intent to use it on an Android app. When I got the email after sign-up, this is what it said:

VERY IMPORTANT: YOU MAY NOT USE THE SERVICE TO CREATE WEATHER AND WEATHER-RELATED PRODUCTS TO BE DISPLAYED ON HANDHELD OR OTHER WIRELESS DEVICES.

It then lists about a bajillion other things you cannot do with it, ending with this missive:

YOU MAY NOT USE THE SERVICE .. (bajillion things) .. OR DELIVERY BY ANY MEANS OTHER THAN STATIC DISPLAY ON A TRADITIONAL WEB PAGE ON YOUR WEBSITE OR DESKTOP APPLICATION.

USE OF THE SERVICE IN VIOLATION OF THE TERMS OF YOUR AGREEMENT WITH TWCi MAY RESULT IN YOUR IMMEDIATE TERMINATION AND PAYMENT OF MONETARY DAMAGES TO TWCi.

mfisch