# BMKG Indonesia Earthquake API

> Latest and recent earthquakes in Indonesia from BMKG: magnitude, depth, location, tsunami risk

- Vendor: `bmkgindonesiaearthquakeapi` · version 1.0 · category Science · tags earthquake api, indonesia earthquake api, bmkg api, seismic data api, tsunami alert api, disaster data api
- Datasource: custom HTTP routes
- Marketplace page: https://apiclay.com/api/bmkgindonesiaearthquakeapi
- This document: https://apiclay.com/docs/bmkgindonesiaearthquakeapi.md
- OpenAPI 3.1: https://apiclay.com/api/bmkgindonesiaearthquakeapi/openapi.json
- MCP: connect https://api.apiclay.com/v1/mcp (see https://apiclay.com/llms.txt), then `apiclay_describe_api` with vendor `bmkgindonesiaearthquakeapi`
- Updated: 2026-11-18

## About

## BMKG Indonesia Earthquake API

Earthquake information from BMKG, Indonesia's meteorology, climatology and geophysics agency: the latest quake (time, coordinates, magnitude, depth, region, tsunami potential, where it was felt, shakemap), the last 15 quakes of magnitude 5+, and the last 15 felt quakes.

Data comes from **bmkg.go.id** (https://www.bmkg.go.id). Every route calls the source's own public API and returns it unchanged.

Typical flow: `/latest`, `/recent-m5`, `/recent-felt`.

### Routes

#### GET `/latest` - Latest earthquake
No parameters.

Returns: `Infogempa.gempa` with `Tanggal`, `Jam`, `DateTime`, `Coordinates`, `Magnitude`, `Kedalaman` (depth), `Wilayah` (region), `Potensi`, `Dirasakan`, `Shakemap`.

#### GET `/recent-m5` - Recent M5+
No parameters.

Returns: `Infogempa.gempa[]` (15 quakes).

#### GET `/recent-felt` - Recent felt
No parameters.

Returns: `Infogempa.gempa[]` (15 felt quakes).

### Caveats

- Text fields are in Indonesian. Credit BMKG as the source.
- Upstream responses can change over time. Verify fields before relying on them.
- Not affiliated with or endorsed by bmkg.go.id.

## Pricing

- Pay as you go: 0.0012 credits/request
- Trial: 1 free requests per buyer
- Billing order: trial requests -> subscribed plan requests -> pay as you go. 1 credit's USD value is shown on the marketplace page.

## HTTP routes

Only the public, buyer-facing parts of each route are listed; vendor-side credentials stay on the gateway.

### GET /latest — Latest earthquake
- Gateway: `GET https://api.apiclay.com/v1/api/bmkgindonesiaearthquakeapi/latest`
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

### GET /recent-m5 — Recent M5+
- Gateway: `GET https://api.apiclay.com/v1/api/bmkgindonesiaearthquakeapi/recent-m5`
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

### GET /recent-felt — Recent felt
- Gateway: `GET https://api.apiclay.com/v1/api/bmkgindonesiaearthquakeapi/recent-felt`
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

## Call example

```bash
curl -X GET "https://api.apiclay.com/v1/api/bmkgindonesiaearthquakeapi/latest" \
  -H "token: <YOUR_APICLAY_TOKEN>"
```

Index of every published API: https://apiclay.com/llms.txt
