# Worldwide Earthquakes API

> Worldwide Earthquakes tracks global seismic activity recorded over the past hour. It delivers magnitudes, epicenter coordinates and depth, location names, tsunami warning flags, USGS event links and 24-hour activity summaries sourced from the USGS. Filter by minimum magnitude; paid plans list the past 24 hours, search around any point, and add 7- and 30-day counts, the month's largest quake and daily history.

**Endpoint:** `GET https://api.apiverve.com/v1/earthquake`  
**Category:** Weather  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/earthquake

## Overview

Requests pull seismic records refreshed hourly from the United States Geological Survey. The endpoint outputs events from the previous hour with magnitudes, coordinates, and tsunami indicators, leaving alert levels null if unassigned. It also provides rolling 24-hour counts and peak magnitudes, while paid plans add the 24-hour average magnitude. The last 30 UTC days are stored as daily summaries, so paid plans also get the 7- and 30-day earthquake counts, the average per day, the number of M4.5+ quakes, and the largest quake of the week and month with its location and time; daily=true returns one row per day. Inside the US events are listed down to about magnitude 1; elsewhere USGS mostly publishes magnitude 4 to 4.5 and above.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/earthquake?period=day&minMagnitude=2.5&lat=34.05&lon=-118.24&radius=250&daily=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `period` | string | No | Time window: hour (the past hour), day (the past 24 hours) or week (the past 7 days, refreshed every 3 hours). default hour. One of: hour, day, week. Premium field |
| `minMagnitude` | number | No | Only return earthquakes of at least this magnitude. range -2-10 |
| `lat` | number | No | Latitude to search around. With lon, returns only earthquakes within radius km, nearest first, each with distanceKm. Sending lat without lon (or lon without lat) returns 400. range -90-90. Premium field |
| `lon` | number | No | Longitude to search around (use with lat). range -180-180. Premium field |
| `radius` | number | No | Search radius in kilometers around lat/lon. Outside the US the source lists mostly M4-4.5 and larger quakes, so a small radius there can return none even when smaller quakes were felt. default 500. range 1-20000. Premium field |
| `daily` | boolean | No | Include one row per UTC day for the last 30 days: event count, largest magnitude and M4.5+ count. default false. Premium field |

## Response fields

