{"source":"nve","operation":"find_hydro_stations","description":"Find NVE hydrological measuring stations by name/area filters and/or\nnear a coordinate, and see which time series (parameters + resolutions)\neach one offers. Signature: find_hydro_stations(name: string, optional, default None; county: string, optional, default None; municipality: string, optional, default None; active: yes/no, optional, default True; has_recent_data: yes/no, optional, default False; lat: decimal number, decimal degrees (WGS84), optional, default None; lon: decimal number, decimal degrees (WGS84), optional, default None; radius_km: decimal number, kilometres, optional, default 50; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"find_hydro_stations(name: string, optional, default None; county: string, optional, default None; municipality: string, optional, default None; active: yes/no, optional, default True; has_recent_data: yes/no, optional, default False; lat: decimal number, decimal degrees (WGS84), optional, default None; lon: decimal number, decimal degrees (WGS84), optional, default None; radius_km: decimal number, kilometres, optional, default 50; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)","parameters":[{"name":"name","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Partial station name, e.g. \"Gaula\" (case-insensitive).","unit":null},{"name":"county","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"County name, e.g. \"Tr\u00f8ndelag\".","unit":null},{"name":"municipality","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Municipality (kommune) name, e.g. \"Lier\". Former municipality names (e.g. \"J\u00f8lster\", merged into Sunnfjord in 2020) are retried against the current municipality.","unit":null},{"name":"active","type":"boolean","schema":{"type":"boolean"},"required":false,"default":true,"description":"True (default) for currently operating stations only. This is station metadata, not data flow: most \"active\" stations are archive-only and return no observations. Use has_recent_data to get the ones that are actually delivering.","unit":null},{"name":"has_recent_data","type":"boolean","schema":{"type":"boolean"},"required":false,"default":false,"description":"True to keep only stations whose newest data is less than 7 days old (see latest_observation_at).","unit":null},{"name":"lat","type":"number","schema":{"anyOf":[{"type":"number"},{"type":"null"}]},"required":false,"default":null,"description":"WGS84 point for a spatial search. Give both to get only stations within radius_km, sorted nearest first with a distance_km field on each. Combines with the other filters. Unit: decimal degrees (WGS84).","unit":"decimal degrees (WGS84)"},{"name":"lon","type":"number","schema":{"anyOf":[{"type":"number"},{"type":"null"}]},"required":false,"default":null,"description":"WGS84 point for a spatial search. Give both to get only stations within radius_km, sorted nearest first with a distance_km field on each. Combines with the other filters. Unit: decimal degrees (WGS84).","unit":"decimal degrees (WGS84)"},{"name":"radius_km","type":"number","schema":{"type":"number"},"required":false,"default":50,"description":"Spatial search radius in km (default 50). Only used with lat/lon. Unit: kilometres.","unit":"kilometres"},{"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).","unit":"items"},{"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.","unit":"items"}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/nve/find_hydro_stations?name={name}&county={county}&municipality={municipality}&active=true&has_recent_data=false&lat={lat}&lon={lon}&radius_km=50&limit=25&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"count":{"type":"integer"},"returned":{"type":"integer"},"stations":{"type":"array","items":{"type":"object","properties":{"station_id":{"type":"string"},"station_name":{"type":["string","null"]},"river":{"type":["string","null"]},"municipality":{"type":["string","null"]},"county":{"type":["string","null"]},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"masl":{"type":["number","null"]},"latest_observation_at":{"type":["string","null"],"format":"date-time"},"series":{"type":"array","items":{"type":"object","properties":{"parameter":{"type":["integer","null"]},"name":{"type":["string","null"]},"unit":{"type":["string","null"]},"from":{"type":["string","null"],"format":"date-time"},"to":{"type":["string","null"],"format":"date-time"},"latest_data_at":{"type":["string","null"],"format":"date-time"},"resolutions":{"type":"array","items":{"type":"integer"}}},"additionalProperties":false,"required":["parameter","resolutions"]}},"distance_km":{"type":"number"}},"additionalProperties":false,"required":["station_id","series"]}},"note":{"type":["string","null"]}},"additionalProperties":false,"required":["count","returned","stations"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["hydrology_station","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/nve/find_hydro_stations/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/nve/find_hydro_stations","source":"https://allemannsdata.com/wiki/api/v1/kilder/nve","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["count","returned","stations","stations[].station_id","stations[].station_name","stations[].river","stations[].municipality","stations[].county","stations[].latitude","stations[].longitude","stations[].masl","stations[].latest_observation_at","stations[].series","stations[].series[].parameter","stations[].series[].name","stations[].series[].unit","stations[].series[].from","stations[].series[].to","stations[].series[].latest_data_at","stations[].series[].resolutions","stations[].distance_km","note"],"output_fields_truncated":false,"canonical_field_aliases":{"latitude":["stations[].latitude"],"longitude":["stations[].longitude"],"name":["stations[].series[].name"]},"response_example":{"source":"nve","operation":"find_hydro_stations","parameters":{"name":"Example","county":"example value","municipality":"example value","active":true,"has_recent_data":false,"lat":59.91,"lon":10.75,"radius_km":50},"data":{"count":1,"returned":1,"stations":[{"station_id":"example-id","station_name":"Example","river":"example value","municipality":"example value","county":"example value","latitude":59.91,"longitude":10.75,"masl":1.0,"latest_observation_at":"2026-01-15T12:00:00Z","series":[{"parameter":1,"name":"Example","unit":"example value","from":"2026-01-15T12:00:00Z","to":"2026-01-15T12:00:00Z","latest_data_at":"2026-01-15T12:00:00Z","resolutions":[1]}],"distance_km":1.0}],"note":"example value"},"entities":[{"type":"place","id":"59.91,10.75","name":"59.91, 10.75","source":"nve","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":"nve","name":"NVE HydAPI","description":"Hydrological stations and observations for water level, discharge, temperature, snow and groundwater, plus every hydro and wind power plant with owner, capacity and production.","cache_ttl_seconds":60,"documentation":"https://hydapi.nve.no/UserDocumentation/","rate_limit":"The gateway monitors upstream quota information and caches metadata."}]},"_provenance":{"data":{"source":"nve","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/nve"},"entities":{"source":"nve","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/nve","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/nve/find_hydro_stations","source":"https://allemannsdata.com/wiki/api/v1/kilder/nve","wiki":"https://allemannsdata.com/wiki/kilder/nve/find_hydro_stations/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
