Zum Inhalt springen
GET /v1/count

Active alert counts by state

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/weatheralerts-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/weatheralerts-api/v1/count" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/weatheralerts-api/v1/count", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/weatheralerts-api/v1/count");
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/weatheralerts-api/v1/count",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "land": 76,
        "total": 232,
        "marine": 156,
        "by_area": [
            {
                "name": "PK",
                "count": 114
            },
            {
                "name": "PZ",
                "count": 26
            },
            {
                "name": "MO",
                "count": 11
            },
            {
                "name": "AN",
                "count": 9
            },
            {
                "name": "KS",
                "count": 7
            },
            {
                "name": "AR",
                "count": 6
            },
            {
                "name": "MT",
                "count": 6
            },
            {
                "name": "TN",
                "count": 6
            },
            {
                "name": "TX",
                "count": 6
            },
            {
                "name": "AK",
                "count": 5
            },
            {
                "name": "AL",
                "count": 4
            },
            {
                "name": "SD",
                "count": 4
            },
            {
                "name": "LA",
                "count": 3
            },
            {
                "name": "MD",
                "count": 3
            },
            {
                "name": "MS",
                "count": 3
            },
            {
                "name": "AM",
                "count": 2
            },
            {
                "name": "CA",
                "count": 2
            },
            {
                "name": "FL",
                "count": 2
            },
            {
                "name": "HI",
                "count": 2
            },
            {
                "name": "IN",
                "count": 2
            },
            {
                "name": "PH",
                "count": 2
            },
            {
                "name": "GM",
                "count": 1
            },
            {
                "name": "IL",
                "count": 1
            },
            {
                "name": "KY",
                "count": 1
            },
            {
                "name": "LH",
                "count": 1
            },
            {
                "name": "LO",
                "count": 1
            },
            {
                "name": "ND",
                "count": 1
            },
            {
                "name": "NM",
                "count": 1
            },
            {
                "name": "NY",
                "count": 1
            },
            {
                "name": "OK",
                "count": 1
            },
            {
                "name": "SC",
                "count": 1
            },
            {
                "name": "VA",
                "count": 1
            },
            {
                "name": "VT",
                "count": 1
            },
            {
                "name": "WA",
            
…