Return to API Services
Documentation for /json/current.py
This is a legacy service that emits the most recent observation for a given site and network combination.
Changelog
- 2026-03-03: Please migrate usage of root attribute server_gentime to generated_at.
- 2024-08-01: Documentation update
Example Requests
Return the latest observation for the Ames Airport
https://mesonet.agron.iastate.edu/json/current.py?station=AMW&network=IA_ASOS
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 or null | Legacy JSON-P style callback. It is likely best to not depend on this usage. The IEM website has a permissive CORS. |
| network | string (required) | IEM network identifier. Typically a combination of a US state abbreviation and a network classification, ie IA_ASOS. |
| station | string (required) | The station identifier, such as AMW |