# BMKG Earthquakes



Every BMKG earthquake feed — the latest event, the last fifteen significant ones, and the last fifteen people actually felt.



## BMKG Latest Earthquake

The most recent earthquake recorded in Indonesia, with magnitude, depth, epicentre, and the official tsunami assessment.

- Method: `GET`
- Path: `/v1/earthquakes/bmkg/latest`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/earthquakes/bmkg/latest \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "earthquake": {
      "occurred_at": "2026-08-18T12:25:31.000Z",
      "magnitude": 2.1,
      "depth_km": 6,
      "latitude": -7.25,
      "longitude": 107.61,
      "region": "Pusat gempa berada di darat 27 km selatan Kab. Bandung",
      "tsunami_potential": null,
      "felt_at": "II Pangalengan",
      "shakemap_url": null
    }
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-18T12:25:31.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-18T12:31:00.000Z"
  }
}
```

## BMKG Recent Significant Earthquakes

The last fifteen earthquakes of magnitude 5.0 and above, newest first.

- Method: `GET`
- Path: `/v1/earthquakes/bmkg/recent`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |
| `limit` | integer | optional | Return only the most recent N events. |

**Example request**

```bash
curl https://api.diraz.ae/v1/earthquakes/bmkg/recent \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "earthquakes": [
      {
        "occurred_at": "2026-08-18T06:02:23.000Z",
        "magnitude": 6.1,
        "depth_km": 29,
        "latitude": -0.65,
        "longitude": 98.32,
        "region": "147 km Tenggara NIASSELATAN-SUMUT",
        "tsunami_potential": "Tidak berpotensi tsunami",
        "felt_at": null,
        "shakemap_url": null
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-18T06:02:23.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-18T17:10:15.000Z"
  }
}
```

## BMKG Felt Earthquakes

The last fifteen earthquakes people actually felt, each with the intensity reported on the MMI scale.

- Method: `GET`
- Path: `/v1/earthquakes/bmkg/felt`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |
| `limit` | integer | optional | Return only the most recent N events. |

**Example request**

```bash
curl https://api.diraz.ae/v1/earthquakes/bmkg/felt \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "earthquakes": [
      {
        "occurred_at": "2026-08-18T12:25:31.000Z",
        "magnitude": 2.1,
        "depth_km": 6,
        "latitude": -7.25,
        "longitude": 107.61,
        "region": "Pusat gempa berada di darat 27 km selatan Kab. Bandung",
        "tsunami_potential": null,
        "felt_at": "II Pangalengan",
        "shakemap_url": null
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-18T12:25:31.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-18T17:10:15.000Z"
  }
}
```