Earthquakes API
Query earthquake observations by location, magnitude and time. Served from USGS Earthquake Hazards Program.
GET /v1/earthquakesPublic domain / US government workGlobal28 Nov 2026Request 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.
curl 'https://api.apifor.dev/v1/earthquakes' \
-G -d period=day -d limit=1 \
-H 'x-api-key: YOUR_API_KEY'{
"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.
| Field | Type | Example |
|---|---|---|
| id | string | "us6000ue2z" |
| magnitude | number | 4.5 |
| place | string | "154 km WSW of Banda Aceh, Indonesia" |
| time | string (date-time) | "2026-11-28T08:30:38.530Z" |
| longitude | number | 94.1555 |
| latitude | number | 4.7979 |
| depth_km | number | 33.891 |
| url | string (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.
| Parameter | Type | Rules |
|---|---|---|
| period | string | one of hour, day, week, month |
| page | integer | min 1 |
| limit | integer | 1 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.