Earthquakes All docs

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/earthquakes

List usgs magnitude 4.5+ feed with filters and paging.

ParameterInTypeRules
periodquerystringone of hour, day, week, month
pagequeryintegermin 1
limitqueryinteger1 to 200
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 · 200
{
  "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 attribution
  • 400Invalid parameters
  • 502USGS temporarily unavailable

Error handling · Rate limits · Source licences