Returns metadata about a given observation station
Parameters (2)
Feature-Flags(array, header, optional)
Enable future and experimental features (see documentation for more info):
* obs_station_provider: Include the data provider in the metadata about observation stations
stationId(string, path, required)
Observation station ID
Examples (3)
Get station metadata for JFK airportcurl
curl 'https://api.weather.gov/stations/KJFK'
import requests
resp = requests.get("https://api.weather.gov/stations/KJFK")
data = resp.json()
import zingu_apis
api = zingu_apis.api("weather")
result = api.fetch("stations/{stationId}")
for item in result:
print(item)
const resp = await fetch("https://api.weather.gov/stations/KJFK");
const data = await resp.json();
Get station with experimental provider featurecurl