Readings from the sensor nodes shown on the Sensors pages: reading them is open to anyone, logging new readings takes an API key. What every API here shares (station prefixes, times, units, CSV and JSON, compression, caching) is on the Data API page. Setting up a node of your own? Start with Add a Sensor Node to get an API key and see a quickstart example first.

A station (prefix, e.g. batcave) has up to 16 devices, and each device up to 16 channels; a reading belongs to one channel, numbered 0-255 across the station (channel = 16 × device + channel id, see Data Channel below). What a channel measures, in which unit, is in the station's sensors.

EndpointReturns
locationsCSV: every station, or the nearest ones to a point
devicesJSON: every device of every station, with its latest reading's time
currentCSV: the latest reading of each channel of a station
dataCSV: a station's readings over a time range, in pages
sensorsJSON: a station's metadata and channels
yyyymmJSON: the months that have data
reports, graphsJSON: a station's report pages and their charts
searchJSON: stations whose prefix matches a text

Every station, by prefix; with lat and lng (degrees) nearest first. limit caps the number.

https://larsi.org/api/sensors/locations
label,value,lat,lng,ele,last_epoch
"larsi.org, Rochester, NY",batcave,43.1138,-77.5648,147,1795494897
"BUILDlab, Dryden, NY",buildlab,42.4851,-76.3047,349,1519345405
"SBIR's Test Chamber, Dryden, NY",thecoop,42.4851,-76.3048,349,1471748693

value is the prefix, ele the elevation in meters, last_epoch the time of the station's latest reading.

