/v1/categories
Event categories
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/naturalevents-api/v1/categories" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/naturalevents-api/v1/categories", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/naturalevents-api/v1/categories");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/naturalevents-api/v1/categories",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"count": 13,
"categories": [
{
"id": "drought",
"title": "Drought",
"description": "Long lasting absence of precipitation affecting agriculture and livestock, and the overall availability of food and water."
},
{
"id": "dustHaze",
"title": "Dust and Haze",
"description": "Related to dust storms, air pollution and other non-volcanic aerosols. Volcano-related plumes shall be included with the originating eruption event."
},
{
"id": "earthquakes",
"title": "Earthquakes",
"description": "Related to all manner of shaking and displacement. Certain aftermath of earthquakes may also be found under landslides and floods."
},
{
"id": "floods",
"title": "Floods",
"description": "Related to aspects of actual flooding--e.g., inundation, water extending beyond river and lake extents."
},
{
"id": "landslides",
"title": "Landslides",
"description": "Related to landslides and variations thereof: mudslides, avalanche."
},
{
"id": "manmade",
"title": "Manmade",
"description": "Events that have been human-induced and are extreme in their extent."
},
{
"id": "seaLakeIce",
"title": "Sea and Lake Ice",
"description": "Related to all ice that resides on oceans and lakes, including sea and lake ice (permanent and seasonal) and icebergs."
},
{
"id": "severeStorms",
"title": "Severe Storms",
"description": "Related to the atmospheric aspect of storms (hurricanes, cyclones, tornadoes, etc.). Results of storms may be included under floods, landslides, etc."
},
{
"id": "snow",
"title": "Snow",
"description": "Related to snow events, particularly extreme/anomalous snowfall in either timing or extent/depth."
},
{
"id": "tempExtremes",
"title": "Temperature Extremes",
"description": "Related to anomalous land temperatures, either heat or cold."
},
{
"id": "volcanoes",
"title": "Volcanoes",
"description": "Related to both the physical effects of an eruption (rock, ash, lava) and the atmospheric (ash and gas plumes)."
},
{
"id": "waterColor",
"title": "Water Color",
"description": "Related to events that alter the appearance of water: phytoplankton, red tide, algae, sediment, whiting, etc."
},
…