{"source":"helsedirektoratet","operation":"get_indicator_data","description":"Figures for one national quality indicator. Signature: get_indicator_data(indicator_id: string, required; municipality: string, optional, default None; level: string, optional, default None; measure: string, optional, default None; year: integer, calendar year, optional, default None; latest_only: yes/no, optional, default False; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"get_indicator_data(indicator_id: string, required; municipality: string, optional, default None; level: string, optional, default None; measure: string, optional, default None; year: integer, calendar year, optional, default None; latest_only: yes/no, optional, default False; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)","parameters":[{"name":"indicator_id","type":"string","schema":{"type":"string"},"required":true,"default":null,"description":"The indicator's id from list_indicators, e.g. \"347\" (Innbyggere uten fast lege). The full form \"0003-0010-347\" works too.","unit":null},{"name":"municipality","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Restrict to one municipality or county, by its official number (\"4650\", \"46\") or name (\"Gloppen\", \"Vestland\").","unit":null},{"name":"level","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Restrict to one level: municipality, county, country, municipality_group (Helsedirektoratet's size groups) or organisation (health trusts and hospitals).","unit":null},{"name":"measure","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Case-insensitive substring of the measure name, for indicators that report several (a count, a share and a total).","unit":null},{"name":"year","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"Restrict to periods ending in this year, e.g. 2025. Unit: calendar year.","unit":"calendar year"},{"name":"latest_only","type":"boolean","schema":{"type":"boolean"},"required":false,"default":false,"description":"Keep only the most recent period for each area and measure (default False).","unit":null},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"required":false,"default":25,"description":"Max figures to return, 1-1000 (default 200). Unit: items. Through this API: default 25, maximum 100.","unit":"items"},{"name":"offset","type":"integer","schema":{"type":"integer"},"required":false,"default":0,"description":"Results to skip before the first one returned (default 0); with limit, pages through every match. Unit: items.","unit":"items"}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/helsedirektoratet/get_indicator_data?indicator_id={indicator_id}&municipality={municipality}&level={level}&measure={measure}&year={year}&latest_only=false&limit=25&offset=0","example_url":"https://allemannsdata.com/wiki/api/v1/kilder/helsedirektoratet/get_indicator_data?indicator_id=347&municipality=Gloppen&latest_only=True","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"indicator_id":{"type":"string"},"title":{"type":"string"},"measures":{"type":"array","items":{"type":"string"}},"count":{"type":"integer"},"returned":{"type":"integer"},"figures":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["municipality","county","country","municipality_group","organisation"]},"area_code":{"type":["string","null"]},"area":{"type":["string","null"]},"parent":{"type":["string","null"]},"measure":{"type":"string"},"unit":{"type":["string","null"]},"value":{"type":["number","null"]},"ci_lower":{"type":["number","null"]},"ci_upper":{"type":["number","null"]},"period_type":{"type":["string","null"]},"period_start":{"type":["string","null"],"format":"date"},"period_end":{"type":["string","null"],"format":"date"}},"additionalProperties":false,"required":["level","area_code","area","parent","measure","unit","value","ci_lower","ci_upper","period_type","period_start","period_end"]}}},"additionalProperties":false,"required":["indicator_id","title","measures","count","returned","figures"]},"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/helsedirektoratet/get_indicator_data/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/helsedirektoratet/get_indicator_data","source":"https://allemannsdata.com/wiki/api/v1/kilder/helsedirektoratet","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["indicator_id","title","measures","count","returned","figures","figures[].level","figures[].area_code","figures[].area","figures[].parent","figures[].measure","figures[].unit","figures[].value","figures[].ci_lower","figures[].ci_upper","figures[].period_type","figures[].period_start","figures[].period_end"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["title"]},"temporal_conventions":{"timezone":"calendar_dates","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.","date_fields":["figures[].period_start","figures[].period_end"]},"response_example":{"source":"helsedirektoratet","operation":"get_indicator_data","parameters":{"indicator_id":"347","municipality":"Gloppen","latest_only":true,"limit":25,"offset":0},"data":{"indicator_id":"example-id","title":"Example","measures":["example value"],"count":1,"returned":1,"figures":[{"level":"municipality","area_code":"example value","area":"example value","parent":"example value","measure":"example value","unit":"example value","value":1.0,"ci_lower":1.0,"ci_upper":1.0,"period_type":"example value","period_start":"2026-01-15","period_end":"2026-01-15"}]},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"helsedirektoratet","name":"Helsedirektoratet","description":"National quality indicators for the health service with figures per municipality, county and health trust (people without a GP, home-care waiting times, dental health, ambulance response times), plus national guidelines, guides and pathways.","publisher":"Helsedirektoratet","license":"https://data.norge.no/nlod/en/2.0/","cache_ttl_seconds":3600,"documentation":"https://utvikler.helsedirektoratet.no/"}]},"_provenance":{"data":{"source":"helsedirektoratet","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/helsedirektoratet"},"entities":{"source":"helsedirektoratet","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/helsedirektoratet","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/helsedirektoratet/get_indicator_data","source":"https://allemannsdata.com/wiki/api/v1/kilder/helsedirektoratet","wiki":"https://allemannsdata.com/wiki/kilder/helsedirektoratet/get_indicator_data/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
