IEM Provided JSON-P Webservices

This page is an attempt to document the various JSON-P web services the IEM uses to drive its various applications. These services are provided without warranty and may be disabled without warning if "bad things happen". We do try our best to keep them running, so please Contact Us if you have difficulties.

These services support JSONP, which is a technique that allows the deliver of data from a cross-domain origin. The technique involves placing or injecting <script> tags into your webpage and specifying a javascript function to callback. For example,

 <script type="text/javascript">
  function gotData(data){
     console.log(data);
  }
 </script>
 <script type="text/javascript"
         src="https://mesonet.agron.iastate.edu/json/example.php?callback=gotData">
 
 

This <script> tag above that requests data from this server will return javascript that looks like:

 gotData({"Name": "daryl", "Profession": "nerd", "Age": 99});
 

But first, perhaps there are better alternatives

The following is a list of other web service providers. They all do a better job than this website does. Some of these are commercial and this listing should not be implied as an endorsement. Of course, you can just search google for Weather API :)

Okay, so you are all set for documentation on what services are available!

Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/usdm.py?date={date}&callback=gotData
Description: The US Drought Monitor valid for the given date. You do not need to specify the exact date on which the Drought Monitor was issued. The service will compute the date on which the Drought Monitor was issued given the provided date. Not specifying a date will provide the current Drought Monitor. Archive begins on Jan 2000.
Method GET Parameters:
dateDate (optional)
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/api/1/cow.json?callback=gotData
Description: This API is documented here.
Method GET Parameters:
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/api/1/usdm_bypoint.json?sdate={sdate}&edate={edate}&lon={lon}&lat={lat}&callback=gotData
Description: The US Drought Monitor query by latitude and longitude point. The start and end dates are optional and default to period of record data. The archive begins on Jan 2000.
Returns JSON Table Schema This service uses JSON Table Schema for returned content.
Method GET Parameters:
sdateStart Date (optional)
edateEnd Date (optional)
lonEast Longitude (deg)
latNorth Latitude (deg)
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/current.py?station={station}&network={network}&callback=gotData
Description: The most recent observation for an IEM tracked site.
Method GET Parameters:
stationStation Identifier
networkNetwork Identifier
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/prism/{lon}/{lat}/{date_or_daterange}?callback=gotData
Description: Produces a daily time series for a grid cell that covers the specified latitude and longitude (negative E values). Credit: PRISM Climate Group, Oregon State University, created 4 Feb 2004.
Method GET Parameters:
latLatitude (deg N)
lonLongitude (deg E)
date_or_daterangeYYYYmmdd or YYYYmmdd-YYYYmmdd (inclusive)
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/stage4/{lon}/{lat}/{utc_date}?callback=gotData
Description: This service provides a grid point sampling of the NCEP Stage IV product. The date provided the service is a UTC date. Note that the hourly stage IV data does not receive the level of QC that the 6, 12, and 24 hour summaries do.
Method GET Parameters:
latLatitude (deg N)
lonLongitude (deg E)
utc_dateYYYY-mm-dd
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/lsr.php?year={year}&wfo={wfo}&eventid={eventid}&phenomena={phenomena}&significance={significance}&callback=gotData
Description: Produces the storm reports that spatially and temporally coincide with a given Storm Based Warning. This only works for warnings that had polygons associated with them and not other VTEC products.
Method GET Parameters:
wfo3 character NWS Office
yearYear of VTEC Issuance
phenomena2 character VTEC Phenomena Code
significance1 character VTEC Significance Code
eventidVTEC Event ID
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/lsr.php?sts={sts}&ets={ets}&wfos={wfos}&callback=gotData
Description: Produces the storm reports for a given office or offices valid for a specified period (inclusive).
Method GET Parameters:
wfo3 character NWS Office (comma seperated for multiple, leave blank for all)
stsUTC Start Timestamp YYYYmmddHHMM
etsUTC End Timestamp YYYYmmddHHMM
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/nexrad_attr.geojson?callback=gotData
Description: A GeoJSON summary of current NEXRAD Storm Attributes
Method GET Parameters:
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/nexrad_attr.geojson?valid={valid}&callback=gotData
Description: A GeoJSON summary of archived NEXRAD Storm Attributes. For the supplied UTC timestamp, the closest scan time within a 20 minute window is found for each RADAR. That scan time is returned.
Method GET Parameters:
validISO-8601 timestamp YYYY-mm-ddTHH:MM:SSZ
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/networks.geojson?callback=gotData
Description: A GeoJSON listing of IEM labelled networks.
Method GET Parameters:
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/ibw_tags.py?year={year}&wfo={wfo}&callback=gotData
Description: Produces a listing of Impact Warning Tags used in Severe Thunderstorm and Tornado warnings by NWS Forecast Office and Year.
Method GET Parameters:
wfo3 character NWS Office
yearYear of interest
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/winter_roads.geojson?callback=gotData
Description: This service provides the most recent Iowa Winter Road Conditions.
Method GET Parameters:
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/climodat_stclimo.py?station={station}&syear={syear}&eyear={eyear}&callback=gotData
Description: Produces a listing of daily climatology for an IEM tracked long term climodat site in the midwestern US.
Method GET Parameters:
station6 character station identifier
syearExclusive end year of the period of interest
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/climodat_dayclimo.py?network={network}&day={day}&month={month}&syear={syear}&eyear={eyear}&callback=gotData
Description: Produces a listing of climatology for a single state for a single day.
Method GET Parameters:
networkstate network identifier
monthNumeric month of interest (1-12)
dayNumeric day of interest (1-31)
syearExclusive end year of the period of interest
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/vtec_max_etn.py?year={year}&callback=gotData
Description: Produces a listing of the maximum eventid used for each NWS Forecast Office, VTEC Phenomena and VTEC Significance.
Method GET Parameters:
yearYYYY year
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/vtec_event.py?wfo={wfo}&year={year}&phenomena={phenomena}&etn={etn}&significance={significance}&callback=gotData
Description: Produces GeoJSON for a given VTEC Event.
Method GET Parameters:
wfo3 or 4 character WFO identifier
yearYYYY year
etnVTEC Event ID
phenomena2 Character VTEC Phenomena Code
significance1 Character VTEC Significance Code
sbw1 or 0, flag to return Storm Based Polygon(1) or Counties
lsrs1 or 0, flag to return local storm reports
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/vtec_event.py?wfo={wfo}&year={year}&phenomena={phenomena}&etn={etn}&significance={significance}&callback=gotData
Description: Produces metadata on a given VTEC Event.
Method GET Parameters:
wfo3 or 4 character WFO identifier
yearYYYY year
etnVTEC Event ID
phenomena2 Character VTEC Phenomena Code
significance1 Character VTEC Significance Code
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/vtec_events.py?wfo={wfo}&year={year}&callback=gotData
Description: Produces a listing of VTEC Events (watch, warning, advisories) by year by weather forecast office.
Method GET Parameters:
wfo3 character WFO identifier
yearYYYY year
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/vtec_events_bystate.py?state={state}&year={year}&callback=gotData
Description: Produces a listing of VTEC Events (watch, warning, advisories) by year by state.
Method GET Parameters:
state2 character State identifier
yearYYYY year
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/nwstext_search.py?sts={sts}&ets={ets}&awipsid={awipsid}&callback=gotData
Description: Search of NWS Issued Text Products by a time period (in UTC) and an AWIPS ID (sometime called AFOS PIL). If you specify the AWIPS ID to be only three characters, the interruptation is to search of that base product identifier from any issuance center. For example, setting LSR would return all LSRXXX products.
Method GET Parameters:
stsYYYY-mm-ddTHH:MMZ Inclusive start period (UTC)
etsYYYY-mm-ddTHH:MMZ end time period (UTC)
awipsid6 character or less AWIPS ID / AFOS PIL.
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/cli.py?dt={dt}&fmt={fmt}&callback=gotData
Description: Provides a GeoJSON response summarizing all of the atomic processed data from the NWS issued CLI reports. These reports contain daily temperature, precipitation, and snow data from the primary climate sites.
Method GET Parameters:
dtYYYY-mm-dd Date you want data for (optional)
fmtReturn format (optional) geojson (default) or csv
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/tms.json?callback=gotData
Description: Provides metadata about the currently available Tile Map Services provided by the IEM. This is useful to determine how to call back to the Tile Map Services.
Method GET Parameters:
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/sbw.geojson?ts={ts}&callback=gotData
Description: Provides a geojson format of current National Weather Service storm based warnings. There is a 15 second caching done by the server to ease load. The generation_time attribute is set on the output to diagnose when the file is valid. You can provide a timestamp to provide archived warnings back to 2002 or so.
Method GET Parameters:
tsISO-8601 Timestamp YYYY-mm-ddTHH:MI:SSZ (optional)
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/sbw_by_point.py?lon={longitude}&lat={latitude}&callback=gotData
Description: Provides a listing of storm based (polygon) warnings based on the provided latitutde and longitude pair for warnings dating back to 1 Jan 2005.
Method GET Parameters:
latLatitude in degrees
lonLongitude in (degrees east)
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/vtec_events_bypoint.py?lon={longitude}&lat={latitude}&sdate={sdate}&edate={edate}&callback=gotData
Description: Provides a listing of VTEC events that were valid for a given latitude and longitude point.
Method GET Parameters:
latLatitude in degrees
lonLongitude in (degrees east)
sdateYYYY-mm-dd Start Date (UTC)
edateYYYY-mm-dd End Date (UTC)
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/spcmcd.py?lon={longitude}&lat={latitude}&callback=gotData
Description: Provides a listing of Mesoscale Convective Discussions (MCD)s dating back to October 2008.
Method GET Parameters:
latLatitude in degrees
lonLongitude in (degrees east)
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/spcoutlook.py?lon={longitude}&lat={latitude}&last={last}&day={day}&cat={cat}&callback=gotData
Description: Provides a listing of convective outlooks dating back to March 2002.
Method GET Parameters:
latLatitude in degrees
lonLongitude in (degrees east)
last(Optional) Include only the last number of outlooks for each category, 0 is all
day(Optional) Which outlook day to request, defaults to 1
cat(Optional) Which outlook category to request, defaults to CATEGORICAL
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/spcoutlook.py?lon={longitude}&lat={latitude}&time={time}&day={day}&cat={cat}&callback=gotData
Description: Provides a listing of convective outlooks dating back to March 2002 for a given timestamp.
Method GET Parameters:
latLatitude in degrees
lonLongitude in (degrees east)
timeReturn the outlook valid at that time. This time can be a generic 'now' or some ISO-ish timestamp in the format YYYY-mm-ddTHH:MMZ.
day(Optional) Which outlook day to request, defaults to 1
cat(Optional) Which outlook category to request, defaults to CATEGORICAL
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/sps.geojson?callback=gotData
Description: Provides a geojson format of current National Weather Service polygons that are included with some Special Weather Statements (SPS).
Method GET Parameters:
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/vtec_events_byugc.php?ugc={ugc}&edate={edate}&sdate={sdate}&callback=gotData
Description: Provides a json response of archived warnings valid for the given UGC code and date interval (UTC time, end date exclusive). The date of product issuance is used for the date filtering.
Method GET Parameters:
ugcFive character UGC identifier used by the NWS
sdateYYYY-mm-dd Start Date (UTC)
edateYYYY-mm-dd End Date (UTC)
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/spcwatch.py?ts={timestamp}&callback=gotData
Description: Provides a geojson format of SPC watches valid at given time or current time if no time specified.
Method GET Parameters:
timestampYYYYMMDDHHMI UTC Timestamp (optional)
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/spcwatch.py?lon={lon}&lat={lat}&callback=gotData
Description: Provides a geojson format of SPC watches valid for a give latitude and longitude pair. Note that these polygons are not the official watch boundaries.
Method GET Parameters:
latLatitude in degrees
lonLongitude in (degrees east)
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/raob.py?ts={timestamp}&station={station}&callback=gotData
Description: When provided a station and timestamp, returns a single RAOB profile. When provided no station and a timestamp, returns all profiles in the database for that timestamp. When provided a pressure [mb], returns just that pressure level's data. Realtime data from this service is typically available within 2 hours of observation time.
Method GET Parameters:
sid3 or 4 character site ID used in North America
timestampYYYYMMDDHHMI UTC Timestamp
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/dcp_vars.php?station={station}&callback=gotData
Description: Provides SHEF variables provided by this station.
Method GET Parameters:
stationNational Weather Service Location Identifier (nwsli)
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/geojson/network.py?network={network}&callback=gotData
Description: The IEM bunches observation stations into networks. This service provides metadata for sites within a network. A listing of networks can be found on this page.
Method GET Parameters:
networkIEM Network Identifier
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/products.php?callback=gotData
Description: The IEM generates and archives a large number of products. This service provides some metadata details necessary to build programic URIs against this archive of data. This service drives the Timemachine application.
Method GET Parameters:
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/goes.py?operation=list&start={start}&end={end}&bird={bird}&product={product}&callback=gotData
Description: This service returns a listing of available GOES scan times for a period of time. This service will default to the past four hours worth of data when start and end times are not specified.
Method GET Parameters:
operationCurrently always 'list'
startISO-8601 UTC Timestamp (optional)
endISO-8601 UTC Timestamp (optional)
birdGOES EAST or GOES WEST
productGOES Channel IR, VIS, or WV
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/radar?operation=available&lat={lat}&lon={lon}&start={start}&callback=gotData
Description: This service returns an estimate of which NEXRAD RADARs have imagery available for the timestamp and latitude / longitude location you specify.
Method GET Parameters:
latPoint location latitude (degrees north)
lonPoint location longitude (degrees east)
startISO-8601 UTC Timestamp
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/ridge_current.py?product={product}&callback=gotData
Description: This service returns a listing of the most recent image for a given product from all collected RADAR sites.
Method GET Parameters:
productLevel III Product {N0Q, N0S, N0U, N0Z, NET}
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/radar?operation=products&radar={radar}&start={start}&callback=gotData
Description: This service returns available NEXRAD level 3 products for a given RADAR and date.
Method GET Parameters:
radarNEXRAD 3 character identifier
startISO-8601 UTC Timestamp
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/radar?operation=list&radar={radar}&product={product}&start={start}&end={end}&callback=gotData
Description: This service returns NEXRAD volume scan times for a given RADAR, level 3 product, and start/end timestamp.
Method GET Parameters:
radarNEXRAD 3 character identifier
productThree character level 3 NEXRAD product identifier.
startISO-8601 UTC Timestamp
endISO-8601 UTC Timestamp
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/state_ugc.php?state={state}&callback=gotData
Description: This service returns metadata for UGC codes used by the National Weather Service to issue warnings for in a given state.
Method GET Parameters:
stateTwo character state identifier
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/nwstext.py?product_id={product_id}&callback=gotData
Description: This service returns the raw text of a NWS Text Product.
Method GET Parameters:
product_idString that uniquely (not fully) indentifies a text product.
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/stations.php?date={date}&callback=gotData
Description: This service returns metadata for any IEM tracked station locations with changed metadata since the given date. This provides a programic mechanism to keep up with metadata updates done on a daily basis.
Method GET Parameters:
dateRequest changes since this date
Example JSON  Example JSONP
URI Pattern:http://mesonet.agron.iastate.edu/json/webcams.php?network={network}&ts={ts}&callback=gotData
Description: This service returns metadata on available webcam imagery for a given network that collects webcams and a UTC timestamp.
Method GET Parameters:
networkIEM Webcam network (KCCI, KELO, KCRG, IDOT)
tsUTC Timestamp that you want images for

That is all for now. Enjoy!