Daily Solar Radiation

Overview

Provides daily solar radiation for locations from 1 year ago to the previous day.

By Location

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

GET /daily-solar-radiation/{latitude}/{longitude}

Query String Parameters (Optional)

The default response contains results in Megajoules per square meter for up to the next 4 days. However, the forecast data is deprecated and will be discontinued at some point in the future.

We would encourage using start and end paramaters with an end date no later than yesterday.

Name Type Description Accepted Values / Range Example
start string start date 1 year ago to previous day 2017-06-01
end string end date 1 year ago to previous day 2017-06-03

Request Example

See CORS for request header details.

$ curl -X GET -G "https://insight.api.wdtinc.com/daily-solar-radiation/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",
  "solarRadiation": 164.1,
  "unit": {
    "description": "megajoules per square meter",
    "label": "MJ/m²"
  },
  "series": [
    {
      "validDate": "2017-06-01",
      "value": 50.0,
      "products": [
        "skywise-24hr-solar-radiation-analysis"
      ]
    },
    {
      "validDate": "2017-06-02",
      "value": 50.0,
      "products": [
        "skywise-24hr-solar-radiation-analysis"
      ]
    },
    {
      "validDate": "2017-06-03",
      "value": 64.1,
      "products": [
        "skywise-24hr-solar-radiation-analysis"
      ]
    }
  ]
}