Earthquakes API
Recent earthquakes worldwide from the USGS M4.5+ feed. Add source=bmkg or country=ID for BMKG events with felt areas.
GET /v1/earthquakes1 creditAbout $0.001Try it
curl 'https://api.apifor.dev/v1/earthquakes?period=day&limit=1' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"id": "us6000uei0",
"magnitude": 5,
"magnitude_type": "mb",
"place": "275 km ESE of Attu Station, Alaska",
"title": "M 5.0 - 275 km ESE of Attu Station, Alaska",
"time": "2026-11-30T12:20:00.599Z",
"updated": "2026-11-30T12:46:54.447Z",
"longitude": 177.0991,
"latitude": 52.1757,
"depth_km": 10,
"status": "reviewed",
"type": "earthquake",
"tsunami": false,
"felt_reports": null,
"cdi": null,
"mmi": 4.038,
"alert": "green",
"significance": 385,
"network": "us",
"url": "https://earthquake.usgs.gov/earthquakes/eventpage/us6000uei0",
"detail_url": "https://earthquake.usgs.gov/earthquakes/feed/v1.0/detail/us6000uei0.geojson",
"source": "USGS"
}
],
"meta": {
"total": 1,
"page": 1,
"per_page": 50,
"total_pages": 1,
"attribution": {
"source": "https://earthquake.usgs.gov",
"licence": "Public domain",
"license": "Public domain",
"license_url": "https://earthquake.usgs.gov",
"source_url": "https://earthquake.usgs.gov",
"attribution_page": "https://apifor.dev/sources",
"notice": "Source: https://earthquake.usgs.gov. Licensed under Public domain. Fields normalized by APIFor."
}
}
}A real response from our OpenAPI file, with long lists and strings shortened.
Endpoints and price
| Endpoint | Credits | About |
|---|---|---|
GET /v1/earthquakes | 1 credit | $0.001 |
GET /v1/earthquakes/coverage (Free) | Free | $0 |
USD at Starter pack prices ($5 for 5,000 credits). Calls that fail before work starts are refunded.
Coverage today
Works for any country. Country-specific data: Indonesia.
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/earthquakes/coverage, free with your API key. How coverage works
Limits
- period is hour, day, week or month.
- Felt areas and tsunami potential come from BMKG events only.
- BMKG feeds are checked every hour, so a new BMKG event can take about an hour to appear. meta.freshness gives the time.
- With source=all, a USGS event that matches a BMKG one is folded into it under also_reported_by.
- Not an emergency alert system. Observations can be revised.
Questions
Did the earthquakes endpoint change?
No. /v1/earthquakes still returns the USGS feed by default, as before. BMKG events are added when you ask for them.
Can I use the data commercially?
Yes. USGS data is public domain. BMKG data needs attribution, which comes in every response.