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
| Name | Type | Default | Notes | 
|---|---|---|---|
| limit | integer | 1000 | Maximum rows returned (capped at 10000). | 
| offset | integer | 0 | Number of rows to skip. | 
Response fields (data[])
| Field | Type | Description | 
|---|---|---|
| date | datetime | UTC timestamp of the aggregated measurement. | 
| site_id | string | Fisheries Directorate site identifier. | 
| site_name | string | Official site name. | 
| area_name | string | Production area name (if mapped). | 
| area_id | integer | Production area identifier (if mapped). | 
| temperature_shallow/temperature_medium/temperature_deep/temperature_unknown_depth | number | Average temperature (°C) rounded to one decimal place for each depth band. | 
| salinity_shallow/salinity_medium/salinity_deep/salinity_unknown_depth | number | Average salinity (PSU) rounded to one decimal place. | 
| oxygen_shallow/oxygen_medium/oxygen_deep/oxygen_unknown_depth | number | Average dissolved oxygen values rounded to one decimal place. | 
| oxygen_unit | string | Unit 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.