Skip to content
GET /v1/count

Active alert counts by state

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/weatheralerts-api

It works. Grab an API key and use it in your project.

Get an API key

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_..."}
)

Example response

A real response from this endpoint, captured by the latest 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",
            
…