curl 'https://api.weather.gov/alerts/types' \
-H 'User-Agent: RobustAPI-Test'
import requests
resp = requests.get(
"https://api.weather.gov/alerts/types",
headers={
'User-Agent': 'RobustAPI-Test',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("weather")
result = api.fetch("alerts/types")
for item in result:
print(item)
const resp = await fetch("https://api.weather.gov/alerts/types", {
headers: {
"User-Agent": "RobustAPI-Test",
},
});
const data = await resp.json();