Environmental sensors
api.realtimeapi.ai/v1/sensordata/stations/near
Environmental sensors: Stations near a point. Stations of every network (usgs, coops, openaq) within radius_km of a point, nearest first, with the parameters each reports and the distance in metres. Refreshes every 24 hours.
GET
https://api.realtimeapi.ai/v1/sensordata/stations/nearUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.realtimeapi.ai/v1/sensordata/stations/near");
console.log(await res.json());Example input
{}More from Environmental sensorsProvider status
- api.realtimeapi.ai/v1/sensordata/air/nearEnvironmental sensors: Air quality near a point. Air quality monitors within radius_km of a point with their latest readings (PM2.5, PM10, O3, NO2, SO2, CO as integers in the stated scale) and the US EPA AQI of the worst pollutant, nearest first. Refreshes every 60 minutes.0.01
- api.realtimeapi.ai/v1/sensordata/air/openaq_2178Environmental sensors: Air quality at a monitor. Latest readings at one OpenAQ monitor (station_id openaq_{location_id}) with the US EPA AQI. An id that is not tracked returns status pending with known false; find ids with /stations/near. Refreshes every 60 minutes.0.005
- api.realtimeapi.ai/v1/sensordata/quakes/recentEnvironmental sensors: Recent earthquakes. Earthquakes from the USGS feed in the last `hours` (1 to 720), optionally at or above `min_mag` and within radius_km of a point, newest first, with magnitude and depth as integers (milli). Refreshes every 60 seconds.0.005
- api.realtimeapi.ai/v1/sensordata/tides/8518750Environmental sensors: Tide station latest. Latest observed water level at a NOAA CO-OPS station in metres above MLLW (milli), with the next predicted high and low and whether the tide is rising or falling. Refreshes every 6 minutes.0.005
- api.realtimeapi.ai/v1/sensordata/tides/8518750/predictionsEnvironmental sensors: Tide predictions for a day. Predicted high and low tides (metres above MLLW, UTC) at a NOAA CO-OPS station for one UTC date, today by default, up to 7 days ahead. Refreshes every 24 hours.0.005
- api.realtimeapi.ai/v1/sensordata/water/gauge/01646500Environmental sensors: River gauge latest. Latest gage height (feet), discharge (cubic feet per second) and water temperature at a USGS site, with the NWS flood categories and the current flood status. Refreshes every 15 minutes.0.005
- api.realtimeapi.ai/v1/sensordata/water/gauge/01646500/historyEnvironmental sensors: River gauge history (Pro). Readings for the last 7 days at a USGS site, newest first, every parameter, with observed_at and ingested_at so a backtest can select what was known at a time. Refreshes every 15 minutes.0.02
