{"openapi":"3.1.0","info":{"title":"Weather Central 7 public weather API","version":"1.0.0","description":"Keyless JSON weather data for any place: current conditions, 48-hour hourly and 10-day forecasts (Open-Meteo model estimates, CC BY 4.0) and official US alerts (NOAA / National Weather Service). Metric units; the unit is part of every field name. Times are ISO 8601 with the place's UTC offset. Please cache responses (forecasts change at most every 30 minutes) and keep to a few requests per minute. An MCP server for AI agents is at /mcp.","contact":{"name":"Weather Central 7 support","email":"support@wc7.org","url":"https://wc7.org/"},"license":{"name":"Forecast data CC BY 4.0 (Open-Meteo); alerts are US public domain (NWS)"}},"servers":[{"url":"https://wc7.org"}],"paths":{"/api/v1/places/search":{"get":{"operationId":"searchPlaces","summary":"Find places by name or US ZIP code","parameters":[{"name":"q","in":"query","required":true,"description":"City name (\"Paris\", \"Paris, Texas\") or a 5-digit US ZIP code","schema":{"type":"string","minLength":2,"maxLength":80}}],"responses":{"200":{"description":"Matching places, best first","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"results":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}}}}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/places/{slug}":{"get":{"operationId":"getPlace","summary":"One place by its slug","parameters":[{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"description":"The place","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Place"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/weather/{slug}":{"get":{"operationId":"getWeather","summary":"Current conditions, 48-hour hourly and 10-day forecast, and official US alerts for a place","parameters":[{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"description":"Forecast","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Weather"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"parameters":{"slug":{"name":"slug","in":"path","required":true,"description":"Place slug from search, e.g. \"new-york\", \"upper-saint-clair\", \"springfield-il\"","schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}},"schemas":{"Error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},"Place":{"type":"object","properties":{"slug":{"type":"string"},"kind":{"type":"string","enum":["city","place"]},"name":{"type":"string"},"region":{"type":["string","null"]},"country":{"type":["string","null"]},"country_code":{"type":["string","null"]},"latitude":{"type":"number"},"longitude":{"type":"number"},"timezone":{"type":["string","null"]},"page_url":{"type":"string","format":"uri"},"markdown_url":{"type":"string","format":"uri"},"weather_url":{"type":"string","format":"uri"}}},"SearchResult":{"type":"object","properties":{"name":{"type":"string"},"region":{"type":["string","null"]},"country":{"type":["string","null"]},"country_code":{"type":["string","null"]},"latitude":{"type":"number"},"longitude":{"type":"number"},"timezone":{"type":["string","null"]},"population":{"type":["integer","null"]},"slug":{"type":["string","null"]},"kind":{"type":"string"},"page_url":{"type":["string","null"]},"weather_url":{"type":["string","null"]}}},"Weather":{"type":"object","properties":{"place":{"$ref":"#/components/schemas/Place"},"forecast":{"type":"object","description":"All times ISO 8601 with UTC offset (e.g. 2026-12-01T14:00-05:00); *_ms fields are epoch milliseconds.","properties":{"timezone":{"type":"string"},"retrieved_at":{"type":"string"},"stale":{"type":"boolean"},"current":{"type":"object"},"hourly":{"type":"array","items":{"type":"object"}},"daily":{"type":"array","items":{"type":"object"}}}},"alerts":{"type":["object","null"],"description":"US places only: NWS coverage and active alerts"},"attribution":{"type":"object"}}}}}}