{"source":"fhi","operation":"get_table_data","description":"Query a table's data and return it as labeled rows. Signature: get_table_data(source_id: string, required; table_id: integer, required; selections: JSON object, optional, default None; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"get_table_data(source_id: string, required; table_id: integer, required; selections: JSON object, optional, default None; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)","parameters":[{"name":"source_id","type":"string","schema":{"type":"string"},"required":true,"default":null,"description":"Source id from list_sources(), e.g. \"abr\".","unit":null},{"name":"table_id","type":"integer","schema":{"type":"integer"},"required":true,"default":null,"description":"Table id from search_tables(), e.g. 588.","unit":null},{"name":"selections","type":"object","schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}]},"required":false,"default":null,"description":"Dict of {dimension_code: [value_codes]}, codes from get_table_dimensions(). Any dimension you omit is filled with ALL its values, so only specify the ones you want to narrow, but narrow enough that the result stays under 50000 cells. Example: {\"AARGANG\": [\"2023\", \"2024\"], \"MEASURE_TYPE\": [\"ANTALL\"]}","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/fhi/get_table_data?source_id={source_id}&table_id={table_id}&selections={selections}&limit=25&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"source_id":{"type":"string"},"table_id":{"type":"integer"},"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","boolean","null"]}}},"total_cells":{"type":"integer"},"truncated":{"type":"boolean"}},"additionalProperties":false,"required":["source_id","table_id","rows","total_cells","truncated"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["statistical_table"],"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},"503":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":true}}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/fhi/get_table_data/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/fhi/get_table_data","source":"https://allemannsdata.com/wiki/api/v1/kilder/fhi","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["source_id","table_id","title","updated","unit","rows","total_cells","truncated"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["title"]},"response_example":{"source":"fhi","operation":"get_table_data","parameters":{"source_id":"example-id","table_id":1,"selections":{}},"data":{"source_id":"example-id","table_id":1,"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":"fhi","name":"FHI Statistics","description":"Public-health tables from the Norwegian Institute of Public Health and Directorate of Health.","cache_ttl_seconds":300,"documentation":"https://statistikk-data.fhi.no/"}]},"_provenance":{"data":{"source":"fhi","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/fhi"},"entities":{"source":"fhi","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/fhi","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/fhi/get_table_data","source":"https://allemannsdata.com/wiki/api/v1/kilder/fhi","wiki":"https://allemannsdata.com/wiki/kilder/fhi/get_table_data/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
