curl -fL "https://power.larc.nasa.gov/api/temporal/daily/point?parameters=PRECTOTCORR,T2M_MAX,T2M_MIN&community=AG&longitude=-62.5000&latitude=-7.5000&start=20200101&end=20201231&format=JSON" \
-o response
import requests
r = requests.get("https://power.larc.nasa.gov/api/temporal/daily/point?parameters=PRECTOTCORR,T2M_MAX,T2M_MIN&community=AG&longitude=-62.5000&latitude=-7.5000&start=20200101&end=20201231&format=JSON")
r.raise_for_status()
open("response", "wb").write(r.content)
const res = await fetch("https://power.larc.nasa.gov/api/temporal/daily/point?parameters=PRECTOTCORR,T2M_MAX,T2M_MIN&community=AG&longitude=-62.5000&latitude=-7.5000&start=20200101&end=20201231&format=JSON");
console.log(res.status, res.headers.get("content-type"));