National Weather Service

БЕСПЛАТНО
От API Guy | Обновлено il y a 16 jours | Weather
Популярность

9.5 / 10

Задержка

235ms

Уровень обслуживания

99%

Health Check

N/A

Назад ко всем обсуждениям

Stations by states fails

Rapid account: Dcbriccetti
dcbriccetti
il y a 4 ans

import requests

url = “https://national-weather-service.p.rapidapi.com/stations

querystring = {“states”: “CA”}

headers = {‘x-rapidapi-host’: “national-weather-service.p.rapidapi.com”,
‘x-rapidapi-key’: “5eb55b9223mshb077877563682ddp16f4c4jsn70c943b6aab1”}

response = requests.request(“GET”, url, headers=headers, params=querystring)

print(response.text)

{
“correlationId”: “fadebe16-e3f4-4389-a885-c98fe91c891d”,
“title”: “Invalid Parameter”,
“type”: “https://api.weather.gov/problems/InvalidParameter”,
“status”: 400,
“detail”: “Parameter “states” is invalid: Unknown query parameter”,
“instance”: “https://api.weather.gov/requests/fadebe16-e3f4-4389-a885-c98fe91c891d
}

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии