Daily Precipitation

Overview

Provides daily precipitation for locations up to 10 days in the future.

By Location

Provides the total amount of daily precipitation along with a daily time series within a user-defined timespan. The location is represented by a latitude/longitude pair.

GET /daily-precipitation/{latitude}/{longitude}

Query String Parameters (Optional)

The default response contains results in millimeters for up to the next 6 days.

Name Type Description Accepted Values / Range Example
start string start date 1 year ago to 10 days in the future 2017-06-01
end string end date 1 year ago to 10 days in the future 2017-06-03
unit string unit of measure inches, millimeters inches

Request Example

See CORS for request header details.

$ curl -X GET -G "https://insight.api.wdtinc.com/daily-precipitation/35.482/-97.535" \
  -d start="2017-06-01" \
  -d end="2017-06-03" \
  --user <username>:<password>

Response Example

See Status Codes for response code details.

HTTP/1.1 200 OK
{
  "latitude": 35.482,
  "longitude": -97.535,
  "startDate": "2017-06-01",
  "endDate": "2017-06-03",
  "precipitation": 22.5,
  "unit": {
    "description": "millimeters",
    "label": "mm"
  },
  "series": [
    {
      "validDate": "2017-06-01",
      "value": 11.25,
      "products": [
        "skywise-24hr-precipitation-analysis"
      ]
    },
    {
      "validDate": "2017-06-02",
      "value": 5.25,
      "products": [
        "skywise-24hr-precipitation-analysis"
      ]
    },
    {
      "validDate": "2017-06-03",
      "value": 6.0,
      "products": [
        "skywise-24hr-precipitation-analysis"
      ]
    }
  ]
}