Docs/APIs/Worldwide Earthquakes

Worldwide Earthquakes

Get earthquake data

OperationalCredits 2 per callp50 295msWeatherStar

Overview

Earthquake works by analyzing the earthquake data provided and returning the earthquake data for the past hour. It uses various sources to determine the earthquake data and returns the data.

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" \
  -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.

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-02-18T12:00:00.000Z",
    "earthquakes_LastHour": 9,
    "count24h": 187,
    "largestMagnitude24h": 5.2,
    "avgMagnitude24h": 1.84,
    "earthquakes": [
      {
        "mag": 3.4,
        "place": "153 km SSW of Channel Islands Beach, California",
        "time": 1765921110756,
        "felt": 1,
        "cdi": 2.2,
        "mmi": 2.538,
        "status": "reviewed",
        "tsunami": 0,
        "sig": 178,
        "net": "us",
        "types": ",dyfi,nearby-cities,origin,phase-data,scitech-link,shakemap,",
        "nst": 36,
        "dmin": 0.479,
        "rms": 0.65,
        "gap": 247,
        "magType": "ml",
        "type": "earthquake",
        "title": "M 3.4 - 153 km SSW of Channel Islands Beach, California",
        "coordinates": [
          -119.931,
          32.9103
        ]
      },
      {
        "mag": 2.25,
        "place": "6 km NW of The Geysers, CA",
        "time": 1765921522850,
        "status": "automatic",
        "tsunami": 0,
        "sig": 78,
        "net": "nc",
        "types": ",focal-mechanism,nearby-cities,origin,phase-data,",
        "nst": 54,
        "dmin": 0.01126,
        "rms": 0.05,
        "gap": 23,
        "magType": "md",
        "type": "earthquake",
        "title": "M 2.3 - 6 km NW of The Geysers, CA",
        "coordinates": [
          -122.792831,
          38.819332
        ]
      }
    ]
  }
}

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-02-18T12:00:00.000Z"Timestamp of when the underlying earthquake data was last refreshed from USGS
earthquakes_LastHournumber9Number of earthquakes recorded in the past hour
count24hnumber187Total earthquake count in the past 24 hours
largestMagnitude24hnumber5.2Largest earthquake magnitude recorded in the past 24 hours
avgMagnitude24hPremiumnumber1.84Average earthquake magnitude across the past 24 hours
earthquakesarray[2]Earthquakes recorded in the past hour
magnumber3.4Magnitude of the earthquake
placestring"153 km SSW of Channel Islands Beach, California"Human-readable description of the epicenter's location
timenumber1765921110756Unix timestamp, in milliseconds, of when the earthquake occurred
feltnumber1Number of 'felt' reports submitted by the public for this event; absent when none were submitted
cdinumber2.2Maximum reported intensity of the event from citizen 'Did You Feel It?' reports
mminumber2.538Maximum estimated instrumental intensity of the event
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)
signumber178A number describing how significant the event is, based on magnitude, felt reports, and other factors; larger numbers indicate a more significant event
netstring"us"ID of the seismic network that originally authored the event
typesstring",dyfi,nearby-cities,origin,phase-data,scitech-link,shakemap,"Comma-separated list of product types associated with this event
nstnumber36Number of seismic stations used to determine the earthquake's location
dminnumber0.479Horizontal distance, in degrees, from the epicenter to the nearest reporting station
rmsnumber0.65Root-mean-square travel time residual of the seismic stations used to locate the event, in seconds
gapnumber247Largest 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 3.4 - 153 km SSW of Channel Islands Beach, California"Formatted summary combining the magnitude and place, e.g. 'M 2.5 - 3 km ESE of Camarillo, CA'
coordinatesarray[-119.931, ...]Epicenter location as [longitude, latitude]

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.

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.VerveKitReference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheetsReference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContextReference →

More in Weather:

Was this page helpful?