Valid appId is mandatory. You can use the appId from examples for testing (when we go to production we will provision new appId).

To receive json pass application/json in the header (by default response is xml). You can do it in curl like this:

curl -i -H "Accept: application/json" "http://d.2ya.it/dre/api/rest/search/weather/data?appId={AppID}&location=M5G" -o "xml_output.txt"

Search city

  <adc_database xmlns="http://www.accuweather.com">
     <copyright>Copyright 2012 AccuWeather.com</copyright>
     <product>sprylogics</product>
     <redistribution>Redistribution Prohibited.</redistribution>
     <citylist us="9" intl="6">
        <location cnt="1" city="Toronto" country="Canada" countryCode="CA" adminArea="Ontario" location="cityId:55488" primaryPostalCode="M5G"/>
        <location cnt="2" city="Toronto" country="Cuba" countryCode="CU" adminArea="Artemisa" location="cityId:119159"/>
        <location cnt="3" city="Toronto" country="United States" countryCode="US" adminArea="Ohio" location="cityId:2237603" primaryPostalCode="43964"/>
        <location cnt="4" city="Toronto" country="Australia" countryCode="AU" adminArea="New South Wales" location="cityId:1031"/>
        ..
     </citylist>
</adc_database>

Get the location_code from the value of primaryPostalCode

Get weather data

Search by Latitude and Longitude (&slat={Latitude}&slon={Longitude})

Search by Location (&location=location_code)

This may be an AccuWeather international location code, a US ZIP Code, or Canadian Postal Code.

English/Metric Units (&metric=unit_code)

  ...
  <observationtime>9:56 PM</observationtime>
  <temperature>17</temperature>
  <realfeel>17</realfeel>
  <humidity>75%</humidity>
  ...
  ...
  <observationtime>9:57 PM</observationtime>
  <temperature>63</temperature>
  <realfeel>63</realfeel>
  <humidity>75%</humidity>
  ...

Weather images