Skip to main content

Environment (v2)

Legacy environment datasets expose rolling measurements per site. Both routes require an authenticated user token and return measurement arrays with a simple meta object containing the server timestamp.

GET /v2/environment/environment-by-site

Returns paginated environment readings for all sites.

Query parameters

NameTypeDefaultNotes
limitinteger1000Maximum rows returned (capped at 10000).
offsetinteger0Number of rows to skip.

Response fields (data[])

FieldTypeDescription
datedatetimeUTC timestamp of the aggregated measurement.
site_idstringFisheries Directorate site identifier.
site_namestringOfficial site name.
area_namestringProduction area name (if mapped).
area_idintegerProduction area identifier (if mapped).
temperature_shallow / temperature_medium / temperature_deep / temperature_unknown_depthnumberAverage temperature (°C) rounded to one decimal place for each depth band.
salinity_shallow / salinity_medium / salinity_deep / salinity_unknown_depthnumberAverage salinity (PSU) rounded to one decimal place.
oxygen_shallow / oxygen_medium / oxygen_deep / oxygen_unknown_depthnumberAverage dissolved oxygen values rounded to one decimal place.
oxygen_unitstringUnit used for oxygen measurements (for example mg/L).

meta.time contains the response timestamp (YYYY-MM-DDTHH:MM:SS.sssZ).

Example

curl -X GET "https://api.aquacloud.ai/v2/environment/environment-by-site?limit=200&offset=0" \
-H "Authorization: Bearer $TOKEN" \
-H "x-client-secret: $CLIENT_SECRET"

GET /v2/environment/environment-by-site-30-days

Produces the same payload shape as the paginated endpoint but restricts the dataset to the last 30 days. Pagination parameters are optional but follow the same limits as above.

Use this endpoint when you need a quick recent snapshot without controlling from_date/to_date filters.