Docs/APIs/Worldwide Earthquakes

Worldwide Earthquakes

Get earthquake data

OperationalCredits 2 per callp50 226msWeatherStar

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.

Live Test Worldwide Earthquakes API →

Endpoint

One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.

GEThttps://api.apiverve.com/v1/earthquake
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_here"

Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.

Authentication

Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.

401 is the only auth verdict

A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.

Parameters

Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.

ParameterTypeDescription
periodOptionalPremiumstringTime window: hour (the past hour) or day (the past 24 hours)
hourday
default hour
minMagnitudeOptionalnumberOnly return earthquakes of at least this magnitude
range -2–10
latOptionalPremiumnumberLatitude to search around. With lon, returns only earthquakes within radius km, nearest first, each with distanceKm
range -90–90
lonOptionalPremiumnumberLongitude to search around (use with lat)
range -180–180
radiusOptionalPremiumnumberSearch radius in kilometers around lat/lon
default 500 · range 1–20000
dailyOptionalPremiumbooleanInclude one row per UTC day for the last 30 days: event count, largest magnitude and M4.5+ count

Response

Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.

Sample response
{
  "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
      }
    ]
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
earthquakes_LastUpdatedstring"2026-10-26T20:35:55.000Z"Timestamp of when the underlying earthquake data was last refreshed from USGS
earthquakes_LastHournumber7Number of earthquakes recorded in the past hour
count24hnumber200Total earthquake count in the past 24 hours
largestMagnitude24hnumber5.5Largest earthquake magnitude recorded in the past 24 hours
avgMagnitude24hPremiumnumber1.74Average earthquake magnitude across the past 24 hours
count7dPremiumnumber1889Earthquakes recorded worldwide over the last 7 UTC days, today so far included; null until days are stored
count30dPremiumnumber9917Earthquakes recorded worldwide over the last 30 UTC days, today so far included; null until days are stored
avgDailyCount30dPremiumnumber335.3Average earthquakes per complete UTC day over the last 30 days
m45Count30dPremiumnumber735Earthquakes of magnitude 4.5 or more over the last 30 days
largestMagnitude7dPremiumnumber7Largest magnitude recorded over the last 7 days
largestMagnitude30dPremiumnumber7.7Largest magnitude recorded over the last 30 days
largestPlace30dPremiumstring"12 km WSW of Pitaloza Arriba, Panama"Location of the last 30 days' largest earthquake
largestTime30dPremiumnumber1791568566036Unix timestamp, in milliseconds, of the last 30 days' largest earthquake
daysStorednumber30How many of the last 30 UTC days have stored stats
periodstring"day"The time window the earthquakes list covers: hour or day
countnumber2Number of earthquakes returned after the period, magnitude and location filters
earthquakesarray[2]Earthquakes recorded in the requested period, after any filters
magnumber1.63Magnitude of the earthquake
placestring"2 km NW of Sylmar, CA"Human-readable description of the epicenter's location
timenumber1792978838050Unix timestamp, in milliseconds, of when the earthquake occurred
feltobjectnullNumber of 'felt' reports submitted by the public for this event; absent when none were submitted
cdiobjectnullMaximum reported intensity of the event from citizen 'Did You Feel It?' reports
mmiobjectnullMaximum estimated instrumental intensity of the event
alertobjectnullPAGER alert level for the event (green, yellow, orange, or red); null when no alert has been assigned
statusstring"reviewed"Review status of the event: 'automatic' if produced by an automatic system, 'reviewed' if a human seismologist verified it
tsunaminumber0Whether a tsunami warning was associated with this event (1) or not (0)
signumber41A number describing how significant the event is, based on magnitude, felt reports, and other factors; larger numbers indicate a more significant event
netstring"ci"ID of the seismic network that originally authored the event
typesstring",focal-mechanism,nearby-cities,origin,phase-data,scitech-link,"Comma-separated list of product types associated with this event
nstnumber56Number of seismic stations used to determine the earthquake's location
dminnumber0.04284Horizontal distance, in degrees, from the epicenter to the nearest reporting station
rmsnumber0.27Root-mean-square travel time residual of the seismic stations used to locate the event, in seconds
gapnumber34Largest azimuthal gap, in degrees, between adjacent reporting stations
magTypestring"ml"Method or algorithm used to calculate the reported magnitude
typestring"earthquake"Type of seismic event, e.g. earthquake or quarry blast
titlestring"M 1.6 - 2 km NW of Sylmar, CA"Formatted summary combining the magnitude and place, e.g. 'M 2.5 - 3 km ESE of Camarillo, CA'
coordinatesarray[-118.464666666667, ...]Epicenter location as [longitude, latitude]
depthKmnumber4.21Depth of the hypocenter below the surface, in kilometers
idstring"ci41352567"USGS event ID, stable across updates to the event
urlstring"https://earthquake.usgs.gov/earthquakes/eventpage/ci41352567"USGS event page with maps, felt reports and ShakeMap
distanceKmPremiumnumber37Distance from lat/lon to the epicenter in kilometers; present only when lat and lon are given
dailyPremiumarray[30]One row per UTC day for the last 30 days, oldest first; today is the day so far (when daily=true)
datePremiumstring"2026-09-28"UTC date (YYYY-MM-DD)
countPremiumnumber395Earthquakes recorded that day
maxMagnitudePremiumnumber5.4Largest magnitude that day; null when no event had one
m45CountPremiumnumber34Earthquakes of magnitude 4.5 or more that day

Errors

Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.

StatusMeaningWhat to do
400Input was rejectedRead error; it names the parameter.
401Key missing or invalidCheck the header name and the key value.
403Key valid, but not permittedA key restriction or IP allow-list; see key scoping.
429Rate limited, or out of creditsRead error to tell them apart; see rate limits.

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.

Other ways to use Worldwide Earthquakes

Set up Worldwide Earthquakes on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.

Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContext →Reference →

More in Weather:

Was this page helpful?