{"source":"stortinget","operation":"get_representatives","description":"Get the representatives elected for a given period: id, name, party,\ncounty.","parameters":[{"name":"period_id","schema":{"type":"string"},"required":true,"default":null,"description":"A stortingsperiode id from list_periods(), e.g. \"2025-2029\"."},{"name":"full_detail","schema":{"type":"boolean"},"required":false,"default":false,"description":"Return the raw upstream objects (adds birth date, gender code, ...). Default False."},{"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)."},{"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."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/stortinget/get_representatives?period_id={period_id}&full_detail=false&limit=25&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"representanter_liste":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string","null"]},"navn":{"type":["string","null"]},"parti":{"type":["string","null"]},"fylke":{"type":["string","null"]},"epost":{"type":["string","null"]},"vara_representant":{"type":["boolean","null"]},"komiteer":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"additionalProperties":false},"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"}},"required":["self","api_index"],"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/stortinget/get_representatives/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/stortinget/get_representatives","source":"https://allemannsdata.com/wiki/api/v1/kilder/stortinget"},"output_fields":["representanter_liste","representanter_liste[].id","representanter_liste[].navn","representanter_liste[].parti","representanter_liste[].fylke","representanter_liste[].epost","representanter_liste[].vara_representant","representanter_liste[].komiteer"],"output_fields_truncated":false,"canonical_field_aliases":{"identifier":["representanter_liste[].id"],"name":["representanter_liste[].navn"]},"response_example":{"source":"stortinget","operation":"get_representatives","parameters":{"period_id":"example-id","full_detail":false},"data":{"representanter_liste":[{"id":"example-id","navn":"example value","parti":"example value","fylke":"example value","epost":"example value","vara_representant":true,"komiteer":["example value"]}]},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"stortinget","name":"Stortinget open data","description":"Parliamentary sessions, representatives, government, parties, cases, votes and election results.","cache_ttl_seconds":300,"documentation":"https://data.stortinget.no/"}]},"_provenance":{"data":{"source":"stortinget","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/stortinget"},"entities":{"source":"stortinget","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/stortinget","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/stortinget/get_representatives","source":"https://allemannsdata.com/wiki/api/v1/kilder/stortinget","wiki":"https://allemannsdata.com/wiki/kilder/stortinget/get_representatives/"}}}
