Skip to content

USGS Earthquakes API

7 endpointsGovernment & Open DataGlobalsocial:read6 real examples

Returns USGS earthquake feeds, searches, nearby and single events, counts, and named places near a point.

View as Markdown
GET/usgs/summaryEarthquakes of a USGS summary feed, newest first.
GET/usgs/searchEarthquakes in a time window and above a magnitude, newest first.
GET/usgs/nearbyEarthquakes within a radius of a point, newest first.
GET/usgs/quakeOne earthquake by its USGS event id, such as us6000jllz.
GET/usgs/impactHow strongly one earthquake was felt: felt reports, community and shaking intensity, PAGER alert and tsunami flag, by USGS event id.
GET/usgs/countHow many earthquakes match a magnitude and date window (30 days by default).
GET/usgs/placesNamed places (GeoNames cities, towns and villages) near a point, nearest first.

summary

GET/v1/usgs/summary

Earthquakes of a USGS summary feed, newest first.

scope social:read1 unitcached 1 minpaginated

Parameters

feed
string
Feed: <magnitude>_<period>, magnitude significant, 4.5, 2.5, 1.0 or all; period hour, day, week or month.
significant_hoursignificant_daysignificant_weeksignificant_month4.5_hour4.5_day4.5_week4.5_month2.5_hour2.5_day2.5_week2.5_month1.0_hour1.0_day1.0_week1.0_monthall_hourall_dayall_weekall_month
default all_day
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

