Typical-year weather data of 2,014 stations in the EnergyPlus Weather (EPW) format, as shown on the EPW pages: one synthetic year of 8,760 hourly values per station (TMY3 for most US stations; IWEC, CWEC, SWERA, CSWD and other series elsewhere), for building energy simulation. A station's prefix is its six-digit WMO number, e.g. 725290 for Rochester, NY. What every API here shares (times, units, CSV and JSON, compression, caching) is on the Data API page.
| Endpoint | Returns |
|---|---|
locations | CSV: every station, or the nearest ones to a point |
sensors | JSON: one station's metadata |
search | JSON: stations whose name matches a text |
/epw/data/<prefix>.csv | CSV: a station's 8,760 hourly values (a file, not an endpoint) |
locationsEvery station; with lat and lng (degrees) the nearest ones first, 3 unless limit says otherwise. limit caps the number. The whole list never changes, so it is also a file, https://larsi.org/api/epw/locations.csv, which is quicker.
https://larsi.org/api/epw/locations?lat=43.1&lng=-77.6&limit=2
label,value,lat,lng,ele "Rochester Greater Rochester I, NY, USA",725290,43.12,-77.68,183 "Trenton, ON, CAN",716210,44.12,-77.53,86
value is the prefix, ele the elevation in meters.
sensorsOne station's metadata. time_zone is its UTC offset in hours: EPW data is in standard time all year, without daylight saving time. name is the EPW file's name.
https://larsi.org/api/epw/sensors?prefix=725290
{"prefix":"725290","label":"Rochester Greater Rochester I, NY, USA","lat":43.12,"lng":-77.68,"ele":183,
"time_zone":-5,"name":"USA_NY_Rochester-Greater.Rochester.Intl.AP.725290_TMY3","sensors":[]}
searchStations whose name contains term, at most limit (default 10), for an autocomplete.
https://larsi.org/api/epw/search?term=roch&limit=2
[{"label":"Rochester International Arpt, MN, USA","value":"726440","name":"USA_MN_Rochester.Intl.AP.726440_TMY3"},
{"label":"Rochester Greater Rochester I, NY, USA","value":"725290","name":"USA_NY_Rochester-Greater.Rochester.Intl.AP.725290_TMY3"}]
Each station's year is a static CSV file, https://larsi.org/epw/data/<prefix>.csv: a header line, then 8,760 rows, one per hour, January 1 00:00 to December 31 23:00 in the station's standard time. Each column header is the quantity and its unit, separated by |.
https://larsi.org/epw/data/725290.csv
Date/Time,Dry Bulb Temperature|C,Dew Point Temperature|C,Relative Humidity|%,Atmospheric Station Pressure|Pa,... 01/01 00:00,-2.2,-2.8,96,99500,0,0,267,0,0,0,0,0,0,0,0,0.0,10,9 01/01 01:00,-2.0,-2.6,96,99500,0,0,268,0,0,0,0,0,0,0,300,1.0,10,9 ...
| Column | Quantity | Unit |
|---|---|---|
| 1 | Date/Time, MM/DD hh:mm | |
| 2 | Dry bulb temperature | °C |
| 3 | Dew point temperature | °C |
| 4 | Relative humidity | % |
| 5 | Atmospheric station pressure | Pa |
| 6-7 | Extraterrestrial horizontal and direct normal radiation | Wh/m² |
| 8 | Horizontal infrared radiation from the sky | Wh/m² |
| 9-11 | Global horizontal, direct normal and diffuse horizontal radiation | Wh/m² |
| 12-14 | Global horizontal, direct normal and diffuse horizontal illuminance | lux |
| 15 | Zenith luminance | cd/m² |
| 16 | Wind direction, where the wind blows from | degrees from north |
| 17 | Wind speed | m/s |
| 18-19 | Total and opaque sky cover | tenths of the sky |
The original EPW files, with every field of the format, are in the download folder (gzipped, named as in sensors' name).