{"source":"hjortevilt","operation":"get_harvest","description":"Hunting quota and animals felled per season for a municipality or all of Norway. Signature: get_harvest(species: string, required; municipality: string, optional, default None; from_season: integer, optional, default None; to_season: integer, optional, default None; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"get_harvest(species: string, required; municipality: string, optional, default None; from_season: integer, optional, default None; to_season: integer, optional, default None; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)","parameters":[{"name":"species","type":"string","schema":{"type":"string"},"required":true,"default":null,"description":"elg (moose), hjort (red deer), r\u00e5dyr (roe deer) or villrein (wild reindeer). English names work too.","unit":null},{"name":"municipality","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Municipality name (\"Gloppen\") or number (\"4650\") in today's structure. Omit for all of Norway. Wild reindeer are managed per reindeer area, not municipality, so only the national total is available for villrein.","unit":null},{"name":"from_season","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"First season by its start year, e.g. 2016 for 2016/2017 (default: nine seasons before to_season).","unit":null},{"name":"to_season","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"Last season (default: the current one, still filling in during the hunt).","unit":null},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"display_type":"integer","required":false,"default":25,"description":"Maximum list items returned by the gateway (default 25, maximum 100).","unit":"items"},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page.","unit":"items"}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/hjortevilt/get_harvest?species={species}&municipality={municipality}&from_season={from_season}&to_season={to_season}&limit=25&offset=0","example_url":"https://allemannsdata.com/wiki/api/v1/kilder/hjortevilt/get_harvest?species=hjort&municipality=Gloppen","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"species":{"type":"string","enum":["elg","hjort","r\u00e5dyr","villrein"]},"kommunenr":{"type":["string","null"]},"municipality":{"type":["string","null"]},"seasons":{"type":"array","items":{"type":"object","properties":{"season":{"type":"string"},"season_start_year":{"type":"integer"},"allocated":{"type":["integer","null"]},"felled_total":{"type":["integer","null"]},"felling_percent":{"type":["number","null"]},"felled":{"type":"object","properties":{"male_calves":{"type":["integer","null"]},"female_calves":{"type":["integer","null"]},"male_yearlings":{"type":["integer","null"]},"female_yearlings":{"type":["integer","null"]},"adult_males":{"type":["integer","null"]},"adult_females":{"type":["integer","null"]}},"additionalProperties":false,"required":["male_calves","female_calves","male_yearlings","female_yearlings","adult_males","adult_females"]}},"additionalProperties":false,"required":["season","season_start_year","allocated","felled_total","felling_percent","felled"]}}},"additionalProperties":false,"required":["species","kommunenr","municipality","seasons"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"intentionally_none","entity_types":[],"description":"No stable cross-source entity projection is defined for this operation; entities is intentionally empty."},"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/hjortevilt/get_harvest/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/hjortevilt/get_harvest","source":"https://allemannsdata.com/wiki/api/v1/kilder/hjortevilt","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["species","kommunenr","municipality","seasons","seasons[].season","seasons[].season_start_year","seasons[].allocated","seasons[].felled_total","seasons[].felling_percent","seasons[].felled","seasons[].felled.male_calves","seasons[].felled.female_calves","seasons[].felled.male_yearlings","seasons[].felled.female_yearlings","seasons[].felled.adult_males","seasons[].felled.adult_females"],"output_fields_truncated":false,"canonical_field_aliases":{},"response_example":{"source":"hjortevilt","operation":"get_harvest","parameters":{"species":"hjort","municipality":"Gloppen","limit":25,"offset":0},"data":{"species":"elg","kommunenr":"example value","municipality":"example value","seasons":[{"season":"example value","season_start_year":1,"allocated":1,"felled_total":1,"felling_percent":1.0,"felled":{"male_calves":1,"female_calves":1,"male_yearlings":1,"female_yearlings":1,"adult_males":1,"adult_females":1}}]},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"hjortevilt","name":"Hjorteviltregisteret","description":"Moose, red deer, roe deer and wild reindeer hunting from Norway's deer register: quotas and animals felled per season and municipality, the hunters' sett elg / sett hjort population indices, and fallvilt (game killed by cars, trains, disease or culls) with date, cause and place.","publisher":"Landbruksdirektoratet (for Milj\u00f8direktoratet)","license":null,"cache_ttl_seconds":900,"documentation":"https://www.hjorteviltregisteret.no/OfteStilteSp%C3%B8rsm%C3%A5l"}]},"_provenance":{"data":{"source":"hjortevilt","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/hjortevilt"},"entities":{"source":"hjortevilt","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/hjortevilt","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/hjortevilt/get_harvest","source":"https://allemannsdata.com/wiki/api/v1/kilder/hjortevilt","wiki":"https://allemannsdata.com/wiki/kilder/hjortevilt/get_harvest/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
