IT'S MORE THAN WEATHER—IT'S MyWeather.

Forecast XML Reference

  • USA forecast data comes from MyWeather's patented MicroCast forecast model.
  • International forecast data comes from a National Weather Service (NWS) global numerical model.
  • The MicroCast forecast data is updated 4 times per day, or every six hours.
  • The <day> element in the XML provides a summary for the day's weather.
  • There are seven day summaries in the XML, starting with the current day.
  • The current day (index=0) contains a label attribute to identify the time period as 'Today,' 'Tonight', or 'Overnight.' This is the most accurate label to use with today's forecast.
  • The <day>/<segments> elements in the XML provides a summary for four six-hour time segments.
  • The segment periods are "Morning," "Afternoon," "Evening," and "Overnight."
  • The "Overnight" segment always represents 1:00AM - 6:00AM the next day. For example, the "Overnight" segment for Thursday would forecast for 1:00AM - 6:00AM on Friday.
  • The <hours> element in the XML provides an hour-by-hour forecast for 95 hours.
  • Hours and segments drop out of the XML four times per day, in accordance with the 6-hour file updates.
  • There might be a latency due to processing time required to update the forecast model run.
  • There are three possible icon representations in the hourly data: cloud cover ('ccover'), precipitation ('precip'), and a general icon ('icon').
    Click here for more details.
Sample XML: forecast & current conditions data
Sample XML: current conditions data only
Sample XML: forecast data only
ElementDescription
location/@keylocation request token (zip code)
location/@idlocation identifier code (see location mapping reference)
location/@namelocation name
location/@statelocation state
location/@countrylocation country
location/@tzlocation time zone
location/@tolocation time zone (GMT) offset
location/@monmonth of last forecast data file update
location/@dayday of last forecast data file update
location/@hrhour of last forecast data file update
location/@minminute of last forecast data file update
day/@indexday index 0 - 6: index ‘0’ = current day
day/@nameday name: ‘Sunday’,’Monday’, etc.
day/@labelFor Day 0 only: labels current day as 'Today,' 'Tonight,' or 'Overnight'
day/forecast/@iconicon mapping code (see icon mapping reference)
day/forecast/@skyicon description (see icon mapping reference)
day/forecast/@wdirwind direction forecast: ‘CM’ means ‘calm’ or no wind
day/forecast/@wlowlowest forecasted wind speed for the day in miles per hour
day/forecast/@whighhighest forecasted wind speed for the day in miles per hour
day/forecast/@barsea-level pressure forecast for the day in inches
day/forecast/@bar-trendsea-level pressure trend: ‘0’=steady, ‘-1’=falling, ‘1’=rising
day/forecast/@rainrain total forecast for the day in inches
day/forecast/@snowsnowfall total forecast for the day in inches
day/forecast/@highhigh temperature forecast for the day in degrees F
day/forecast/@lowlow temperature forecast for the day in degrees F
day/forecast/@popprobability of precipitation forecast for the day in percent
day/forecast/@shrstotal hours of sunshine forecast for the day
day/forecast/@sunrisetime of sunrise for the day (in the location’s local time)
day/forecast/@sunsettime of sunset for the day (in the location’s local time)
day/statementsummary description of the day forecast
segment/@periodsegment period 0-4: ‘0’ = current six hour segment of time
segment/@namesegment name: ‘Morning’, ‘Afternoon’, ‘Evening’, ‘Overnight’
segment/@iconicon mapping code (see icon mapping reference)
segment/@skyicon description (see icon mapping reference)
segment/@wdirwind direction forecast: ‘CM’ means ‘calm’ or no wind
segment/@wlowlowest forecasted wind speed for the segment in mph
segment/@whighhighest forecasted wind speed for the segment in mph
segment/@barsea-level pressure forecast for the segment in inches
segment/@bar-trendsea-level pressure trend: ‘0’=steady, ‘-1’=falling, ‘1’=rising
segment/@rainrain total forecast for the segment in inches
segment/@snowsnowfall total forecast for the segment in inches
segment/@popprobability of precipitation forecast for the segment in percent
segment/statementsummary description of the segment forecast
hour/@indexhour index 0 - 95: index ‘0’ = first hour of current segment
hour/@namehour label in local time zone: ‘a’ = AM and ‘p’ = PM
hour/@temptemperature forecast for the hour in degrees F
hour/@feelslikefeelslike temperature forecast for the hour in degrees F
hour/@ttrendtemperature trend: ‘0’=steady, ‘-1’=falling, ‘1’=rising
hour/@iconicon mapping code (see icon mapping reference); if there is no precip value, the icon value will equal the ccover value; otherwise, it will equal the precip value
hour/@windwind speed forecast for the hour in mph
hour/@wdirwind direction forecast: ‘CM’ means ‘calm’ or no wind
hour/@dewptdewpoint forecast for the hour in degrees F
hour/@humrelative humidity forecast for the hour in percent
hour/@ccovercloud cover icon code (see icon mapping reference)
hour/@precipprecipitation icon code (see icon mapping reference): ‘0’ = no precipitation