1. Services
  2. 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-alerts1 creditAbout $0.001

Try it

GET/v1/weather-alerts
curl 'https://api.apifor.dev/v1/weather-alerts?area=papua+barat' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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

EndpointCreditsAbout
GET /v1/weather-alerts1 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, free with your API key. How coverage works

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.

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