{"source":"fiskeridir","operation":"get_statistics_data","description":"Query a statistics table and return it as labeled rows. Signature: get_statistics_data(table_id: string, required; selections: JSON object, required; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"get_statistics_data(table_id: string, required; selections: JSON object, required; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)","parameters":[{"name":"table_id","type":"string","schema":{"type":"string"},"required":true,"default":null,"description":"Table id from list_statistics_tables(), e.g. \"F06001\".","unit":null},{"name":"selections","type":"object","schema":{"additionalProperties":true,"type":"object"},"required":true,"default":null,"description":"Dict of {dimension_code: [codes]} with codes from get_statistics_table_metadata(). Per dimension you may instead pass [\"*\"] (all values) or [\"TOP(5)\"] (latest 5, useful for the time dimension). A dimension you omit is summed away if it can be eliminated, otherwise it is filled with all its values. Example: {\"Fangst\u00e5r\": [\"2024\", \"2025\"], \"Fart\u00f8ynasjon\": [\"NORGE\"], \"Art\": [\"0201001 Torsk\"], \"Redskap\": [\"*\"]}","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/fiskeridir/get_statistics_data?table_id={table_id}&selections={selections}&limit=25&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"updated":{"type":["string","null"],"format":"date-time"},"unit":{"type":["string","null"]},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":["string","number","null"]}}},"total_cells":{"type":"integer"},"truncated":{"type":"boolean"}},"additionalProperties":false,"required":["id","rows","total_cells","truncated"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["fishing_vessel"],"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"],"retryable":false},"429":{"codes":["RATE_LIMITED","GATEWAY_RATE_LIMITED"],"retryable":true},"502":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":true}}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/fiskeridir/get_statistics_data","operation":"https://allemannsdata.com/wiki/api/v1/kilder/fiskeridir/get_statistics_data","source":"https://allemannsdata.com/wiki/api/v1/kilder/fiskeridir","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["id","title","updated","unit","rows","total_cells","truncated"],"output_fields_truncated":false,"canonical_field_aliases":{"identifier":["id"],"name":["title"]},"response_example":{"source":"fiskeridir","operation":"get_statistics_data","parameters":{"table_id":"example-id","selections":{}},"data":{"id":"example-id","title":"Example","updated":"2026-01-15T12:00:00Z","unit":"example value","rows":[{"example_key":"example value"}],"total_cells":1,"truncated":true},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"fiskeridir","name":"Fiskeridirektoratet","description":"Norway's official register of active fishing vessels: marks, dimensions, engine, build data and owners, plus yearly catch, fisher, permit and aquaculture statistics from the statistics bank.","cache_ttl_seconds":300,"documentation":"https://api.fiskeridir.no/vessel-api/swagger-ui/","rate_limit":"The statistics bank allows 10 calls per 10 seconds; the integration paces itself and caches the table list for a day."}]},"_provenance":{"data":{"source":"fiskeridir","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/fiskeridir"},"entities":{"source":"fiskeridir","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/fiskeridir","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/fiskeridir/get_statistics_data","source":"https://allemannsdata.com/wiki/api/v1/kilder/fiskeridir","wiki":"https://allemannsdata.com/wiki/kilder/fiskeridir/get_statistics_data/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
