# BMKG API

> BMKG API on Apizie: 4 endpoints (Gempa Terkini, 15 Gempa M5+, Gempa Dirasakan, Prakiraan Cuaca) returned as clean JSON through one API key. 4 endpoints are live now. Call it over REST at https://zieapi.vercel.app/v1/indonesia:bmkg/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `indonesia:bmkg`
- Category: Indonesia
- Status: live
- Source: https://bmkg.go.id
- Page: https://zieapi.vercel.app/api/indonesia/bmkg
- OpenAPI: https://zieapi.vercel.app/api/indonesia/bmkg/openapi.json

Info gempa bumi terkini dan prakiraan cuaca per kelurahan/desa dari data terbuka BMKG. Wajib mencantumkan BMKG sebagai sumber.

## Endpoints

### Gempa Terkini
`GET https://zieapi.vercel.app/v1/indonesia:bmkg/gempa-terkini`

### 15 Gempa M5+
`GET https://zieapi.vercel.app/v1/indonesia:bmkg/gempa-terbaru`

### Gempa Dirasakan
`GET https://zieapi.vercel.app/v1/indonesia:bmkg/gempa-dirasakan`

### Prakiraan Cuaca
`GET https://zieapi.vercel.app/v1/indonesia:bmkg/cuaca`

| Parameter | Type | Required | Description |
|---|---|---|---|
| adm4 | string | yes | Kode wilayah tingkat IV (kelurahan/desa), format 31.71.03.1001 |

## Example
```
curl "https://zieapi.vercel.app/v1/indonesia:bmkg/gempa-terkini" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the BMKG API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/indonesia:bmkg/gempa-terkini with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the BMKG API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the BMKG API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key indonesia:bmkg.

### What is the status of the BMKG API?
Live: works with just an Apizie key
