1. Datasets
  2. Earthquakes

Earthquakes API

Query earthquake observations by location, magnitude and time. Served from USGS Earthquake Hazards Program.

GET /v1/earthquakesPublic domain / US government workGlobal28 Nov 2026

Request and response

The response below is the example from our OpenAPI document, so it shows the exact shape you get, though the record itself may come from another country.

GET/v1/earthquakes
curl 'https://api.apifor.dev/v1/earthquakes' \
  -G -d period=day -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · application/json
{
  "success": true,
  "data": [
    {
      "id": "us6000ue2z",
      "magnitude": 4.5,
      "place": "154 km WSW of Banda Aceh, Indonesia",
      "time": "2026-11-28T08:30:38.530Z",
      "longitude": 94.1555,
      "latitude": 4.7979,
      "depth_km": 33.891,
      "url": "https://earthquake.usgs.gov/earthquakes/eventpage/us6000ue2z"
    }
  ]
}

Fields

Each record in data has these fields. Types are read from the example values; a nullable field can hold null for some records.

FieldTypeExample
idstring"us6000ue2z"
magnitudenumber4.5
placestring"154 km WSW of Banda Aceh, Indonesia"
timestring (date-time)"2026-11-28T08:30:38.530Z"
longitudenumber94.1555
latitudenumber4.7979
depth_kmnumber33.891
urlstring (url)"https://earthquake.usgs.gov/earthquakes/eventp…

Filters and paging

Query parameters accepted by GET /v1/earthquakes. Full detail, including the single-record route, is in the endpoint reference.

ParameterTypeRules
periodstringone of hour, day, week, month
pageintegermin 1
limitinteger1 to 200

This dataset is not split by country in our coverage snapshot, so it has no country pages. Query it directly with the filters above.