{"openapi": "3.1.0", "info": {"title": "raining.here API", "version": "1", "description": "Is it raining here? Rain now and for the next hour, Seattle to Olympia, from NOAA MRMS radar (every 2 minutes) and LibreWXR's nowcast. Free for personal and non-commercial use with a link to raining.here. Source: raining.here, NOAA MRMS radar.", "contact": {"url": "https://raining.here/how"}}, "servers": [{"url": "https://raining.here"}], "paths": {"/api/v1/now": {"get": {"operationId": "rainAtPoint", "summary": "Is it raining at a point now, and the next 60 minutes", "parameters": [{"name": "lat", "in": "query", "required": true, "schema": {"type": "number", "minimum": 46.86, "maximum": 47.95}, "example": 47.48}, {"name": "lon", "in": "query", "required": true, "schema": {"type": "number", "minimum": -123.19, "maximum": -121.51}, "example": -122.21}], "responses": {"200": {"description": "The answer at the point", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Now"}}}}, "400": {"description": "lat and lon missing or not numbers"}, "404": {"description": "Outside the area covered", "content": {"application/json": {"schema": {"type": "object", "properties": {"covered": {"type": "boolean"}, "bounds": {"type": "object"}}}}}}}}}, "/api/v1/place/{slug}": {"get": {"operationId": "rainAtPlace", "summary": "Is it raining at a named place now, the next 60 minutes, and its daily history", "parameters": [{"name": "slug", "in": "path", "required": true, "schema": {"type": "string", "enum": ["lynnwood", "edmonds", "mountlake-terrace", "bothell", "shoreline", "kenmore", "lake-forest-park", "woodinville", "kirkland", "redmond", "seattle", "bellevue", "sammamish", "mercer-island", "issaquah", "newcastle", "renton", "tukwila", "burien", "seatac", "kent", "des-moines", "maple-valley", "covington", "normandy-park", "federal-way", "auburn", "black-diamond", "white-center", "vashon", "milton", "pacific", "algona", "fife", "tacoma", "puyallup", "sumner", "bonney-lake", "edgewood", "enumclaw", "bainbridge-island", "snoqualmie", "north-bend", "mill-creek", "duvall", "carnation", "fall-city", "gig-harbor", "university-place", "lakewood", "steilacoom", "parkland", "spanaway", "graham", "orting", "dupont", "olympia", "lacey", "tumwater", "yelm", "shelton", "bremerton", "port-orchard", "silverdale", "poulsbo", "renton/kennydale", "renton/highlands", "renton/benson-hill", "renton/talbot-hill", "renton/fairwood", "renton/skyway", "renton/west-hill", "renton/cedar-river", "renton/east-highlands", "seattle/ballard", "seattle/fremont", "seattle/capitol-hill", "seattle/queen-anne", "seattle/university-district", "seattle/northgate", "seattle/west", "seattle/beacon-hill", "seattle/columbia-city", "seattle/rainier-beach", "seattle/georgetown", "seattle/downtown", "seattle/green-lake", "seattle/magnolia", "seattle/sodo", "lumen-field", "t-mobile-park", "climate-pledge-arena", "sea-tac-airport", "point-defiance-park"]}, "example": "renton"}], "responses": {"200": {"description": "The answer at the place", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PlaceNow"}}}}, "404": {"description": "Not a place we know"}, "503": {"description": "Radar warming up"}}}}, "/api/v1/overview": {"get": {"operationId": "rainEverywhere", "summary": "Every place, raining or not", "responses": {"200": {"description": "One entry per place", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Overview"}}}}}}}}, "components": {"schemas": {"Now": {"type": "object", "properties": {"t": {"type": "integer", "description": "Time of the radar picture (Unix seconds)"}, "lat": {"type": "number"}, "lon": {"type": "number"}, "engine": {"type": "string"}, "snow": {"type": "boolean"}, "summary": {"type": "object", "properties": {"raining": {"type": ["boolean", "null"]}, "text": {"type": "string", "example": "Light rain starting in about 20 min, for about 15 min."}, "starts_in": {"type": ["integer", "null"], "description": "Minutes until rain starts (0 = raining now), null if none in the hour"}, "stops_in": {"type": ["integer", "null"], "description": "Minutes until it stops, null if not within the hour"}, "word": {"type": "string"}}}, "minutes": {"type": "array", "items": {"type": "object", "properties": {"t": {"type": "integer"}, "dbz": {"type": ["number", "null"], "description": "Reflectivity; -32 = nothing"}, "mmh": {"type": ["number", "null"]}, "chance": {"type": ["number", "null"], "description": "Share of the ~500 m neighbourhood with rain (0-1)"}, "cast": {"type": "boolean", "description": "From the nowcast, not the radar picture"}}}, "description": "Now and each of the next 60 minutes"}, "today": {"type": "object", "properties": {"mm": {"type": "number"}, "wet_min": {"type": "integer"}}, "description": "Since local midnight"}, "place": {"type": "object", "properties": {"slug": {"type": "string"}, "name": {"type": "string"}}, "description": "The nearest place with a page"}}}, "PlaceNow": {"type": "object", "properties": {"t": {"type": "integer", "description": "Time of the radar picture (Unix seconds)"}, "lat": {"type": "number"}, "lon": {"type": "number"}, "engine": {"type": "string"}, "snow": {"type": "boolean"}, "summary": {"type": "object", "properties": {"raining": {"type": ["boolean", "null"]}, "text": {"type": "string", "example": "Light rain starting in about 20 min, for about 15 min."}, "starts_in": {"type": ["integer", "null"], "description": "Minutes until rain starts (0 = raining now), null if none in the hour"}, "stops_in": {"type": ["integer", "null"], "description": "Minutes until it stops, null if not within the hour"}, "word": {"type": "string"}}}, "minutes": {"type": "array", "items": {"type": "object", "properties": {"t": {"type": "integer"}, "dbz": {"type": ["number", "null"], "description": "Reflectivity; -32 = nothing"}, "mmh": {"type": ["number", "null"]}, "chance": {"type": ["number", "null"], "description": "Share of the ~500 m neighbourhood with rain (0-1)"}, "cast": {"type": "boolean", "description": "From the nowcast, not the radar picture"}}}, "description": "Now and each of the next 60 minutes"}, "today": {"type": "object", "properties": {"mm": {"type": "number"}, "wet_min": {"type": "integer"}}, "description": "Since local midnight"}, "place": {"type": "object", "properties": {"slug": {"type": "string"}, "name": {"type": "string"}, "region": {"type": "string"}, "lat": {"type": "number"}, "lon": {"type": "number"}, "city": {"type": ["string", "null"]}}}, "history": {"type": "object", "properties": {"days": {"type": "array", "items": {"type": "object", "properties": {"day": {"type": "string"}, "mm": {"type": "number"}, "wet_min": {"type": "integer"}, "max_mmh": {"type": "number"}}}}, "last_wet": {"type": ["integer", "null"]}}}, "gauges": {"type": "array", "items": {"type": "object"}, "description": "Rain gauges within 25 km, inches"}}}, "Overview": {"type": "object", "properties": {"t": {"type": "integer"}, "places": {"type": "array", "items": {"type": "object", "properties": {"slug": {"type": "string"}, "name": {"type": "string"}, "raining": {"type": "boolean"}, "starts_in": {"type": ["integer", "null"]}, "text": {"type": "string"}, "dbz": {"type": ["number", "null"]}}}}}}}}}