{"source":"weather","operation":"get_ocean_forecast","description":"Get hourly waves, currents and sea temperature from MET Norway.","parameters":[{"name":"lat","schema":{"type":"number"},"required":true,"default":null,"description":"Latitude of a point at sea in the ocean model domain."},{"name":"lon","schema":{"type":"number"},"required":true,"default":null,"description":"Longitude of a point at sea in the ocean model domain."},{"name":"hours","schema":{"type":"integer"},"required":false,"default":24,"description":"Number of hourly entries to return, 1-72 (default 24)."},{"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/weather/get_ocean_forecast?lat={lat}&lon={lon}&hours=24&limit=25&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"updated_at":{"type":["string","null"],"format":"date-time"},"model_coordinate":{"type":"object","properties":{"lat":{"type":["number","null"]},"lon":{"type":["number","null"]}},"additionalProperties":false},"forecast":{"type":"array","items":{"type":"object","properties":{"time":{"type":["string","null"],"format":"date-time"},"wave_height_m":{"type":["number","null"]},"wave_from_direction_deg":{"type":["number","null"]},"current_speed_ms":{"type":["number","null"]},"current_to_direction_deg":{"type":["number","null"]},"sea_temperature_c":{"type":["number","null"]}},"additionalProperties":false}}},"additionalProperties":false,"required":["model_coordinate","forecast"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["place"],"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},"502":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":true}}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/weather/get_ocean_forecast/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/weather/get_ocean_forecast","source":"https://allemannsdata.com/wiki/api/v1/kilder/weather","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["updated_at","model_coordinate","model_coordinate.lat","model_coordinate.lon","forecast","forecast[].time","forecast[].wave_height_m","forecast[].wave_from_direction_deg","forecast[].current_speed_ms","forecast[].current_to_direction_deg","forecast[].sea_temperature_c"],"output_fields_truncated":false,"canonical_field_aliases":{"latitude":["model_coordinate.lat"],"longitude":["model_coordinate.lon"],"timestamp":["forecast[].time"],"temperature_c":["forecast[].sea_temperature_c"]},"response_example":{"source":"weather","operation":"get_ocean_forecast","parameters":{"lat":59.91,"lon":10.75,"hours":24},"data":{"updated_at":"2026-01-15T12:00:00Z","model_coordinate":{"lat":59.91,"lon":10.75},"forecast":[{"time":"2026-01-15T12:00:00Z","wave_height_m":1.0,"wave_from_direction_deg":1.0,"current_speed_ms":1.0,"current_to_direction_deg":1.0,"sea_temperature_c":1.0}]},"entities":[{"type":"place","id":"59.91,10.75","name":"59.91, 10.75","source":"weather","description":"Coordinate used as the operation input.","coordinates":{"lat":59.91,"lon":10.75,"crs":"WGS84"}}],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"weather","name":"Weather and natural hazards","description":"Current weather, precipitation nowcasts, alerts, ocean forecasts, history, tides, sea levels and natural hazards.","cache_ttl_seconds":60}]},"_provenance":{"data":{"source":"weather","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/weather"},"entities":{"source":"weather","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/weather","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/weather/get_ocean_forecast","source":"https://allemannsdata.com/wiki/api/v1/kilder/weather","wiki":"https://allemannsdata.com/wiki/kilder/weather/get_ocean_forecast/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
