curl "https://hydrological.org/api/v1/datasets/glofas-reanalysis/links?bbox=-75,-20,-50,5" \
-H "Accept: application/json"
import cdsapi # pip install cdsapi
c = cdsapi.Client(url="https://ewds.climate.copernicus.eu/api", key="YOUR_KEY")
c.retrieve("cems-glofas-historical", {
"system_version": ["version_4_0"],
"hydrological_model": ["lisflood"],
"product_type": ["consolidated"],
"variable": ["river_discharge_in_the_last_24_hours"],
"hyear": ["2020"],
"hmonth": ["01"],
"hday": ["01", "02", "03"],
"data_format": "netcdf",
"area": [5, -75, -20, -50],
}, "glofas_2020.nc")
const res = await fetch("https://hydrological.org/api/v1/datasets/glofas-reanalysis/links?bbox=-75,-20,-50,5");
const { groups } = await res.json();
for (const g of groups) g.links.forEach(l => console.log(l.url));