Return to API Services
Documentation for /json/nwstext.py
Note: This is a legacy service that should not be used for new development. The CGI version is the preferred method at the moment. This service does do a needed job of returning multiple product texts for a single product identifier, which is sadly still a thing in the world of NWS text products.
This service requires that you know the product_id ahead of time. This is an identifier created by the IEM attempting to uniquely identify a text product.
Changelog
- 2024-07-26: Initial documentation Release
Example Usage
Return the Area Forecast Discussion for NWS Des Moines issued at 2024-07-16 04:52 UTC:
https://mesonet.agron.iastate.edu/json/nwstext.py?product_id=202407160452-KDMX-FXUS63-AFDDMX
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 | Optional JSONP callback function name |
product_id | string (required) | Product Identifier to retrieve text for |