Collect and download, as CSV, a configurable set of data fields from a multi-national collection of wind stations. This data represents wind-speed, temperature, and direction values at 10m, 40m, 80m, 100m, 120m, 160m, and 200m above the surface and air pressure at the surface, 100m, and 200m above the surface for the years 2017 to 2021. The model time resolution used was 15 minutes.
This API is capable of creating very large downloadable archives. Unlike a typical API, the response to this provides a request acknowledgement. The real work of creating the requested downloadable archive will continue to run on the server side. When complete, and email will be sent to the email address provided in the initial request with a link to a file to download. In addition to this two step workflow, there is also an option for users who wish to download a single CSV file in direct response to an API request. The .csv format may be used to download a CSV directly. This feature is restricted to use with only a single POINT, for a single year at a time.
GET /api/wind-toolkit/v2/wind/seasia-wtk-download.format?parameters
Parameter | Required | Value | Description |
---|---|---|---|
api_key | Yes |
Type: string
Default: None
|
Your developer API key. See API keys for more information. |
wkt | Yes |
Type: well-known text point string
Default: None
|
A well-known text (WKT) representation of the geometry for which to extract data. May be a point or polygon geometry. |
attributes | Yes |
Type: comma delimited string array
Default: None
Options: pressure_0m, pressure_100m, pressure_200m, windspeed_10m, windspeed_40m, windspeed_80m, windspeed_100m, windspeed_120m, windspeed_160m, windspeed_200m, winddirection_10m, winddirection_40m, winddirection_80m, winddirection_100m, winddirection_120m, winddirection_160m, winddirection_200m, temperature_10m, temperature_40m, temperature_80m, temperature_100m, temperature_120m, temperature_160m, temperature_200m
|
Each specified attribute will be returned as a column in the resultant CSV download. |
names | Yes |
Type: comma delimited integer array
Default: None
Options:2017, 2018, 2019, 2020, 2021
|
The year(s) for which data should be extracted. |
interval | No |
Type: integer
Default: 60
Options: 15, 30, 60
|
Desired data timestep resolution in minutes. |
utc | No |
Type: true or false
Default: true
|
Pass true to retrieve data with timestamps in UTC. Pass false to retrieve data with timestamps converted to local time of data point (without daylight savings time). |
leap_day | No |
Type: true or false
Default: false
|
Pass true to retrieve data including leap day (where appropriate). Pass false to retrieve data excluding leap day. |
full_name | No |
Type: string
Default: None
|
The full name of the user requesting data. |
Yes |
Type: email string
Default: None
|
An active email for the user requesting data. This email will be used to deliver the extracted data. | |
affiliation | No |
Type: string
Default: None
|
The organization with which the user requesting the data is affiliated. |
reason | No |
Type: string
Default: None
|
The reason that the user is requesting the data. |
The response is composed of service-related informational fields and the results of the data query.
Field | Value | Description |
---|---|---|
errors |
Type: string array
|
A list of error messages |
inputs |
Type: Object Hash
|
Key: Value pairs representing all input parameters |
outputs |
Type: Object Hash
|
Upon successful completion a message will be returned informing the user that file generation is in progress and an email will be sent to the address provided in the email input field when the download is ready |
GET /api/wind-toolkit/v2/wind/seasia-wtk-download.json?wkt=POINT(113.77092705447598+2.551330885926646)&attributes=pressure_0m,pressure_100m,pressure_200m,windspeed_10m,windspeed_40m,windspeed_80m,windspeed_100m,windspeed_120m,windspeed_160m,windspeed_200m,winddirection_10m,winddirection_40m,winddirection_80m,winddirection_100m,winddirection_120m,winddirection_160m,winddirection_200m,temperature_10m,temperature_40m,temperature_80m,temperature_100m,temperature_120m,temperature_160m,temperature_200m&years=2017&names=2017&interval=60&full_name=Data%20Lover&email=data.lover%40gmail.com&affiliation=NREL&mailing_list=false&reason=docs&api_key=thekeygoeshere
{
"inputs": {
"body": {},
"params": {},
"query": {
"email": "data.lover@gmail.com",
"wkt": "POINT(113.77092705447598 2.551330885926646)",
"attributes": "pressure_0m,pressure_100m,pressure_200m,windspeed_10m,windspeed_40m,windspeed_80m,windspeed_100m,windspeed_120m,windspeed_160m,windspeed_200m,winddirection_10m,winddirection_40m,winddirection_80m,winddirection_100m,winddirection_120m,winddirection_160m,winddirection_200m,temperature_10m,temperature_40m,temperature_80m,temperature_100m,temperature_120m,temperature_160m,temperature_200m",
"years": "2017",
"names": "2017",
"interval": "60"
}
},
"metadata": {
"version": "2.0.0",
"resultset": {
"count": 1
}
},
"status": 200,
"outputs": {
"message": "File generation in progress. An email will be sent to data.lover@gmail.com when the download is ready.",
"downloadUrl": "https://mapfiles.nrel.gov/data/wind/a9d037f35f0ebb12861ec7ccb883c730.zip"
},
"errors": []
}
GET /api/wind-toolkit/v2/wind/seasia-wtk-download.csv?wkt=POINT(113.77092705447598+2.551330885926646)&attributes=pressure_0m,pressure_100m,pressure_200m,windspeed_10m,windspeed_40m,windspeed_80m,windspeed_100m,windspeed_120m,windspeed_160m,windspeed_200m,winddirection_10m,winddirection_40m,winddirection_80m,winddirection_100m,winddirection_120m,winddirection_160m,winddirection_200m,temperature_10m,temperature_40m,temperature_80m,temperature_100m,temperature_120m,temperature_160m,temperature_200m&years=2017&names=2017&interval=60&full_name=Data%20Lover&email=data.lover%40gmail.com&affiliation=NREL&mailing_list=false&reason=docs&api_key=thekeygoeshere
SiteID,1106191,Site Timezone,8,Data Timezone,0,Longitude,113.781815,Latitude,2.5419033
Year,Month,Day,Hour,Minute,surface air pressure (Pa),air pressure at 100m (Pa),air pressure at 200m (Pa),wind speed at 10m (m/s),wind speed at 40m (m/s),wind speed at 80m (m/s),wind speed at 100m (m/s),wind speed at 120m (m/s),wind speed at 160m (m/s),wind speed at 200m (m/s),wind direction at 10m (deg),wind direction at 40m (deg),wind direction at 80m (deg),wind direction at 100m (deg),wind direction at 120m (deg),wind direction at 160m (deg),wind direction at 200m (deg),air temperature at 10m (C),air temperature at 40m (C),air temperature at 80m (C),air temperature at 100m (C),air temperature at 120m (C),air temperature at 160m (C),air temperature at 200m (C)
2017,1,1,0,30,96840,95660,94570,1.2,1.68,1.95,2.04,2.08,2.0300000000000002,1.9000000000000001,158.09,152.8,159.66,161.66,163.75,164.03,163.04,23.64,23.13,22.740000000000002,22.61,22.580000000000002,22.26,22.11
2017,1,1,1,30,96830,95630,94520,1.17,1.37,1.46,1.52,1.57,1.59,1.59,152.27,146.88,143.67000000000002,144.20000000000002,143.83,143.81,141.73,25.66,25.11,24.67,24.44,24.400000000000002,23.78,23.38
2017,1,1,2,30,96790,95600,94500,1.26,1.45,1.47,1.49,1.49,1.51,1.48,152.24,150.24,147.84,148.20000000000002,148.20000000000002,146.91,144.87,26.810000000000002,26.11,25.580000000000002,25.330000000000002,25.27,24.61,24.28
2017,1,1,3,30,96730,95550,94450,0.75,0.8,0.77,0.78,0.76,0.77,0.73,181.44,180.41,181.57,182.61,185.11,183.92000000000002,187.23,27.59,26.91,26.37,26.1,26.03,25.39,25.01
2017,1,1,4,30,96660,95480,94380,0.77,0.97,1.09,1.1,1.1300000000000001,1.11,1.1300000000000001,312.82,313.18,313.42,312.09000000000003,311.63,311.32,310.97,27.97,27.32,26.79,26.53,26.47,25.82,25.44
2017,1,1,5,30,96560,95380,94290,1.22,1.57,1.72,1.78,1.8,1.82,1.83,322.52,319.88,320.18,319.7,319.31,319.21,319.47,28.02,27.42,26.900000000000002,26.650000000000002,26.59,25.96,25.54
2017,1,1,6,30,96460,95290,94190,1.8800000000000001,2.44,2.71,2.74,2.79,2.79,2.7800000000000002,305.38,303.19,302.81,302.87,303.02,302.92,302.97,27.91,27.37,26.86,26.62,26.560000000000002,25.94,25.53
2017,1,1,7,30,96390,95210,94120,2.0300000000000002,2.66,3.0100000000000002,3.1,3.15,3.17,3.22,320.96,318.09000000000003,317.99,317.19,317.19,316.99,316.54,27.5,27.05,26.61,26.34,26.32,25.7,25.330000000000002
2017,1,1,8,30,96390,95200,94120,1.83,2.79,3.39,3.54,3.7,3.75,3.8000000000000003,341.08,337.3,337.25,337.04,336.11,337.64,340.37,26.7,26.42,26.04,25.830000000000002,25.79,25.240000000000002,24.830000000000002
2017,1,1,9,30,96460,95290,94200,2.36,4.07,5.15,5.3,5.3100000000000005,5.03,4.76,357.17,354.44,352.28000000000003,352.28000000000003,352.59000000000003,354.05,355.84000000000003,25.39,25.71,25.59,25.39,25.37,24.82,24.35
2017,1,1,10,30,96530,95360,94260,2.11,3.77,4.5,4.49,4.36,4.17,4.0600000000000005,3.72,355.64,351.83,351.5,351.26,351.86,353.41,24.96,25.62,25.650000000000002,25.43,25.38,24.85,24.32
Rate limits for this application are significantly less than the standard rate limits for developer.nrel.gov. This decrease in the limit is required as the data provided through this service is significantly more computationally intensive to generate and provide. These rate limits are carefully calculated to allow all users the maximum throughput that our servers can sustain.
There are several levels of rate limiting for this service. The first limit determines how many requests a given user can make per 24 hour period. For requests utilizing the .csv format this rate limit is set at 5000 a day at a frequency of no more than 1 per second. For all other requests this limit is set at 1000 requests per day at a frequency of no more than 1 every 2 seconds.
Secondly each user is limited to 20 in-flight requests at any given time.
In addition, the service has a fail-safe mechanism to prevent significant performance decreases that can be caused by unexpectedly high usage of the service. This limit will cause the service to stop accepting requests when the queue reaches a point where additional requests will significantly lower server performance. When this limit is hit, the service will error with a message describing that the request queue is full.
For some tips and tricks to maximize data downloads please read the guide here.
For questions about the API or the data models please contact WindToolkit@nrel.gov
Standard errors may be returned. In addition, the following service-specific errors may be returned:
HTTP Status Code | Description |
---|---|
400 | Bad Request: When required parameters are missing. |