{"source":"marine","operation":"get_aquaculture_site","description":"Fetch weekly status for one aquaculture site. Signature: get_aquaculture_site(locality_no: integer, required; year: integer, calendar year, optional, default None; week: integer, optional, default None).","signature":"get_aquaculture_site(locality_no: integer, required; year: integer, calendar year, optional, default None; week: integer, optional, default None)","parameters":[{"name":"locality_no","type":"integer","schema":{"type":"integer"},"required":true,"default":null,"description":"Fiskeridirektoratet locality number (lokalitetsnummer), e.g. 10029 (the `aquaculture_site_id` from search_aquaculture_sites).","unit":null},{"name":"year","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"ISO year, 2012 or later. Give together with week; omit both for last week. Unit: calendar year.","unit":"calendar year"},{"name":"week","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"ISO week 1-53. Give together with year; omit both for last week.","unit":null}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/marine/get_aquaculture_site?locality_no={locality_no}&year={year}&week={week}","not_paged":"Returns a single record.","example_url":"https://allemannsdata.com/wiki/api/v1/kilder/marine/get_aquaculture_site?locality_no=11543&year=2026&week=40","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"aar":{"type":"integer"},"uke":{"type":"integer"},"lokalitet":{"type":"object","properties":{"aquaculture_site_id":{"type":["integer","string","null"]},"navn":{"type":["string","null"]},"kommune":{"type":["string","null"]},"lat":{"type":["number","null"]},"lon":{"type":["number","null"]},"laksefisk_tillatelse":{"type":["boolean","null"]},"sykdommer":{"type":["array","null"],"items":{"type":"string"}},"luserapport":{"type":["object","null"],"properties":{"hasReported":{"type":["boolean","null"]},"isFallow":{"type":["boolean","null"]},"adultFemaleLice":{"type":"object","properties":{"average":{"type":["number","null"]},"averageOfPreviousWeek":{"type":["number","null"]},"trend":{"type":["string","null"]}}},"mobileLice":{"type":"object","properties":{"average":{"type":["number","null"]},"averageOfPreviousWeek":{"type":["number","null"]},"trend":{"type":["string","null"]}}},"stationaryLice":{"type":"object","properties":{"average":{"type":["number","null"]},"averageOfPreviousWeek":{"type":["number","null"]},"trend":{"type":["string","null"]}}},"totalLice":{"type":"object","properties":{"average":{"type":["number","null"]},"averageOfPreviousWeek":{"type":["number","null"]},"trend":{"type":["string","null"]}}},"seaTemperature":{"type":["number","null"]}}},"behandlinger":{"type":["array","object","null"],"items":{"type":"string"}}},"additionalProperties":false},"raadata":{"type":"object","properties":{"locality":{"type":"object","properties":{"no":{"type":["integer","null"]},"name":{"type":["string","null"]},"isOnLand":{"type":["boolean","null"]}}},"geometry":{"type":"object","properties":{"type":{"type":["string","null"]},"coordinates":{"type":"array"}}},"municipality":{"type":"object","properties":{"no":{"type":["string","null"]},"name":{"type":["string","null"]}}},"productionArea":{"type":["object","null"],"properties":{"id":{"type":["integer","null"]},"name":{"type":["string","null"]},"color":{"type":["string","null"]}}},"aquaCultureRegister":{"type":"object","properties":{"placement":{"type":["string","null"]},"capacity":{"type":["number","null"]},"unit":{"type":["string","null"]},"licenses":{"type":"array","items":{"type":"object","properties":{"licenseNo":{"type":["string","null"]},"licensee":{"type":["string","null"]},"grantDate":{"type":["string","null"],"format":"date-time"},"expirationDate":{"type":["string","null"],"format":"date-time"},"localities":{"type":"array","items":{"type":"object"}}}}}}}}}},"additionalProperties":false,"required":["aar","uke","lokalitet","raadata"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["aquaculture_site"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"error_contract":{"scope":"top-level HTTP error response; never part of a success payload","schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"details":{"type":"object"}},"additionalProperties":false,"required":["code","message","retryable"]},"suggestion":{"type":"string"},"_meta":{"type":"object","properties":{"retrieved_at":{"type":"string","format":"date-time"},"language":{"type":"string","const":"en"},"content_languages":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"object"}}},"required":["retrieved_at","language","content_languages","sources"]},"_links":{"type":"object","properties":{"self":{"type":"string","format":"uri"},"api_index":{"type":"string","format":"uri"},"feedback":{"type":"string","format":"uri"}},"required":["self","api_index","feedback"],"additionalProperties":false}},"additionalProperties":false,"required":["error","suggestion","_meta","_links"]},"statuses":{"400":{"codes":["MISSING_PARAMETER","INVALID_PARAMETER","INVALID_REQUEST"],"retryable":false},"404":{"codes":["SOURCE_NOT_FOUND","OPERATION_NOT_FOUND","ENTITY_NOT_FOUND","ENDPOINT_NOT_FOUND"],"retryable":false},"405":{"codes":["METHOD_NOT_ALLOWED"],"retryable":false},"429":{"codes":["RATE_LIMITED","GATEWAY_RATE_LIMITED"],"retryable":true},"503":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":false}}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/marine/get_aquaculture_site/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/marine/get_aquaculture_site","source":"https://allemannsdata.com/wiki/api/v1/kilder/marine","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["aar","uke","lokalitet","lokalitet.aquaculture_site_id","lokalitet.navn","lokalitet.kommune","lokalitet.lat","lokalitet.lon","lokalitet.laksefisk_tillatelse","lokalitet.sykdommer","lokalitet.luserapport","lokalitet.luserapport.hasReported","lokalitet.luserapport.isFallow","lokalitet.luserapport.adultFemaleLice","lokalitet.luserapport.adultFemaleLice.average","lokalitet.luserapport.adultFemaleLice.averageOfPreviousWeek","lokalitet.luserapport.adultFemaleLice.trend","lokalitet.luserapport.mobileLice","lokalitet.luserapport.mobileLice.average","lokalitet.luserapport.mobileLice.averageOfPreviousWeek","lokalitet.luserapport.mobileLice.trend","lokalitet.luserapport.stationaryLice","lokalitet.luserapport.stationaryLice.average","lokalitet.luserapport.stationaryLice.averageOfPreviousWeek","lokalitet.luserapport.stationaryLice.trend","lokalitet.luserapport.totalLice","lokalitet.luserapport.totalLice.average","lokalitet.luserapport.totalLice.averageOfPreviousWeek","lokalitet.luserapport.totalLice.trend","lokalitet.luserapport.seaTemperature"],"output_fields_truncated":true,"canonical_field_aliases":{"name":["lokalitet.navn","raadata.locality.name","raadata.municipality.name","raadata.productionArea.name"],"latitude":["lokalitet.lat"],"longitude":["lokalitet.lon"],"identifier":["raadata.productionArea.id"]},"temporal_conventions":{"timezone":"explicit_offset","join_guidance":"date-time fields are RFC 3339 with an explicit offset (Z, +00:00 or the Europe/Oslo offset); compare absolute instants, not clock text. date fields are calendar dates without a time zone.","datetime_fields":["raadata.aquaCultureRegister.licenses[].grantDate","raadata.aquaCultureRegister.licenses[].expirationDate"]},"response_example":{"source":"marine","operation":"get_aquaculture_site","parameters":{"locality_no":11543,"year":2026,"week":40},"data":{"aar":1,"uke":1,"lokalitet":{"aquaculture_site_id":1,"navn":"example value","kommune":"example value","lat":59.91,"lon":10.75,"laksefisk_tillatelse":true,"sykdommer":["example value"],"luserapport":{"hasReported":true,"isFallow":true,"adultFemaleLice":{"average":1.0,"averageOfPreviousWeek":1.0,"trend":"example value"},"mobileLice":{"average":1.0,"averageOfPreviousWeek":1.0,"trend":"example value"},"stationaryLice":{"average":1.0,"averageOfPreviousWeek":1.0,"trend":"example value"},"totalLice":{"average":1.0,"averageOfPreviousWeek":1.0,"trend":"example value"},"seaTemperature":1.0},"behandlinger":["example value"]},"raadata":{"locality":{"no":1,"name":"Example","isOnLand":true},"geometry":{"type":"example value","coordinates":[null]},"municipality":{"no":"example value","name":"Example"},"productionArea":{"id":1,"name":"Example","color":"example value"},"aquaCultureRegister":{"placement":"example value","capacity":1.0,"unit":"example value","licenses":[{"licenseNo":"example value","licensee":"example value","grantDate":"2026-01-15T12:00:00Z","expirationDate":"2026-01-15T12:00:00Z","localities":[{}]}]}}},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"marine","name":"Aquaculture and fish health","description":"Aquaculture sites, disease status, salmon lice and sea temperature from BarentsWatch.","publisher":"Kystverket (BarentsWatch)","license":"https://data.norge.no/nlod/en/2.0/","cache_ttl_seconds":3600}]},"_provenance":{"data":{"source":"marine","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/marine"},"entities":{"source":"marine","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/marine","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/marine/get_aquaculture_site","source":"https://allemannsdata.com/wiki/api/v1/kilder/marine","wiki":"https://allemannsdata.com/wiki/kilder/marine/get_aquaculture_site/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
