{"source":"strompris","operation":"get_price_range","description":"Get hourly prices across a date range for one price area (max 31 days).","parameters":[{"name":"start_date","schema":{"type":"string"},"required":true,"default":null,"description":"First day, \"YYYY-MM-DD\"."},{"name":"end_date","schema":{"type":"string"},"required":true,"default":null,"description":"Last day inclusive, \"YYYY-MM-DD\"."},{"name":"area","schema":{"type":"string"},"required":true,"default":null,"description":"Price area NO1..NO5."},{"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/strompris/get_price_range?start_date={start_date}&end_date={end_date}&area={area}&limit=25&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"area":{"type":"string","enum":["NO1","NO2","NO3","NO4","NO5"]},"prices":{"type":"array","items":{"type":"object","properties":{"NOK_per_kWh":{"type":"number"},"EUR_per_kWh":{"type":"number"},"EXR":{"type":"number"},"time_start":{"type":"string","format":"date-time"},"time_end":{"type":"string","format":"date-time"},"time_start_utc":{"type":"string","format":"date-time"},"time_end_utc":{"type":"string","format":"date-time"}},"additionalProperties":false,"required":["NOK_per_kWh","EUR_per_kWh","EXR","time_start","time_end","time_start_utc","time_end_utc"]}},"missing_days":{"type":"array","items":{"type":"string","format":"date"}}},"additionalProperties":false,"required":["area","prices","missing_days"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["electricity_price_area"],"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"}},"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/strompris/get_price_range/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/strompris/get_price_range","source":"https://allemannsdata.com/wiki/api/v1/kilder/strompris"},"output_fields":["area","prices","prices[].NOK_per_kWh","prices[].EUR_per_kWh","prices[].EXR","prices[].time_start","prices[].time_end","prices[].time_start_utc","prices[].time_end_utc","missing_days"],"output_fields_truncated":false,"canonical_field_aliases":{"price_nok_per_kwh":["prices[].NOK_per_kWh"],"timestamp":["prices[].time_start","prices[].time_end","prices[].time_start_utc","prices[].time_end_utc"]},"temporal_conventions":{"timezone":"mixed_explicit","join_guidance":"Use time_start_utc/time_end_utc when joining other sources. time_start/time_end retain the upstream Europe/Oslo offset.","utc_fields":["time_start_utc","time_end_utc"],"local_fields":["time_start","time_end"]},"response_example":{"source":"strompris","operation":"get_price_range","parameters":{"start_date":"2026-01-15","end_date":"2026-01-15","area":"example value"},"data":{"area":"NO1","prices":[{"NOK_per_kWh":1.0,"EUR_per_kWh":1.0,"EXR":1.0,"time_start":"2026-01-15T12:00:00Z","time_end":"2026-01-15T12:00:00Z","time_start_utc":"2026-01-15T12:00:00Z","time_end_utc":"2026-01-15T12:00:00Z"}],"missing_days":["2026-01-15"]},"entities":[{"type":"electricity_price_area","id":"EXAMPLE VALUE","name":"EXAMPLE VALUE","source":"strompris","description":"Norwegian electricity bidding zone."}],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"strompris","name":"Norwegian electricity spot prices","description":"Current and historical hourly spot prices, cheapest hours and price-area lookup for NO1\u2013NO5.","cache_ttl_seconds":300,"documentation":"https://www.hvakosterstrommen.no/strompris-api"}]},"_provenance":{"data":{"source":"strompris","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/strompris"},"entities":{"source":"strompris","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/strompris","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/strompris/get_price_range","source":"https://allemannsdata.com/wiki/api/v1/kilder/strompris","wiki":"https://allemannsdata.com/wiki/kilder/strompris/get_price_range/"}}}
