import zingu_apis
api = zingu_apis.api("gdacs")
result = api.fetch("events/geteventlist/{outputType}", eventtypes="EQ,TC,FL", fromDate="2024-01-01", toDate="2024-12-31", alertlevel="Orange", country="USA")
for item in result:
print(item)
const resp = await fetch("https://www.gdacs.org/gdacsapi/api/events/geteventlist/{outputType}?eventtypes=EQ%2CTC%2CFL&fromDate=2024-01-01&toDate=2024-12-31&alertlevel=Orange&country=USA");
const data = await resp.json();