{"openapi":"3.1.0","info":{"title":"Plaincast","version":"1.0.0","summary":"National Weather Service Area Forecast Discussions, decoded into plain English.","description":"Plaincast (https:\/\/plaincast.live) translates the National Weather Service's Area Forecast Discussion \u2014 the narrative forecast a meteorologist writes 3 to 4 times a day \u2014 into plain English, for all 123 National Weather Service forecast offices that write one (the contiguous US, Alaska, Hawaii, Guam, American Samoa and Puerto Rico).\n\n**No API key, no account, no quota to request.** Everything here is free and read-only.\n\n**Most of Plaincast is pages, not endpoints.** The primary programmatic interface is content negotiation: request any page URL with `Accept: text\/markdown` and you get the decoded forecast as clean prose instead of HTML. The site is acceptmarkdown.com compliant. The JSON endpoints below cover only the data that is not a page.\n\n**Not documented here, on purpose:** `\/api\/translate`, `\/api\/translate-issuance`, `\/api\/changelog`, `\/api\/explain-alert` and `\/api\/national-lede` are this site's own AI backend. They spend model budget per call, are rate-limited per IP, and are not supported for third-party use. Read the pages instead: a page response that includes an AI summary labels it as written by Claude.\n\nAll forecast data originates with NOAA and is public domain. Plaincast is an independent project and is not affiliated with NOAA or the National Weather Service.","contact":{"name":"Jonah Berg","url":"https:\/\/jonahberg.com"},"license":{"name":"MIT","identifier":"MIT"},"termsOfService":"https:\/\/plaincast.live\/about"},"externalDocs":{"description":"Developer documentation","url":"https:\/\/plaincast.live\/developers"},"servers":[{"url":"https:\/\/plaincast.live","description":"Production. The only environment; there is no sandbox."}],"security":[],"tags":[{"name":"Pages","description":"Server-rendered pages that also serve text\/markdown from the same URL."},{"name":"Data","description":"Read-only JSON, RSS and image endpoints."}],"paths":{"\/":{"get":{"operationId":"getHome","summary":"Site overview and the current edition","description":"Plaincast's homepage: what the site is, then the first sections of the default office's (LOX) current discussion in the National Weather Service's words, shorthand expanded. When a response includes an AI summary of a section, the summary is labelled as written by Claude and comes before that section's NWS text. Send `Accept: text\/markdown` for the decoded forecast as prose, or anything else for the typeset page. `Vary: Accept` is set on every response.","tags":["Pages"],"parameters":[{"name":"office","in":"query","required":false,"deprecated":true,"description":"Legacy deep link. A listed office code (any letter case) answers `308` with `Location: \/o\/{code}\/` (the request's query string is passed through); request `\/o\/{code}\/` directly instead.","schema":{"type":"string","enum":["ALY","BGM","RNK","BOX","BUF","BTV","CAR","CHS","RLX","CAE","GSP","OKX","MHX","PHI","PBZ","GYX","RAH","CTP","AKQ","LWX","ILM","FFC","BMX","HUN","JAN","JAX","KEY","MLB","MEG","MFL","MOB","MRX","OHX","TAE","TBW","ILX","LOT","ILN","CLE","DMX","DTX","APX","GRR","GRB","IND","JKL","EAX","ARX","LMK","MQT","MKX","IWX","PAH","DVN","SGF","LSX","ABR","BIS","DLH","FGF","GID","MPX","LBF","OAX","UNR","FSD","AMA","BRO","CRP","FWD","DDC","GLD","HGX","LCH","LZK","LUB","MAF","LIX","OUN","SJT","EWX","SHV","TOP","TSA","ICT","BYZ","BOI","CYS","BOU","LKN","GGW","GJT","TFX","MSO","PIH","PUB","REV","RIW","SLC","ABQ","EPZ","FGZ","VEF","PSR","TWC","HNX","EKA","LOX","MFR","PDT","PQR","STO","SGX","MTR","SEW","OTX","AFC","AFG","GUM","HFO","AJK","PPG","SJU"]}}],"responses":{"200":{"description":"The page.","content":{"text\/html":{"schema":{"type":"string"}},"text\/markdown":{"schema":{"type":"string"},"example":"# New York (OKX) \u2014 the NWS forecast in plain English\n\n> Area Forecast Discussion ...\n"}}},"308":{"description":"`?office={code}` with a listed office code: permanent redirect to that office's page.","headers":{"Location":{"description":"`\/o\/{code}\/`, followed by the request's query string.","schema":{"type":"string"}}}},"404":{"description":"No such endpoint.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"405":{"description":"Method not allowed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"406":{"description":"No acceptable representation for the Accept header.","content":{"text\/plain":{"schema":{"type":"string"}}}}}}},"\/o\/{code}\/":{"get":{"operationId":"getOfficeEdition","summary":"One office's decoded Area Forecast Discussion","description":"One NWS office's current discussion: its narrative sections in the National Weather Service's words, shorthand expanded. When a response includes an AI summary of a section, the summary is labelled as written by Claude and comes before that section's NWS text. Add `?view=changelog` for a paragraph-level diff against the previous issuance. Send `Accept: text\/markdown` for the decoded forecast as prose, or anything else for the typeset page. `Vary: Accept` is set on every response.","tags":["Pages"],"parameters":[{"name":"code","in":"path","required":true,"description":"3-letter NWS forecast office code.","schema":{"type":"string","enum":["ALY","BGM","RNK","BOX","BUF","BTV","CAR","CHS","RLX","CAE","GSP","OKX","MHX","PHI","PBZ","GYX","RAH","CTP","AKQ","LWX","ILM","FFC","BMX","HUN","JAN","JAX","KEY","MLB","MEG","MFL","MOB","MRX","OHX","TAE","TBW","ILX","LOT","ILN","CLE","DMX","DTX","APX","GRR","GRB","IND","JKL","EAX","ARX","LMK","MQT","MKX","IWX","PAH","DVN","SGF","LSX","ABR","BIS","DLH","FGF","GID","MPX","LBF","OAX","UNR","FSD","AMA","BRO","CRP","FWD","DDC","GLD","HGX","LCH","LZK","LUB","MAF","LIX","OUN","SJT","EWX","SHV","TOP","TSA","ICT","BYZ","BOI","CYS","BOU","LKN","GGW","GJT","TFX","MSO","PIH","PUB","REV","RIW","SLC","ABQ","EPZ","FGZ","VEF","PSR","TWC","HNX","EKA","LOX","MFR","PDT","PQR","STO","SGX","MTR","SEW","OTX","AFC","AFG","GUM","HFO","AJK","PPG","SJU"]}}],"responses":{"200":{"description":"The page.","content":{"text\/html":{"schema":{"type":"string"}},"text\/markdown":{"schema":{"type":"string"},"example":"# New York (OKX) \u2014 the NWS forecast in plain English\n\n> Area Forecast Discussion ...\n"}}},"404":{"description":"No such endpoint.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"405":{"description":"Method not allowed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"406":{"description":"No acceptable representation for the Accept header.","content":{"text\/plain":{"schema":{"type":"string"}}}}}}},"\/national\/":{"get":{"operationId":"getNationalDesk","summary":"The National Desk","description":"Where the weather is today: the SPC Day 1 Convective Outlook in plain English, a national alert census, and every forecast office under an active severe warning. Send `Accept: text\/markdown` for the decoded forecast as prose, or anything else for the typeset page. `Vary: Accept` is set on every response.","tags":["Pages"],"responses":{"200":{"description":"The page.","content":{"text\/html":{"schema":{"type":"string"}},"text\/markdown":{"schema":{"type":"string"},"example":"# New York (OKX) \u2014 the NWS forecast in plain English\n\n> Area Forecast Discussion ...\n"}}},"404":{"description":"No such endpoint.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"405":{"description":"Method not allowed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"406":{"description":"No acceptable representation for the Accept header.","content":{"text\/plain":{"schema":{"type":"string"}}}}}}},"\/api\/feed":{"get":{"operationId":"getOfficeFeed","summary":"RSS feed for one office","tags":["Data"],"description":"RSS 2.0. One item per issuance, carrying what changed since the previous one.","parameters":[{"name":"office","in":"query","required":true,"description":"3-letter NWS forecast office code.","schema":{"type":"string","enum":["ALY","BGM","RNK","BOX","BUF","BTV","CAR","CHS","RLX","CAE","GSP","OKX","MHX","PHI","PBZ","GYX","RAH","CTP","AKQ","LWX","ILM","FFC","BMX","HUN","JAN","JAX","KEY","MLB","MEG","MFL","MOB","MRX","OHX","TAE","TBW","ILX","LOT","ILN","CLE","DMX","DTX","APX","GRR","GRB","IND","JKL","EAX","ARX","LMK","MQT","MKX","IWX","PAH","DVN","SGF","LSX","ABR","BIS","DLH","FGF","GID","MPX","LBF","OAX","UNR","FSD","AMA","BRO","CRP","FWD","DDC","GLD","HGX","LCH","LZK","LUB","MAF","LIX","OUN","SJT","EWX","SHV","TOP","TSA","ICT","BYZ","BOI","CYS","BOU","LKN","GGW","GJT","TFX","MSO","PIH","PUB","REV","RIW","SLC","ABQ","EPZ","FGZ","VEF","PSR","TWC","HNX","EKA","LOX","MFR","PDT","PQR","STO","SGX","MTR","SEW","OTX","AFC","AFG","GUM","HFO","AJK","PPG","SJU"]}}],"responses":{"200":{"description":"RSS 2.0 feed.","content":{"application\/rss+xml":{"schema":{"type":"string"}}}},"400":{"description":"Invalid parameter.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"405":{"description":"Method not allowed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"502":{"description":"Upstream NWS failure.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/conditions":{"get":{"operationId":"getConditions","summary":"Current temperature and seasonal normal","tags":["Data"],"description":"Soft-failing by design: on any upstream problem it returns 200 with temp and delta null rather than an error, because it decorates a page that must still render. The seasonal normal does not depend on the station reading, so it is still returned (null only for an office with no normal).","parameters":[{"name":"office","in":"query","required":true,"description":"3-letter NWS forecast office code.","schema":{"type":"string","enum":["ALY","BGM","RNK","BOX","BUF","BTV","CAR","CHS","RLX","CAE","GSP","OKX","MHX","PHI","PBZ","GYX","RAH","CTP","AKQ","LWX","ILM","FFC","BMX","HUN","JAN","JAX","KEY","MLB","MEG","MFL","MOB","MRX","OHX","TAE","TBW","ILX","LOT","ILN","CLE","DMX","DTX","APX","GRR","GRB","IND","JKL","EAX","ARX","LMK","MQT","MKX","IWX","PAH","DVN","SGF","LSX","ABR","BIS","DLH","FGF","GID","MPX","LBF","OAX","UNR","FSD","AMA","BRO","CRP","FWD","DDC","GLD","HGX","LCH","LZK","LUB","MAF","LIX","OUN","SJT","EWX","SHV","TOP","TSA","ICT","BYZ","BOI","CYS","BOU","LKN","GGW","GJT","TFX","MSO","PIH","PUB","REV","RIW","SLC","ABQ","EPZ","FGZ","VEF","PSR","TWC","HNX","EKA","LOX","MFR","PDT","PQR","STO","SGX","MTR","SEW","OTX","AFC","AFG","GUM","HFO","AJK","PPG","SJU"]}}],"responses":{"200":{"description":"Conditions. Fields are null when unavailable.","content":{"application\/json":{"schema":{"type":"object","properties":{"temp":{"type":["number","null"],"description":"Current temperature, \u00b0F."},"normal":{"type":["number","null"],"description":"Seasonal normal high, \u00b0F."},"delta":{"type":["number","null"],"description":"temp \u2212 normal."}},"example":{"temp":72,"normal":75,"delta":-3}}}}},"400":{"description":"Invalid parameter.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/og":{"get":{"operationId":"getOgCard","summary":"Share card for one office","tags":["Data"],"description":"A 1200\u00d7630 PNG of the office's current edition, used for link unfurls.","parameters":[{"name":"office","in":"query","required":true,"description":"3-letter NWS forecast office code.","schema":{"type":"string","enum":["ALY","BGM","RNK","BOX","BUF","BTV","CAR","CHS","RLX","CAE","GSP","OKX","MHX","PHI","PBZ","GYX","RAH","CTP","AKQ","LWX","ILM","FFC","BMX","HUN","JAN","JAX","KEY","MLB","MEG","MFL","MOB","MRX","OHX","TAE","TBW","ILX","LOT","ILN","CLE","DMX","DTX","APX","GRR","GRB","IND","JKL","EAX","ARX","LMK","MQT","MKX","IWX","PAH","DVN","SGF","LSX","ABR","BIS","DLH","FGF","GID","MPX","LBF","OAX","UNR","FSD","AMA","BRO","CRP","FWD","DDC","GLD","HGX","LCH","LZK","LUB","MAF","LIX","OUN","SJT","EWX","SHV","TOP","TSA","ICT","BYZ","BOI","CYS","BOU","LKN","GGW","GJT","TFX","MSO","PIH","PUB","REV","RIW","SLC","ABQ","EPZ","FGZ","VEF","PSR","TWC","HNX","EKA","LOX","MFR","PDT","PQR","STO","SGX","MTR","SEW","OTX","AFC","AFG","GUM","HFO","AJK","PPG","SJU"]}},{"name":"id","in":"query","required":false,"description":"Pin the card to a specific issuance id.","schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"PNG share card.","content":{"image\/png":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid parameter.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/whereami":{"get":{"operationId":"getNearestOffice","summary":"Nearest covered office for the caller's IP","tags":["Data"],"description":"Uses the edge's approximate city-level IP geolocation. No permission prompt, no device location, never cached. Returns 204 when the caller is outside every NWS forecast office's area (for example, outside the US).","responses":{"200":{"description":"The nearest covered office.","content":{"application\/json":{"schema":{"type":"object","required":["office","city"],"properties":{"office":{"type":"string","enum":["ALY","BGM","RNK","BOX","BUF","BTV","CAR","CHS","RLX","CAE","GSP","OKX","MHX","PHI","PBZ","GYX","RAH","CTP","AKQ","LWX","ILM","FFC","BMX","HUN","JAN","JAX","KEY","MLB","MEG","MFL","MOB","MRX","OHX","TAE","TBW","ILX","LOT","ILN","CLE","DMX","DTX","APX","GRR","GRB","IND","JKL","EAX","ARX","LMK","MQT","MKX","IWX","PAH","DVN","SGF","LSX","ABR","BIS","DLH","FGF","GID","MPX","LBF","OAX","UNR","FSD","AMA","BRO","CRP","FWD","DDC","GLD","HGX","LCH","LZK","LUB","MAF","LIX","OUN","SJT","EWX","SHV","TOP","TSA","ICT","BYZ","BOI","CYS","BOU","LKN","GGW","GJT","TFX","MSO","PIH","PUB","REV","RIW","SLC","ABQ","EPZ","FGZ","VEF","PSR","TWC","HNX","EKA","LOX","MFR","PDT","PQR","STO","SGX","MTR","SEW","OTX","AFC","AFG","GUM","HFO","AJK","PPG","SJU"]},"city":{"type":"string"}},"example":{"office":"LOT","city":"Chicago"}}}}},"204":{"description":"No covered office for this location."},"405":{"description":"Method not allowed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","required":["error","code","hint","docs"],"properties":{"error":{"type":"string","description":"Human-readable message. Do not branch on this."},"code":{"type":"string","description":"Stable machine code. Branch on this.","enum":["invalid_office","invalid_id","invalid_request","method_not_allowed","not_found","rate_limited","upstream_error","timeout","forbidden","internal_error","unknown_param","over_capacity","alert_expired"]},"hint":{"type":"string","description":"What to change to make the request succeed."},"docs":{"type":"string","format":"uri","description":"Developer documentation."}},"example":{"error":"Invalid office","code":"invalid_office","hint":"Pass ?office=<CODE> with a 3-letter NWS office code, e.g. ?office=LOX. All 123 codes are listed at https:\/\/plaincast.live\/llms.txt","docs":"https:\/\/plaincast.live\/developers"}}}}}