Skip to main content

Common Reference Data

Reference endpoints under /v3/common provide the lookup tables you need to build filters, map identifiers to readable names, and understand AquaCloud geography. Routes are read-only GET endpoints and share the standard v3 authentication: send Authorization: Bearer <token> and, for non-premium tiers, include x-client-secret.

All responses follow the shared schema used across v3 resources:

  • data: the payload described per endpoint below (lists or objects).
  • pagination: present on list endpoints that support paging (offset, limit, has_more).
  • metadata: includes API bookkeeping fields (empty for most reference calls).

Pagination parameters

Only the site listing endpoint is paginated. It accepts:

NameTypeDefaultDetails
offsetinteger ≥ 00Rows to skip.
limitinteger (0–2000)1000Maximum rows returned. Services fetch limit + 1 rows to populate has_more.

Endpoints

GET /v3/common/site

Lists AquaCloud and Fisheries Directorate sites with their geographic context.

FieldTypeDescription
site_idstringOfficial Fisheries Directorate site identifier.
site_namestringRegistered site name.
latitude / longitudenumberCoordinates when available.
placementstringPlacement classification (offshore/onshore).
production_area_id / production_area_nameinteger / stringProduction area metadata.
marine_type_code / marine_type_namestringMarine typology code and friendly name.
marine_type_region_code / marine_type_region_namestringRegional grouping for marine typology.
is_in_aquacloudbooleanWhether the site participates in AquaCloud datasets.
last_registration_datestring (ISO datetime)Timestamp of the most recent registration.

GET /v3/common/site/{site_id}

Fetch a single site record by Fisheries Directorate ID. Returns the same schema as a single element in the list endpoint.

GET /v3/common/production-area

Returns all production areas with display names and geometry references.

FieldTypeDescription
area_idintegerProduction area identifier.
area_namestringRegistered production area name.
area_geojsonstringGeoJSON polygon for the area.
region_namestringOptional region grouping.

GET /v3/common/aquacloud-areas

Lists AquaCloud area groupings that aggregate one or more production areas.

FieldTypeDescription
area_idstringAquaCloud area identifier.
namestringLocalized area name.
name_englishstringEnglish display name.
production_area_idsarray of integersProduction areas that belong to the AquaCloud area.

GET /v3/common/farmers-in-aquacloud

Summary of farmers that currently contribute data.

FieldTypeDescription
namestringFarmer/company name.
number_of_farmers_in_datasetintegerNumber of aggregated entities represented.
production_area_idsarray of integersProduction areas where the farmer has data.
production_region_namesarray of stringsRegion labels with coverage.
is_active_with_databooleanIndicates if recent data is present.

GET /v3/common/farm-and-site-stats

High-level AquaCloud adoption metrics.

FieldTypeDescription
signed_farmersintegerCount of signed farmers.
active_farmersintegerFarmers with recent data.
offshore_sitesintegerOffshore site count in AquaCloud.
onshore_sitesintegerOnshore site count.
recently_active_sitesintegerSites with data in the latest period.

GET /v3/common/marine-typology-types

Returns marine typology codes for classifying sites.

FieldTypeDescription
marine_type_codestringTypology code.
marine_type_namestringHuman-friendly label.

GET /v3/common/marine-typology-regions

Lists marine typology regions used to group sites.

FieldTypeDescription
marine_type_region_codestringRegion code.
marine_type_region_namestringRegion name.

GET /v3/common/generations

Returns generations available in AquaCloud datasets. The list is not paginated.

FieldTypeDescription
generationstringGeneration code (e.g. H2023).
generation_namestringDisplay name (e.g. Høst 2023).

GET /v3/common/farmers-per-po

Provides the number of farmers per production area, useful for context in benchmarking dashboards.

FieldTypeDescription
production_area_idintegerProduction area identifier.
number_of_farmersintegerFarmers contributing data in the area.

Internal helper

GET /v3/common/farmer/me is excluded from the public schema and intended for internal applications that need to resolve the authenticated farmer. It returns the same Farmer schema as the list endpoints.

Example request

GET /v3/common/site?offset=0&limit=500 HTTP/1.1
Host: api.aquacloud.ai
Authorization: Bearer <token>
x-client-secret: <client-secret>

The response will include the first 500 site records in data, pagination metadata indicating whether more rows remain, and an empty metadata object.