data = {"lat": -39.809,
"lon": -16.787,
"model": "gfs",
"parameters": ["wind"],
"key": "abcd1234"
}
header = {"Content-Type" :"application/json"}
s= requests.post("https://api.windy.com/api/point-forecast/v2", json = data, headers = header)
print(s.text)
G
Best posts made by g.martins
-
RE: API Requests in Python
Latest posts made by g.martins
-
RE: API Requests in Python
data = {"lat": -39.809, "lon": -16.787, "model": "gfs", "parameters": ["wind"], "key": "abcd1234" } header = {"Content-Type" :"application/json"} s= requests.post("https://api.windy.com/api/point-forecast/v2", json = data, headers = header) print(s.text)