---
title: "Weather alerts API | APIFor"
description: "Severe weather alerts in force now, or every alert since a time, filtered by country and area. 1 credit per call, REST and MCP, one API key."
canonical: "https://apifor.dev/services/weather-alerts/"
---

1. [Services](https://apifor.dev/services/)
2. [Weather alerts](https://apifor.dev/services/weather-alerts/)

# Weather alerts API

Severe weather alerts in force now, or every alert since a time, filtered by country and area.

GET /v1/weather-alerts 1 credit About $0.001

[Get a free API key](https://app.apifor.dev/register) [Endpoint reference](https://apifor.dev/docs/reference/weather-alerts/)

## Try it

GET /v1/weather-alerts

```bash
curl 'https://api.apifor.dev/v1/weather-alerts?area=papua+barat' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "success": true,
  "data": [
    {
      "id": "warn_2-49-0-1-360-0-2026-11-30-12-92-001",
      "status": "active",
      "country": "ID",
      "event": "Heavy rain with thunderstorms",
      "event_local": "Hujan Lebat disertai Petir",
      "province": "Papua Barat",
      "areas": [
        "ARANDAY",
        "BISCOOP"
      ],
      "headline": "Heavy rain with thunderstorms in Papua Barat",
      "headline_local": "Hujan Lebat disertai Petir di Papua Barat",
      "description_local": "Hujan lebat disertai petir akan terjadi pada 30 November 2026, 21:54 WIT di sebagian wilayah Papua Barat, khususnya di ARANDAY, BISCOOP, ...",
      "instruction": "Follow official BMKG information and the directions of local officials.",
      "instruction_local": "Ikuti informasi resmi BMKG dan arahan petugas setempat.",
      "local_language": "id",
      "category": "Met",
      "urgency": "Expected",
      "severity": "Moderate",
      "certainty": "Likely",
      "effective_at": "2026-11-30T12:41:00.000Z",
      "expires_at": "2026-11-30T17:12:00.000Z",
      "expires_local": "01 December 2026, 02:12 WIT",
      "published_at": "2026-11-30T12:41:00.000Z",
      "url": "https://www.bmkg.go.id/alerts/nowcast/id/CPB20261130001_alert.xml",
      "source": "BMKG",
      "format": "CAP",
      "local": {
        "country": "ID",
        "bmkg_alert_id": "2.49.0.1.360.0.2026.11.30.12.92.001"
      }
    }
  ],
  "meta": {
    "total": 1,
    "page": 1,
    "per_page": 25,
    "total_pages": 1,
    "attribution": {
      "source": "BMKG (Badan Meteorologi, Klimatologi, dan Geofisika)",
      "licence": "BMKG open data, attribution required",
      "license": "BMKG open data, attribution required",
      "license_url": "https://data.bmkg.go.id",
      "source_url": "https://data.bmkg.go.id",
      "attribution_page": "https://apifor.dev/sources",
      "notice": "Source: BMKG (Badan Meteorologi, Klimatologi, dan Geofisika). Show BMKG as the data source wherever you display this data. Fields normali..."
    },
    "freshness": {
      "mode": "cached",
      "source": "BMKG",
      "source_published_at": "2026-11-30T12:41:00.000Z",
      "fetched_at": "2026-11-30T13:00:35.311Z",
      "refresh_interval_minutes": 60,
      "max_lag_minutes": 60
    }
  }
}
```

A real response from our OpenAPI file, with long lists and strings shortened.

## Endpoints and price

| Endpoint | Credits | About |
| --- | --- | --- |
| GET `/v1/weather-alerts` | 1 credit | $0.001 |
| GET `/v1/weather-alerts/{id}` | 1 credit | $0.001 |
| GET `/v1/weather-alerts/coverage` (Free) | Free | $0 |

USD at Starter pack prices ($5 for 5,000 credits). Calls that fail before work starts are refunded.

## Coverage today

Austria, Belgium, Bosnia & Herzegovina, Bulgaria, Croatia, Cyprus, Czechia, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Indonesia, Ireland, Israel, Italy, Latvia, Lithuania, Luxembourg, Malaysia, Malta, Moldova, Montenegro, Netherlands, North Macedonia, Norway, Poland, Portugal, Romania, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, Ukraine, United Kingdom and United States.

Leave `country` out to get every covered country, or pass one to narrow it.

Sources, row counts and country-only fields per country: [`GET /v1/weather-alerts/coverage`](https://apifor.dev/docs/reference/weather-alerts/#get-weather-alerts-coverage), free with your API key. [How coverage works](https://apifor.dev/docs/coverage/)

## Limits

- Some countries keep history, others return only alerts in force. The coverage endpoint says which.
- Indonesian (BMKG) alerts are copied every hour, so a new one can take up to an hour to show. meta.freshness gives the time.
- US and Malaysian alerts are fetched on request and cached for 1 to 5 minutes.
- European (MeteoAlarm) alerts come from a snapshot refreshed every few minutes, never served as current once over ten minutes old.
- Original wording stays in the *_local fields, with English where we have it.

## Sources and licences

- **[BMKG nowcast (CAP)](https://data.bmkg.go.id/peringatan-dini-cuaca/)**: BMKG open data, attribution required

Each response carries its attribution in `meta.attribution`. Keep it when you show the data.

## Also on MCP

Connect `https://mcp.apifor.dev/mcp` and your agent gets a tool for this service, billed the same way.

[MCP setup](https://apifor.dev/docs/mcp/)

## Questions

**When does an alert stop being active?**

When its expiry time passes. expires_at is in UTC.

**Is this an emergency warning system?**

No. Use it to inform people, and follow official channels in an emergency.

## Related services

[All services](https://apifor.dev/services/)

- [Weather forecast API](https://apifor.dev/services/weather/)
- [Earthquakes API](https://apifor.dev/services/earthquakes/)
- [Tsunami alerts API](https://apifor.dev/services/tsunami-alerts/)
- [Volcano alert levels API](https://apifor.dev/services/volcanoes/)
- [Air quality API](https://apifor.dev/services/air-quality/)
