Hourly observations from 304 airport weather stations in the US, as shown on the Weather pages: one METAR an hour per station, live from the station's reports and, two days behind, replaced by NOAA's quality-checked archive (GHCNh). What every API here shares (station prefixes, times, units, CSV and JSON, compression, caching) is on the Data API page.

Every station reports the same seven quantities, each a numbered channel:

ChannelQuantityUnit
0Temperature°C
1Dew point temperature°C
2Relative humidity%
3Sea level pressurehPa
4Wind direction, where the wind blows from (no value when calm or variable)degrees from north
5Wind speedm/s
6Clouds: 0 clear, 2 few, 4 scattered, 6 broken, 10 overcasttenths of the sky

A station that does not measure a quantity leaves that channel out (or its column empty).

EndpointReturns
locationsCSV: every station, or the nearest ones to a point
currentCSV: the latest reading of one station, or of every station
dataCSV: one station's readings over a time range, in pages
historyCSV: every station, hour by hour, for the last 24 hours
sensorsJSON: one station's metadata and channels
yyyymmJSON: the months that have data
searchJSON: stations whose name matches a text
graphsJSON: the charts of the report page
ParameterRequiredDescription
lat, lngNoA point in degrees; the stations come nearest first, 3 of them unless limit says otherwise.
limitNoThe most stations to return.
https://larsi.org/api/weather/locations?lat=43.1&lng=-77.6&limit=2
label,value,lat,lng,ele,description,last_epoch,time_zone_name
"Rochester, Greater Rochester International Airport, NY, US",kroc,43.117,-77.677,164.3,"Rochester, NY, US",1795488840,America/New_York
"Buffalo, Greater Buffalo International Airport, NY, US",kbuf,42.941,-78.736,218.2,"Buffalo, NY, US",1795488840,America/New_York

value is the station's prefix, ele its elevation in meters, last_epoch the time of its latest reading, time_zone_name its IANA time zone (empty when unknown).

With prefix, the latest reading of that station, one row per channel:

https://larsi.org/api/weather/current?prefix=kroc
channel,value,epoch
0,3.9,1795488840
1,-0.6,1795488840
2,72,1795488840
...

Without prefix, every station that reported within the last 3 hours, one row per station and one column per channel (an empty field where the station has no value):

stationId,name,lat,lng,0,1,2,3,4,5,6
kroc,"Rochester, NY, US",43.117,-77.677,3.9,-0.6,72,1022.2,330,6.2,2
...

One station's readings over a time range, one row per reading: t (epoch seconds), s (the channel), v (the value), in order of time, then channel.

ParameterRequiredDescription
prefixYesThe station.
sinceYesStart, epoch seconds, inclusive.
untilNoEnd, epoch seconds, exclusive. Absent: up to now (such a response is not cached).
limitNoThe most timestamps (not rows) one response holds; at most 50,000 in any case.
sensorsNoA comma-separated list of channels, e.g. 0,1. Absent: every channel.
https://larsi.org/api/weather/data?prefix=kroc&sensors=0,1&since=1795400000&until=1795410000
t,s,v
1795402440,0,11.7
1795402440,1,8.3
1795406040,0,11.7
...

Paging. A response holds whole timestamps only, every row stored for each t it contains, and at most limit (50,000) of them. It may hold fewer than that; only a response with no rows means there is nothing more before until. To read a range, repeat the request with since set to the last t plus 1 until a response comes back empty (or since reaches until). Rows are independent: a timestamp has no fixed set of channels. A year of one station is about 8,760 timestamps, so it is one request, and the second comes back empty. In JavaScript with D3:

function fetchAll(url, since, until) {
  var rows = [];
  function page(from) {
    return d3.csv(url + "&since=" + from + "&until=" + until).then(function(data) {
      if (!data.length) return rows;
      rows = rows.concat(data);
      var next = +data[data.length - 1].t + 1;
      return next < until ? page(next) : rows;
    });
  }
  return page(since);
}

fetchAll("https://larsi.org/api/weather/data?prefix=kroc&sensors=0,1", 1793509200, 1796187600);

Every station that reported in the last 24 hours, one row per station and hour, for the map's history slider. No parameters.

stationId,name,lat,lng,bucket,epoch,0,1,2,3,4,5,6
kroc,"Rochester, NY, US",43.117,-77.677,1795406400,1795409640,11.7,8.9,82,1009.3,220,4.1,2
kroc,"Rochester, NY, US",43.117,-77.677,1795410000,1795413240,11.7,8.9,82,1008.7,230,5.1,2
...

bucket is the top of the hour, the same for every station; epoch is when that station's reading in the hour was taken. An hour appears only once it is complete, at half past the next hour.

One station's metadata and its channels, with the number of readings, the latest one's time and the lowest and highest value of each.

https://larsi.org/api/weather/sensors?prefix=kroc
{"prefix":"kroc","label":"Rochester, NY, US","lat":43.117,"lng":-77.677,"ele":164.3,
 "time_zone":-5,"time_zone_name":"America/New_York",
 "sensors":[{"value":0,"label":"Temperature","property":"Temperature","unit":"C",
             "count":3697,"last_epoch":1795488840,"v_min":0,"v_max":34.4}, ...]}

time_zone is the standard UTC offset in hours (without daylight saving time), time_zone_name the IANA zone, left out when unknown. In sensors, value is the channel.

The months that have data, by year.

ParameterRequiredDescription
prefixNoOne station. Absent: any station (slow: it reads the whole table).
sensorsNoOnly these channels, comma-separated.
time_zoneNoWhose calendar months: an IANA name (America/New_York) or an offset (-05:00). Absent: UTC.
https://larsi.org/api/weather/yyyymm?prefix=kroc&time_zone=America/New_York
{"2025":[1,2,3,4,5,6,7,8,9,10,11,12],"2026":[1,2,3,4,5,6,7,8,9,10,11]}

Stations whose name contains term, at most limit (default 10), for an autocomplete.

https://larsi.org/api/weather/search?term=roch&limit=2
[{"label":"Rochester, Greater Rochester International Airport, NY, US","value":"kroc"}]

The charts the report page draws, each a d3.easygraph preset and its channels. No parameters; it serves that page and may change with it.

[{"preset":"temperatureF","sensors":[0,1]},{"preset":"relativeHumidity","sensors":[2]}, ...]