Skip to content

Data and services

Data access API

The LifeWatch service exposes the raw station measurements through HTTP GET requests, with JSON responses. The explorer uses exactly the same routes.

Checking the LifeWatch API
Base address
https://<domeniu>/lifewatch-api

Usage notes

  • The /lifewatch-api route is served from the same address as the site, through a proxy, so it also works from the browser without any CORS setup.
  • The interval of a measurement request must be shorter than 7 days. The response has at most 50,000 rows.
  • Time zone, time step and missing values are described in documentation.

GET/health

Starea serviciului

Returns the service status. The explorer checks it on start-up to choose between real and demo data.

Request
curl "https://<domeniu>/lifewatch-api/health"
Response, shortened
{ "status": "healthy" }

GET/stations

Station list

All stations, with their type (weather or eddy covariance) and the methane sensor flag.

Request
curl "https://<domeniu>/lifewatch-api/stations"
Response, shortened
[
  { "id": 1, "name": "Stația 1 - Ilfov, Cornetu", "kind": "meteorological", "has_ch4": null }
]

GET/stations/{id}

A station's record

Station coordinates and the variables it measures, with units and descriptions.

ParametruTypeDescriere
idintegerStation identifier from the list above.
Request
curl "https://<domeniu>/lifewatch-api/stations/1"
Response, shortened
{
  "id": 1, "name": "Stația 1 - Ilfov, Cornetu", "kind": "meteorological",
  "location": { "latitude": 44.334, "longitude": 25.966 },
  "variables": [{ "name": "air_temperature", "label": "Air temperature", "units": "°C", "description": "" }]
}

GET/stations/{id}/measurements

Time series

Values of the requested variables over the chosen interval. The interval must be shorter than 7 days, and the response has at most 50,000 rows.

ParametruTypeDescriere
variablestext, repetabilOne or more variables: variables=air_temperature&variables=air_humidity.
sinceISO 8601Start of the interval, for example 2026-10-01T00:00:00Z.
untilISO 8601End of the interval.
Request
curl "https://<domeniu>/lifewatch-api/stations/1/measurements?variables=air_temperature&since=2026-10-01T00:00:00Z&until=2026-10-02T00:00:00Z"
Response, shortened
{
  "variables": ["air_temperature"],
  "timestamps": { "air_temperature": ["2026-10-01T00:00:20Z", "..."] },
  "measurements": { "air_temperature": [11.4, "..."] }
}

GET/variables

Catalogul variabilelor

All variables known to the service, with the station type, unit and description.

Request
curl "https://<domeniu>/lifewatch-api/variables"
Response, shortened
[
  { "id": "air_temperature", "name": "Air temperature", "kind": "meteorological", "units": "°C", "description": "" }
]

GET/stations/snapshot

Availability by station

For a variable and an interval, the number of records of each station, with its coordinates.

ParametruTypeDescriere
variabletextThe variable counted.
since, untilISO 8601The interval, optional.
Request
curl "https://<domeniu>/lifewatch-api/stations/snapshot?variable=air_temperature"
Response, shortened
{
  "stations": [{ "id": 1, "name": "Stația 1 - Ilfov, Cornetu", "location": { "latitude": 44.334, "longitude": 25.966 }, "count": 4320 }]
}

Serviciul LTSER

Remote sensing, aggregated network values and social indicators come from a second service, published at /ltser-api. Its contract is documented with the explorer's code. Until it goes live, the explorer shows these modules with demo data, marked as such.

LifeWatch Romania is the University of Bucharest's collocated LifeWatch, eLTER and ICOS research infrastructure. The Brăila and Sinaia stations are coordinated by the Research Centre in Systems Ecology and Sustainability (RCSES) at the Faculty of Biology.

University of BucharestRCSES, Research Centre for Systems Ecology and Sustainability