List of Office IDs? #690
-
The API supports getting details for a NWS office based on ID using
If I submit an invalid ["NWS","AKQ","ALY","BGM","BOX","BTV","BUF","CAE","CAR","CHS","CLE","CTP","GSP","GYX","ILM","ILN","LWX","MHX","OKX","PBZ","PHI","RAH","RLX","RNK","ABQ","AMA","BMX","BRO","CRP","EPZ","EWX","FFC","FWD","HGX","HUN","JAN","JAX","KEY","LCH","LIX","LUB","LZK","MAF","MEG","MFL","MLB","MOB","MRX","OHX","OUN","SHV","SJT","SJU","TAE","TBW","TSA","ABR","APX","ARX","BIS","BOU","CYS","DDC","DLH","DMX","DTX","DVN","EAX","FGF","FSD","GID","GJT","GLD","GRB","GRR","ICT","ILX","IND","IWX","JKL","LBF","LMK","LOT","LSX","MKX","MPX","MQT","OAX","PAH","PUB","RIW","SGF","TOP","UNR","BOI","BYZ","EKA","FGZ","GGW","HNX","LKN","LOX","MFR","MSO","MTR","OTX","PDT","PIH","PQR","PSR","REV","SEW","SGX","SLC","STO","TFX","TWC","VEF","AER","AFC","AFG","AJK","ALU","GUM","HPA","HFO","PPG","STU","NH1","NH2","ONA","ONP","ARH","CRH","ERH","PRH","SRH","WRH"] |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
I should note that I do see those same IDs enumerated in the OpenAPI specification. That just doesn't seem like a great way to programmatically get the list of IDs. I was hoping for something similar to |
Beta Was this translation helpful? Give feedback.
-
I use https://api.weather.gov/products/locations Mostly null entries but I believe all of the offices are in there. |
Beta Was this translation helpful? Give feedback.
-
I took the list at What I got was 127 valid options: This list is valid as of 2/15/2024 at 9:45 PM CST. |
Beta Was this translation helpful? Give feedback.
-
There is an open ticket in the API to add an endpoint for the list of offices. No ETA on that, just FYI that it's in the hopper. 🙂 |
Beta Was this translation helpful? Give feedback.
I use
https://api.weather.gov/products/locations
Mostly null entries but I believe all of the offices are in there.