{"source":"stortinget","operation":"get_speaking_activity","description":"Get a representative or minister's speaking activity in one session.","parameters":[{"name":"person_id","schema":{"type":"string"},"required":true,"default":null,"description":"Storting person id, e.g. an id from get_representatives."},{"name":"session_id","schema":{"type":"string"},"required":true,"default":null,"description":"Session from list_sessions(), e.g. \"2023-2024\"."},{"name":"limit","schema":{"type":"integer"},"required":false,"default":100,"description":"Maximum speech entries to return, 1-200."},{"name":"offset","schema":{"type":"integer"},"required":false,"default":0,"description":"Number of speech entries to skip."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/stortinget/get_speaking_activity?person_id={person_id}&session_id={session_id}&limit=100&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"person_id":{"type":["string","null"]},"session_id":{"type":["string","null"]},"total":{"type":"integer"},"total_duration_seconds":{"type":"number"},"offset":{"type":"integer"},"returned":{"type":"integer"},"speeches":{"type":"array","items":{"type":"object","properties":{"dagsorden_sak_nummer":{"type":["integer","null"]},"mote_id":{"type":["integer","null"]},"tale_start_tid":{"type":["string","null"],"format":"date-time"},"tale_type":{"type":["string","null"]},"tale_varighet_sekunder":{"type":["number","null"]}},"additionalProperties":false}}},"additionalProperties":false,"required":["person_id","session_id","total","speeches"]},"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"],"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_speaking_activity","operation":"https://allemannsdata.com/wiki/api/v1/kilder/stortinget/get_speaking_activity","source":"https://allemannsdata.com/wiki/api/v1/kilder/stortinget","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["person_id","session_id","total","total_duration_seconds","offset","returned","speeches","speeches[].dagsorden_sak_nummer","speeches[].mote_id","speeches[].tale_start_tid","speeches[].tale_type","speeches[].tale_varighet_sekunder"],"output_fields_truncated":false,"canonical_field_aliases":{},"response_example":{"source":"stortinget","operation":"get_speaking_activity","parameters":{"person_id":"example-id","session_id":"example-id","limit":100,"offset":0},"data":{"person_id":"example-id","session_id":"example-id","total":1,"total_duration_seconds":1.0,"offset":1,"returned":1,"speeches":[{"dagsorden_sak_nummer":1,"mote_id":1,"tale_start_tid":"2026-01-15T12:00:00Z","tale_type":"example value","tale_varighet_sekunder":1.0}]},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"stortinget","name":"Stortinget open data","description":"Parliamentary representatives, questions, hearings, meetings, 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_speaking_activity","source":"https://allemannsdata.com/wiki/api/v1/kilder/stortinget","wiki":"https://allemannsdata.com/wiki/kilder/stortinget/get_speaking_activity/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