- `earthquakes_LastUpdated` — string · Timestamp of when the underlying earthquake data was last refreshed from USGS
- `earthquakes_LastHour` — number · Number of earthquakes recorded in the past hour
- `count24h` — number · Total earthquake count in the past 24 hours
- `largestMagnitude24h` — number · Largest earthquake magnitude recorded in the past 24 hours
- `avgMagnitude24h` — number · Average earthquake magnitude across the past 24 hours · (premium)
- `count7d` — number · Earthquakes recorded worldwide over the last 7 UTC days, today so far included; null until days are stored · (premium)
- `count30d` — number · Earthquakes recorded worldwide over the last 30 UTC days, today so far included; null until days are stored · (premium)
- `avgDailyCount30d` — number · Average earthquakes per complete UTC day over the last 30 days · (premium)
- `m45Count30d` — number · Earthquakes of magnitude 4.5 or more over the last 30 days · (premium)
- `largestMagnitude7d` — number · Largest magnitude recorded over the last 7 days · (premium)
- `largestMagnitude30d` — number · Largest magnitude recorded over the last 30 days · (premium)
- `largestPlace30d` — string · Location of the last 30 days' largest earthquake · (premium)
- `largestTime30d` — number · Unix timestamp, in milliseconds, of the last 30 days' largest earthquake · (premium)
- `daysStored` — number · How many of the last 30 UTC days have stored stats
- `period` — string · The time window the earthquakes list covers: hour, day or week
- `count` — number · Number of earthquakes returned after the period, magnitude and location filters
  - `earthquakes.0.mag` — number · Magnitude of the earthquake
  - `earthquakes.0.place` — string · Human-readable description of the epicenter's location
  - `earthquakes.0.time` — number · Unix timestamp, in milliseconds, of when the earthquake occurred
  - `earthquakes.0.felt` — object · Number of 'felt' reports submitted by the public for this event; absent when none were submitted
  - `earthquakes.0.cdi` — object · Maximum reported intensity of the event from citizen 'Did You Feel It?' reports
  - `earthquakes.0.mmi` — object · Maximum estimated instrumental intensity of the event
  - `earthquakes.0.alert` — object · PAGER alert level for the event (green, yellow, orange, or red); null when no alert has been assigned
  - `earthquakes.0.status` — string · Review status of the event: 'automatic' if produced by an automatic system, 'reviewed' if a human seismologist verified it
  - `earthquakes.0.tsunami` — number · Whether a tsunami warning was associated with this event (1) or not (0)
  - `earthquakes.0.sig` — number · A number describing how significant the event is, based on magnitude, felt reports, and other factors; larger numbers indicate a more significant event
  - `earthquakes.0.net` — string · ID of the seismic network that originally authored the event
  - `earthquakes.0.types` — string · Comma-separated list of product types associated with this event
  - `earthquakes.0.nst` — number · Number of seismic stations used to determine the earthquake's location
  - `earthquakes.0.dmin` — number · Horizontal distance, in degrees, from the epicenter to the nearest reporting station
  - `earthquakes.0.rms` — number · Root-mean-square travel time residual of the seismic stations used to locate the event, in seconds
  - `earthquakes.0.gap` — number · Largest azimuthal gap, in degrees, between adjacent reporting stations
  - `earthquakes.0.magType` — string · Method or algorithm used to calculate the reported magnitude
  - `earthquakes.0.type` — string · Type of seismic event, e.g. earthquake or quarry blast
  - `earthquakes.0.title` — string · Formatted summary combining the magnitude and place, e.g. 'M 2.5 - 3 km ESE of Camarillo, CA'
  - `earthquakes.0.coordinates` — array · Epicenter location as [longitude, latitude]
  - `earthquakes.0.depthKm` — number · Depth of the hypocenter below the surface, in kilometers
  - `earthquakes.0.id` — string · USGS event ID, stable across updates to the event
  - `earthquakes.0.url` — string · USGS event page with maps, felt reports and ShakeMap
  - `earthquakes.0.distanceKm` — number · Distance from lat/lon to the epicenter in kilometers; present only when lat and lon are given · (premium)
  - `daily.0.date` — string · UTC date (YYYY-MM-DD) · (premium)
  - `daily.0.count` — number · Earthquakes recorded that day · (premium)
  - `daily.0.maxMagnitude` — number · Largest magnitude that day; null when no event had one · (premium)
  - `daily.0.m45Count` — number · Earthquakes of magnitude 4.5 or more that day · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "earthquakes_LastUpdated": "2026-10-26T20:35:55.000Z",
    "earthquakes_LastHour": 7,
    "count24h": 200,
    "largestMagnitude24h": 5.5,
    "avgMagnitude24h": 1.74,
    "count7d": 1889,
    "count30d": 9917,
    "avgDailyCount30d": 335.3,
    "m45Count30d": 735,
    "largestMagnitude7d": 7,
    "largestMagnitude30d": 7.7,
    "largestPlace30d": "12 km WSW of Pitaloza Arriba, Panama",
    "largestTime30d": 1791568566036,
    "daysStored": 30,
    "period": "day",
    "count": 2,
    "earthquakes": [
      {
        "mag": 1.63,
        "place": "2 km NW of Sylmar, CA",
        "time": 1792978838050,
        "felt": null,
        "cdi": null,
        "mmi": null,
        "alert": null,
        "status": "reviewed",
        "tsunami": 0,
        "sig": 41,
        "net": "ci",
        "types": ",focal-mechanism,nearby-cities,origin,phase-data,scitech-link,",
        "nst": 56,
        "dmin": 0.04284,
        "rms": 0.27,
        "gap": 34,
        "magType": "ml",
        "type": "earthquake",
        "title": "M 1.6 - 2 km NW of Sylmar, CA",
        "coordinates": [
          -118.464666666667,
          34.3231666666667
        ],
        "depthKm": 4.21,
        "id": "ci41352567",
        "url": "https://earthquake.usgs.gov/earthquakes/eventpage/ci41352567",
        "distanceKm": 37
      },
      {
        "mag": 1.28,
        "place": "1 km WNW of Anaheim, CA",
        "time": 1792989969550,
        "felt": null,
        "cdi": null,
        "mmi": null,
        "alert": null,
        "status": "automatic",
        "tsunami": 0,
        "sig": 25,
        "net": "ci",
        "types": ",nearby-cities,origin,phase-data,",
        "nst": 59,
        "dmin": 0.03761,
        "rms": 0.24,
        "gap": 55,
        "magType": "ml",
        "type": "earthquake",
        "title": "M 1.3 - 1 km WNW of Anaheim, CA",
        "coordinates": [
          -117.9,
          33.839
        ],
        "depthKm": 8.14,
        "id": "ci41352687",
        "url": "https://earthquake.usgs.gov/earthquakes/eventpage/ci41352687",
        "distanceKm": 39
      }
    ],
    "daily": [
      {
        "date": "2026-09-28",
        "count": 395,
        "maxMagnitude": 5.4,
        "m45Count": 34
      },
      {
        "date": "2026-09-29",
        "count": 366,
        "maxMagnitude": 5.6,
        "m45Count": 24
      },
      {
        "date": "2026-09-30",
        "count": 372,
        "maxMagnitude": 5.6,
        "m45Count": 24
      },
      {
        "date": "2026-10-01",
        "count": 415,
        "maxMagnitude": 5.3,
        "m45Count": 22
      },
      {
        "date": "2026-10-02",
        "count": 357,
        "maxMagnitude": 5.7,
        "m45Count": 35
      },
      {
        "date": "2026-10-03",
        "count": 332,
        "maxMagnitude": 5.7,
        "m45Count": 18
      },
      {
        "date": "2026-10-04",
        "count": 332,
        "maxMagnitude": 5.1,
        "m45Count": 18
      },
      {
        "date": "2026-10-05",
        "count": 323,
        "maxMagnitude": 5.3,
        "m45Count": 17
      },
      {
        "date": "2026-10-06",
        "count": 367,
        "maxMagnitude": 5.8,
        "m45Count": 18
      },
      {
        "date": "2026-10-07",
        "count": 428,
        "maxMagnitude": 5.2,
        "m45Count": 23
      },
      {
        "date": "2026-10-08",
        "count": 312,
        "maxMagnitude": 6.3,
        "m45Count": 20
      },
      {
        "date": "2026-10-09",
        "count": 390,
        "maxMagnitude": 7.7,
        "m45Count": 63
      },
      {
        "date": "2026-10-10",
        "count": 334,
        "maxMagnitude": 6,
        "m45Count": 38
      },
      {
        "date": "2026-10-11",
        "count": 325,
        "maxMagnitude": 6.2,
        "m45Count": 28
      },
      {
        "date": "2026-10-12",
        "count": 381,
        "maxMagnitude": 6.1,
        "m45Count": 30
      },
      {
        "date": "2026-10-13",
        "count": 331,
        "maxMagnitude": 6.8,
        "m45Count": 23
      },
      {
        "date": "2026-10-14",
        "count": 260,
        "maxMagnitude": 5.9,
        "m45Count": 12
      },
      {
        "date": "2026-10-15",
        "count": 303,
        "maxMagnitude": 5.6,
        "m45Count": 14
      },
      {
        "date": "2026-10-16",
        "count": 340,
        "maxMagnitude": 6.9,
        "m45Count": 18
      },
      {
        "date": "2026-10-17",
        "count": 300,
        "maxMagnitude": 5.7,
        "m45Count": 12
      },
      {
        "date": "2026-10-18",
        "count": 421,
        "maxMagnitude": 5.2,
        "m45Count": 12
      },
      {
        "date": "2026-10-19",
        "count": 354,
        "maxMagnitude": 6,
        "m45Count": 29
      },
      {
        "date": "2026-10-20",
        "count": 290,
        "maxMagnitude": 6.3,
        "m45Count": 24
      },
      {
        "date": "2026-10-21",
        "count": 315,
        "maxMagnitude": 5.3,
        "m45Count": 19
      },
      {
        "date": "2026-10-22",
        "count": 372,
        "maxMagnitude": 7,
        "m45Count": 25
      },
      {
        "date": "2026-10-23",
        "count": 302,
        "maxMagnitude": 5.7,
        "m45Count": 24
      },
      {
        "date": "2026-10-24",
        "count": 255,
        "maxMagnitude": 6.9,
        "m45Count": 49
      },
      {
        "date": "2026-10-25",
        "count": 234,
        "maxMagnitude": 6.5,
        "m45Count": 26
      },
      {
        "date": "2026-10-26",
        "count": 217,
        "maxMagnitude": 5.5,
        "m45Count": 19
      },
      {
        "date": "2026-10-27",
        "count": 194,
        "maxMagnitude": 5.8,
        "m45Count": 17
      }
    ]
  }
}
```

## Use cases

- **Emergency Alerting Systems** — When a tremor occurs, disaster response platforms trigger push alerts based on magnitude, epicenter coordinates, and tsunami warning indicators.
- **Travel Safety Trackers** — Trip planning apps display nearby seismic activity and citizen felt reports along travel routes to warn tourists of active tremors.
- **Infrastructure Risk Monitoring** — To protect bridges and pipelines, civil engineering teams log seismic intensity metrics and epicenter proximity to schedule structural safety inspections.
- **Geoscience Educational Maps** — Interactive classroom dashboards map live earthquake epicenters with magnitude summaries and felt reports straight from USGS records.

## SDKs

- **npm** — `npm install @apiverve/earthquake` (https://www.npmjs.com/package/@apiverve/earthquake)
- **NuGet** — `dotnet add package APIVerve.API.WorldwideEarthquakes` (https://www.nuget.org/packages/APIVerve.API.WorldwideEarthquakes)
- **Source** — https://github.com/apiverve/earthquake-api

## More

- Full reference: https://docs.apiverve.com/ref/earthquake
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
