Earthquakes API Reference
One route under /v1/earthquakes. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request. Coverage and licence are on the Earthquakes page.
GET
/v1/earthquakesList usgs magnitude 4.5+ feed with filters and paging.
| Parameter | In | Type | Rules |
|---|---|---|---|
| period | query | string | one of hour, day, week, month |
| page | query | integer | min 1 |
| limit | query | integer | 1 to 200 |
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"
}
]
}200Paginated earthquakes with USGS attribution400Invalid parameters502USGS temporarily unavailable