---
title: "Earthquakes API | APIFor"
description: "Recent earthquakes worldwide from the USGS M4.5+ feed. 1 credit per call, REST and MCP, one API key."
canonical: "https://apifor.dev/services/earthquakes/"
---

1. [Services](https://apifor.dev/services/)
2. [Earthquakes](https://apifor.dev/services/earthquakes/)

# 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/earthquakes 1 credit About $0.001

[Get a free API key](https://app.apifor.dev/register) [Endpoint reference](https://apifor.dev/docs/reference/earthquakes/)

## Try it

GET /v1/earthquakes

```bash
curl 'https://api.apifor.dev/v1/earthquakes?period=day&limit=1' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "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`](https://apifor.dev/docs/reference/earthquakes/#get-earthquakes-coverage), free with your API key. [How coverage works](https://apifor.dev/docs/coverage/)

## 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.

## Sources and licences

- **[USGS](https://earthquake.usgs.gov)**: Public domain
- **[BMKG](https://data.bmkg.go.id/gempabumi/)**: BMKG open data, attribution required

### Attribution

- Source: BMKG

## Also on MCP

Connect `https://mcp.apifor.dev/mcp` and your agent gets a tool for this service, billed the same way.

[MCP setup](https://apifor.dev/docs/mcp/)

## 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.

## Related services

[All services](https://apifor.dev/services/)

- [Weather forecast API](https://apifor.dev/services/weather/)
- [Weather alerts API](https://apifor.dev/services/weather-alerts/)
- [Tsunami alerts API](https://apifor.dev/services/tsunami-alerts/)
- [Volcano alert levels API](https://apifor.dev/services/volcanoes/)
- [Air quality API](https://apifor.dev/services/air-quality/)