Every device of every station, sorted by prefix and device id. last_epoch is null for a device that never logged, time_zone_name (the station's IANA zone) null when unknown. No parameters.

[{"prefix":"batcave","description":"larsi.org, Rochester, NY","device_id":0,
  "device_name":"Weather Basement","last_epoch":1795494897,"time_zone_name":"America/New_York"}, ...]

The latest reading of each channel of a station (prefix, required). Devices log on their own schedules, so each channel has its own epoch.

https://larsi.org/api/sensors/current?prefix=batcave
channel,value,epoch
0,21,1795494897
1,6.9,1795494897
2,40,1795494897
...

A 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. It reads in pages, exactly as the weather data endpoint does (see Paging there): a response holds whole timestamps only, at most limit or 50,000 of them, and only an empty response means there is nothing more; ask again from the last t plus 1.

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 (device 1's channels are 16-31). Absent: every channel.
https://larsi.org/api/sensors/data?prefix=batcave&sensors=0,1&since=1795400000&until=1795401000
t,s,v
1795400266,0,21.3
1795400266,1,8.7
1795400567,0,21.3
1795400567,1,8.6
...

A month of one device fits one response (a reading a minute is 44,640 timestamps); a whole station since its first reading takes several.

A station's metadata and every channel: the device's name (label), the sensor's model, what it measures and in which unit, the number of readings, the latest one's time, and the lowest and highest value.

https://larsi.org/api/sensors/sensors?prefix=batcave
{"prefix":"batcave","label":"larsi.org, Rochester, NY","lat":43.1138,"lng":-77.5648,"ele":147,
 "time_zone":-5,"time_zone_name":"America/New_York",
 "sensors":[{"value":0,"label":"Weather Basement","sensor":"BME280","property":"Temperature","unit":"C",
             "count":22278,"last_epoch":1795494897,"v_min":17.9,"v_max":27}, ...]}

value is the channel. time_zone is the standard UTC offset in hours (without daylight saving time), time_zone_name the IANA zone, left out when unknown. count is refreshed periodically, not on every reading.

The months of a station (prefix) that have data, by year. sensors limits it to some channels, time_zone (an IANA name or an offset like -05:00; absent: UTC) says whose calendar months.

https://larsi.org/api/sensors/yyyymm?prefix=batcave&time_zone=America/New_York
{"2026":[8,9,10,11]}

The report pages of a station and the charts on each, as the Sensors pages draw them: each chart is a d3.easygraph preset and the channels it plots. They serve those pages and may change with them.

https://larsi.org/api/sensors/reports?prefix=batcave
[{"id":"batcave-weather","name":"Weather"},{"id":"batcave-test","name":"Test"}]

https://larsi.org/api/sensors/graphs?report-id=batcave-weather
{"prefix":"batcave","graphs":[{"preset":"temperatureF","channels":[0,1,16,17]},{"preset":"relativeHumidity","channels":[2,18]}, ...]}

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

https://larsi.org/api/sensors/search?term=bat
[{"label":"larsi.org, Rochester, NY","value":"batcave"}]

A sensor node logs its readings with three POST endpoints: log (the readings), provision (optional: names the device and its channels) and config (a device's configuration file). All three take the station's API key.

Two things recur throughout this API: an API key that authenticates every request, and a channel number that addresses every reading.

An API key authenticates every request and is tied to your location record (see Get an API Key). It's always exactly 16 characters: a letter (A-Z/a-z), followed by 15 more characters from A-Z, a-z, 0-9, -, or _ - e.g. Kx7bQ2m-Z9p_LhWa. If you're validating or pre-filling it in your own device's setup (as the ESP32 sensor-node library does), match this shape:

^[A-Za-z][A-Za-z0-9_-]{15}$

Every reading is logged against a single channel number, 0-255. Channels are grouped into 16 devices of 16 channels each, so a channel number splits into a device id (0-15) and a per-device channel id (0-15):

channel = 16 × device_id + channel_id
channel = device_id << 4 | channel_id

It's really just one byte, with the upper nibble as the device id and the lower nibble as the channel id:

76543210
device id channel id

Send a POST request to:

https://larsi.org/api/sensors/log

Use https:// directly rather than http:// - an initial plain HTTP request would expose your API key before the redirect to HTTPS ever happens.

Only POST is accepted - GET is not supported, so the API key never ends up in the web server's access log.

ParameterRequiredDescription
keyYesYour API key.
deviceYesDevice id, 0-15 (see device id above).
dataYesA channel value list (see below).

Any client that can POST a standard form-encoded body works. From the command line:

curl https://larsi.org/api/sensors/log \
  -d "key=YOUR_KEY" \
  -d "device=0" \
  -d "data=72.5,45.2,1013.2"

curl -d sends a POST with a standard application/x-www-form-urlencoded body by default - no extra headers needed.

data takes a comma-separated list of values, where each value's position in the list is its channel id within device - there's no implicit default device, so it's always explicit which device a reading belongs to:

key=YOUR_KEY&device=0&data=72.5,45.2,1013.2

Logs channel 0 = 72.5, channel 1 = 45.2, channel 2 = 1013.2, all on device 0. Leave a value blank to skip that channel entirely - it won't be logged at all, not logged as zero:

key=YOUR_KEY&device=0&data=72.5,,1013.2

Logs channel 0 = 72.5 and channel 2 = 1013.2; channel 1 is skipped.

To log a second device's channels without colliding with the first device's numbering (see the bit layout above), use its device id instead:

key=YOUR_KEY&device=1&data=72.5,45.2

Logs channel 16 = 72.5, channel 17 = 45.2.

A single request can also carry several readings at once, each with its own timestamp - meant for a node that buffers readings (e.g. between deep-sleep cycles) and flushes them together in one connection rather than reporting every single one immediately. Send repeated data[] and t[] fields instead of the plain scalar form, one pair per reading:

key=YOUR_KEY&device=0&data[]=72.5,45.2&t[]=0&data[]=71.9,44.8&t[]=300

Each t[] is how many seconds before this request was received that reading was actually taken - not an absolute timestamp, since a device's own clock isn't trusted for that. t[]=0 is "just now"; the example above logs one reading now and a second from 5 minutes ago. data[] and t[] must have the same number of entries, paired by position. A t[] too large for this device's own reporting cadence to plausibly explain (more than 64 log intervals ago) is dropped - that entry alone doesn't get logged, but the rest of the batch still does.

The response is plain text. Every request starts with a line confirming the timestamp used, followed by Data logged once at least one channel was actually inserted (a batched request instead reports how many of its readings logged and how many were dropped):

Logging...
2026-08-13 20:15:32 (1786652132)
Data logged

A successful request may also carry a one-shot test command, set by hand server-side against a specific device for manual testing (e.g. "open the setup portal on next boot") - not a general remote-command channel, and never present unless something logged successfully:

Logging...
2026-08-13 20:15:32 (1786652132)
Data logged
Command: open_portal

On failure, nothing is logged and one of these appears instead:

MessageCause
POST requiredRequest wasn't sent as POST.
Key, device, and data arguments requiredMissing key, device, or data parameter.
Key not foundInvalid key.
Invalid device argumentdevice isn't a plain non-negative number.
Invalid data/t argumentBatched data[]/t[] weren't both present with matching lengths.

Provisioning registers a device and its channels ahead of time, so reports show real labels (a device name and each channel's sensor/property/unit) instead of raw numbers. It's optional - log works fine with no provisioning at all. Server-side, name, logInterval, and reportEvery are all required on every call and always overwrite the stored value (a blank name makes the Sensors table hard to read, so it's rejected outright); channels' sensor/property/unit fields, by contrast, only update the row when a call sends a real value and never get blanked out by a call that leaves one empty - which makes it safe to call repeatedly with the same values, though there's no need to call it on every boot either: the reference ESP32 sensor-node firmware only calls this once, right after its setup portal saves new settings. Every call also resets the device's Zeus alerting: zeus_minutes is set to 12×reportEvery×logInterval and zeus_successful to 1, so a device stays flagged as down for at most 12 missed report cycles (a report being reportEvery buffered readings, for a node that batches - see Batched Reports above) and re-provisioning after a reflash clears any stale alert.

Send a POST request to:

https://larsi.org/api/sensors/provision
ParameterRequiredDescription
keyYesYour API key.
deviceYesDevice id, 0-15 (see device id above).
nameYesDevice name - free text, e.g. Weather Basement. There's no separate location field, so the convention is "Name (and Location)": bake a location into the name if a station has (or might grow) more than one device. The reference ESP32 sensor-node firmware makes this field required in its own setup portal too (defaulting to Weather plus the device's last 6 MAC hex digits if left blank), so it's never actually blank by the time a real node calls this endpoint.
macNoDevice's hardware MAC address, 12 hex digits with no separators (e.g. 404CCA4C3D74). Unlike the other fields here, this can't be filled in server-side - a remote HTTP request only ever carries the client's IP, never its link-layer address (routing strips and replaces the Ethernet frame at every hop, and even on the same LAN a web server has no API to read one) - so it's blank on a device whose firmware doesn't send it yet, and never gets blanked out by a call that leaves it empty (same non-empty-upsert rule as channels' fields below). This is inventory/identification only, not an authentication signal - it's self-reported by the same request presenting the key, so anyone who already has a valid key could send any mac value they like. Don't use it to cross-check a request's real origin.
logIntervalYesMinutes between wake/read cycles, 1-1440.
reportEveryYesHow many cycles between log reports, 1-12 - 1 means every cycle is reported immediately (no buffering). Used together with logInterval to set zeus_minutes (12×reportEvery×logInterval) for per-device alerting - see above.
channelsYesA |-separated list of channel_id,sensor,property,unit quadruples.
curl https://larsi.org/api/sensors/provision \
  -d "key=YOUR_KEY" \
  -d "device=0" \
  -d "name=Weather Basement" \
  -d "mac=404CCA4C3D74" \
  -d "logInterval=5" \
  -d "reportEvery=1" \
  -d "channels=0,BME280,Temperature,C|1,BME280,Humidity,%"

Each entry in channels is channel_id,sensor,property,unit - e.g. 0,BME280,Temperature,C registers channel 0 as a BME280 sensor reporting Temperature in C. sensor is the physical hardware's model name (e.g. BME280, DS18B20, SHT15). channel_id must be 0-15 (see Data Channel above).

The response is plain text, confirming what was created or updated:

Provisioning...
Provisioned
Device mydevice[0]: created, 2 new channel(s) added, 0 channel(s) updated

The device status is created, updated, or unchanged, depending on whether this call's name actually changed anything.

On failure, nothing is created and one of these appears instead:

MessageCause
POST requiredRequest wasn't sent as POST.
Key, device, name, logInterval, reportEvery, and channels arguments requiredMissing key, device, name, logInterval, reportEvery, or channels parameter.
Key not foundInvalid key.
Invalid device argumentdevice outside 0-15.
Name argument requiredname was present but blank (or all whitespace).
Invalid logInterval argumentlogInterval outside 1-1440.
Invalid reportEvery argumentreportEvery outside 1-12.

Some devices need more configuration than provision's fixed fields cover - e.g. the ESP32 sensor-node library's DS18B20GridNode example, which reads a per-deployment grid layout of probe ROM IDs. config serves that kind of file back to the device it belongs to, gated by the same API key as every other endpoint here.

Unlike log/provision, this isn't self-service: the config file itself is hand-authored server-side per device, not something you can register through this API. Send a POST request to:

https://larsi.org/api/sensors/config
ParameterRequiredDescription
keyYesYour API key.
deviceYesDevice id, 0-15 (see device id above).

The response is the config file's raw content (no preamble, unlike log/provision's human-readable responses - this one's meant to be parsed directly) on success, or a non-200 status with a plain-text error otherwise: 400 for a missing/invalid key or device, 404 if no config file exists yet for that device.