{"source":"frost","operation":"find_stations","description":"Find MET Norway weather stations.","parameters":[{"name":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Match the station name (substring), e.g. \"Blindern\", \"Florida\"."},{"name":"county","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Filter by county (fylke), e.g. \"Vestland\", \"Oslo\"."},{"name":"municipality","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Filter by municipality (kommune), e.g. \"Bergen\"."},{"name":"near_lat","schema":{"anyOf":[{"type":"number"},{"type":"null"}]},"required":false,"default":null,"description":"If both given, return the stations nearest this WGS84 coordinate (ordered by distance), overriding the filters above."},{"name":"near_lon","schema":{"anyOf":[{"type":"number"},{"type":"null"}]},"required":false,"default":null,"description":"If both given, return the stations nearest this WGS84 coordinate (ordered by distance), overriding the filters above."},{"name":"limit","schema":{"type":"integer"},"required":false,"default":20,"description":"Max stations to return, 1-100 (default 20)."},{"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/frost/find_stations?query={query}&county={county}&municipality={municipality}&near_lat={near_lat}&near_lon={near_lon}&limit=20&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"short_name":{"type":["string","null"]},"county":{"type":["string","null"]},"municipality":{"type":["string","null"]},"lon":{"type":["number","null"]},"lat":{"type":["number","null"]},"masl":{"type":["number","null"]},"wmo_id":{"type":["string","null"]},"valid_from":{"type":["string","null"],"format":"date"},"valid_to":{"type":["string","null"],"format":"date"},"distance_km":{"type":["number","null"]}},"additionalProperties":false,"required":["id","name"]}},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["weather_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"}},"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/frost/find_stations/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/frost/find_stations","source":"https://allemannsdata.com/wiki/api/v1/kilder/frost"},"output_fields":["[].id","[].name","[].short_name","[].county","[].municipality","[].lon","[].lat","[].masl","[].wmo_id","[].valid_from","[].valid_to","[].distance_km"],"output_fields_truncated":false,"canonical_field_aliases":{"identifier":["[].id"],"name":["[].name"],"longitude":["[].lon"],"latitude":["[].lat"]},"response_example":{"source":"frost","operation":"find_stations","parameters":{"query":"example value","county":"example value","municipality":"example value","near_lat":1.0,"near_lon":1.0,"limit":20},"data":[{"id":"example-id","name":"Example","short_name":"Example","county":"example value","municipality":"example value","lon":10.75,"lat":59.91,"masl":1.0,"wmo_id":"example-id","valid_from":"2026-01-15","valid_to":"2026-01-15","distance_km":1.0}],"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"frost","name":"Frost historical weather and climate","description":"Measured historical weather observations and climate normals from MET Norway's weather-station network.","cache_ttl_seconds":300,"documentation":"https://frost.met.no/index.html"}]},"_provenance":{"data":{"source":"frost","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/frost"},"entities":{"source":"frost","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/frost","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/frost/find_stations","source":"https://allemannsdata.com/wiki/api/v1/kilder/frost","wiki":"https://allemannsdata.com/wiki/kilder/frost/find_stations/"}}}
