StudioAPI Docs Get a key
View as Markdown
reference/gempa

Base path: /api/v1/gempa

Endpoints

MethodPathQueryDescription
GET/terkiniLatest 15 earthquakes.
GET/dirasakanLatest 15 felt earthquakes.
GET/historystart, end (required, YYYY-MM-DD)Up to 100 events in range.

Example

curl "https://use.studioapi.dev/api/v1/gempa/terkini" \
  -H "x-api-key: $STUDIOAPI_KEY"

Response fields: id, datetime, magnitude, depth_km, lat, lng, region, potential, is_felt, felt_areas, source.

Errors

  • VALIDATION_ERROR (400) — history missing start or end.