Return to API Services

Documentation for /json/prism.py

This service emits a JSON response of PRISM data for a given point.

Changelog

  • 2024-07-24: Initial documentation release and rectify the dates.

Example Usage

Request PRISM data for January 2024 at a point in Iowa:

https://mesonet.agron.iastate.edu/json/prism.py?lat=41.9&lon=-92.0&sdate=2024-01-01&edate=2024-01-31

Request PRISM data for January 10th 2024 at a point in Iowa:

https://mesonet.agron.iastate.edu/json/prism.py?lat=41.9&lon=-92.0&valid=2024-01-10

CGI Arguments

The following table lists the CGI arguments that are accepted by this service. A HTTP GET request is required. Fields of type Multi-Params or CSV value can accept either a comma separated list or multiple parameter and value combinations. For example, ?foo=1&foo=2 is equivalent to ?foo=1,2.

Field Type Description
callback string JSONP callback function
lat number Latitude of point
lon number Longitude of point
valid string Provide data valid for this date (~12 UTC)
sdate string Inclusive start date for data request
edate string Inclusive end date for data request