12 fields
alertstring
depthKmnumber (double)
idstring
latitudenumber (double)
longitudenumber (double)
magnitudenumber (double)
magnitudeTypestring
originAtstring
placestring
significanceinteger (int64)
tsunamiboolean
urlstring
curl "https://api.hoshime.com/v1/usgs/summary" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "alert": "",
      "depthKm": 7.19,
      "id": "ci41359359",
      "latitude": 33.4145,
      "longitude": -116.6365,
      "magnitude": 0.43,
      "magnitudeType": "ml",
      "originAt": "2026-11-06T17:56:46Z",
      "place": "15 km N of Warner Springs, CA",
      "significance": 3,
      "tsunami": false,
      "url": "https://earthquake.usgs.gov/earthquakes/eventpage/ci41359359"
    },
    {
      "alert": "",
      "depthKm": 9.5,
      "id": "ci41359351",
      "latitude": 32.7253333333333,
      "longitude": -115.988,
      "magnitude": 1.52,
      "magnitudeType": "ml",
      "originAt": "2026-11-06T17:49:57Z",
      "place": "1 km SSE of Ocotillo, CA",
      "significance": 36,
      "tsunami": false,
      "url": "https://earthquake.usgs.gov/earthquakes/eventpage/ci41359351"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "summary",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "usgs",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

nearby

GET/v1/usgs/nearby

Earthquakes within a radius of a point, newest first.

scope social:read1 unitcached 5 minpaginated

Parameters

lat
string
required
Latitude of the centre, -90 to 90.
e.g. 37.2
lon
string
required
Longitude of the centre, -180 to 180.
e.g. 37.0
radiusKm
string
Radius in kilometres, from 1 to 1000.
default 100e.g. 100
minMagnitude
string
Smallest magnitude, such as 2.5.
e.g. 7
start
string
Start date, YYYY-MM-DD (UTC). Defaults to 30 days ago.
e.g. 2023-02-01
end
string
End date, YYYY-MM-DD (UTC). Defaults to now.
e.g. 2023-02-28
limit
integer
Most quakes to return, from 1 to 200.
default 20
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

12 fields
alertstring
depthKmnumber (double)
idstring
latitudenumber (double)
longitudenumber (double)
magnitudenumber (double)
magnitudeTypestring
originAtstring
placestring
significanceinteger (int64)
tsunamiboolean
urlstring
curl "https://api.hoshime.com/v1/usgs/nearby?lat=37.2&lon=37.0&radiusKm=100&minMagnitude=7&start=2023-02-01&end=2023-02-28" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "alert": "red",
      "depthKm": 7.432,
      "id": "us6000jlqa",
      "latitude": 38.0106,
      "longitude": 37.1962,
      "magnitude": 7.5,
      "magnitudeType": "mww",
      "originAt": "2023-02-06T10:24:48Z",
      "place": "Elbistan earthquake, Kahramanmaras earthquake sequence",
      "significance": 2616,
      "tsunami": false,
      "url": "https://earthquake.usgs.gov/earthquakes/eventpage/us6000jlqa"
    },
    {
      "alert": "red",
      "depthKm": 10,
      "id": "us6000jllz",
      "latitude": 37.2256,
      "longitude": 37.0143,
      "magnitude": 7.8,
      "magnitudeType": "mww",
      "originAt": "2023-02-06T01:17:34Z",
      "place": "Pazarcik earthquake, Kahramanmaras earthquake sequence",
      "significance": 2910,
      "tsunami": false,
      "url": "https://earthquake.usgs.gov/earthquakes/eventpage/us6000jllz"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "nearby",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "usgs",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

quake

GET/v1/usgs/quake

One earthquake by its USGS event id, such as us6000jllz.

scope social:read1 unitcached 1 h

Parameters

id
string
required
USGS event id, such as us6000jllz.
e.g. us6000jllz
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

12 fields
alertstring
depthKmnumber (double)
idstring
latitudenumber (double)
longitudenumber (double)
magnitudenumber (double)
magnitudeTypestring
originAtstring
placestring
significanceinteger (int64)
tsunamiboolean
urlstring
curl "https://api.hoshime.com/v1/usgs/quake?id=us6000jllz" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "alert": "red",
    "depthKm": 10,
    "id": "us6000jllz",
    "latitude": 37.2256,
    "longitude": 37.0143,
    "magnitude": 7.8,
    "magnitudeType": "mww",
    "originAt": "2023-02-06T01:17:34Z",
    "place": "Pazarcik earthquake, Kahramanmaras earthquake sequence",
    "significance": 2910,
    "tsunami": false,
    "url": "https://earthquake.usgs.gov/earthquakes/eventpage/us6000jllz"
  },
  "meta": {
    "cached": false,
    "endpoint": "quake",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "usgs",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

impact

GET/v1/usgs/impact

How strongly one earthquake was felt: felt reports, community and shaking intensity, PAGER alert and tsunami flag, by USGS event id.

scope social:read1 unitcached 1 h

Parameters

id
string
required
USGS event id, such as us6000jllz.
e.g. us6000jllz
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

16 fields
alertstring
communityIntensitynumber (double)
depthKmnumber (double)
feltinteger (int64)
idstring
latitudenumber (double)
longitudenumber (double)
magnitudenumber (double)
magnitudeTypestring
originAtstring
placestring
shakingIntensitynumber (double)
significanceinteger (int64)
statusstring
tsunamiboolean
urlstring
curl "https://api.hoshime.com/v1/usgs/impact?id=us6000jllz" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "alert": "…",
    "communityIntensity": 0,
    "depthKm": 0,
    "felt": 0,
    "id": "abc123",
    "latitude": 0,
    "longitude": 0,
    "magnitude": 0,
    "magnitudeType": "…",
    "originAt": "2026-11-06T09:41:00Z",
    "place": "…",
    "shakingIntensity": 0,
    "significance": 0,
    "status": "…",
    "tsunami": false,
    "url": "https://…"
  },
  "meta": {
    "cached": false,
    "endpoint": "impact",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "usgs",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

count

GET/v1/usgs/count

How many earthquakes match a magnitude and date window (30 days by default).

scope social:read1 unitcached 30 min

Parameters

minMagnitude
string
Smallest magnitude, such as 4.5.
e.g. 4.5
start
string
Start date, YYYY-MM-DD (UTC). Defaults to 30 days ago.
e.g. 2024-01-01
end
string
End date, YYYY-MM-DD (UTC). Defaults to now.
e.g. 2024-01-08
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

4 fields
countinteger (int64)
endDatestring
minMagnitudestring
startDatestring
curl "https://api.hoshime.com/v1/usgs/count?minMagnitude=4.5&start=2024-01-01&end=2024-01-08" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "count": 178,
    "endDate": "2024-01-08",
    "minMagnitude": "4.5",
    "startDate": "2024-01-01"
  },
  "meta": {
    "cached": false,
    "endpoint": "count",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "usgs",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

places

GET/v1/usgs/places

Named places (GeoNames cities, towns and villages) near a point, nearest first.

scope social:read1 unitcached 24 hpaginated

Parameters

lat
string
required
Latitude, -90 to 90.
e.g. -6.2
lon
string
required
Longitude, -180 to 180.
e.g. 106.8
radiusKm
string
Radius in kilometres, from 1 to 1000.
default 100
limit
integer
Most places to return, from 1 to 50.
default 10
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

9 fields
admin1string
countrystring
distanceKmnumber (double)
featureCodestring
idstring
latitudenumber (double)
longitudenumber (double)
namestring
populationinteger (int64)
curl "https://api.hoshime.com/v1/usgs/places?lat=-6.2&lon=106.8" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "admin1": "Jakarta",
      "country": "Indonesia",
      "distanceKm": 5.25,
      "featureCode": "PPLC",
      "id": "1642911",
      "latitude": -6.21462,
      "longitude": 106.84513,
      "name": "Jakarta",
      "population": 8540121
    },
    {
      "admin1": "West Java",
      "country": "Indonesia",
      "distanceKm": 12.28,
      "featureCode": "PPL",
      "id": "1646194",
      "latitude": -6.2375,
      "longitude": 106.69556,
      "name": "Ciputat",
      "population": 207858
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "places",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "usgs",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open