公
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/summary | Earthquakes of a USGS summary feed, newest first. |
| GET | /usgs/search | Earthquakes in a time window and above a magnitude, newest first. |
| GET | /usgs/nearby | Earthquakes within a radius of a point, newest first. |
| GET | /usgs/quake | One earthquake by its USGS event id, such as us6000jllz. |
| GET | /usgs/impact | How strongly one earthquake was felt: felt reports, community and shaking intensity, PAGER alert and tsunami flag, by USGS event id. |
| GET | /usgs/count | How many earthquakes match a magnitude and date window (30 days by default). |
| GET | /usgs/places | Named places (GeoNames cities, towns and villages) near a point, nearest first. |
summary
GET
/v1/usgs/summaryEarthquakes of a USGS summary feed, newest first.
scope social:read1 unitcached 1 minpaginated
Parameters
feedstring | 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_monthdefault all_day |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
alert | string |
depthKm | number (double) |
id | string |
latitude | number (double) |
longitude | number (double) |
magnitude | number (double) |
magnitudeType | string |
originAt | string |
place | string |
significance | integer (int64) |
tsunami | boolean |
url | string |
curl "https://api.hoshime.com/v1/usgs/summary" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgs/summary", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgs/summary", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }
search
GET
/v1/usgs/searchEarthquakes in a time window and above a magnitude, newest first.
scope social:read1 unitcached 5 minpaginated
Parameters
minMagnitudestring | Smallest magnitude, such as 4.5. e.g. 7 |
startstring | Start date, YYYY-MM-DD (UTC). Defaults to 30 days ago. e.g. 2023-02-01 |
endstring | End date, YYYY-MM-DD (UTC). Defaults to now. e.g. 2023-02-28 |
limitinteger | Most quakes to return, from 1 to 200. default 20 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
alert | string |
depthKm | number (double) |
id | string |
latitude | number (double) |
longitude | number (double) |
magnitude | number (double) |
magnitudeType | string |
originAt | string |
place | string |
significance | integer (int64) |
tsunami | boolean |
url | string |
curl "https://api.hoshime.com/v1/usgs/search?minMagnitude=7&start=2023-02-01&end=2023-02-28" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgs/search?minMagnitude=7&start=2023-02-01&end=2023-02-28", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgs/search?minMagnitude=7&start=2023-02-01&end=2023-02-28", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "usgs", "requestId": "req_2Xb9kQ…", "units": 1 } }
nearby
GET
/v1/usgs/nearbyEarthquakes within a radius of a point, newest first.
scope social:read1 unitcached 5 minpaginated
Parameters
latstring required | Latitude of the centre, -90 to 90. e.g. 37.2 |
lonstring required | Longitude of the centre, -180 to 180. e.g. 37.0 |
radiusKmstring | Radius in kilometres, from 1 to 1000. default 100e.g. 100 |
minMagnitudestring | Smallest magnitude, such as 2.5. e.g. 7 |
startstring | Start date, YYYY-MM-DD (UTC). Defaults to 30 days ago. e.g. 2023-02-01 |
endstring | End date, YYYY-MM-DD (UTC). Defaults to now. e.g. 2023-02-28 |
limitinteger | Most quakes to return, from 1 to 200. default 20 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
alert | string |
depthKm | number (double) |
id | string |
latitude | number (double) |
longitude | number (double) |
magnitude | number (double) |
magnitudeType | string |
originAt | string |
place | string |
significance | integer (int64) |
tsunami | boolean |
url | string |
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"
const res = await fetch("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", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "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", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/quakeOne earthquake by its USGS event id, such as us6000jllz.
scope social:read1 unitcached 1 h
Parameters
idstring required | USGS event id, such as us6000jllz. e.g. us6000jllz |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
alert | string |
depthKm | number (double) |
id | string |
latitude | number (double) |
longitude | number (double) |
magnitude | number (double) |
magnitudeType | string |
originAt | string |
place | string |
significance | integer (int64) |
tsunami | boolean |
url | string |
curl "https://api.hoshime.com/v1/usgs/quake?id=us6000jllz" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgs/quake?id=us6000jllz", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgs/quake?id=us6000jllz", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/impactHow 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
idstring required | USGS event id, such as us6000jllz. e.g. us6000jllz |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
alert | string |
communityIntensity | number (double) |
depthKm | number (double) |
felt | integer (int64) |
id | string |
latitude | number (double) |
longitude | number (double) |
magnitude | number (double) |
magnitudeType | string |
originAt | string |
place | string |
shakingIntensity | number (double) |
significance | integer (int64) |
status | string |
tsunami | boolean |
url | string |
curl "https://api.hoshime.com/v1/usgs/impact?id=us6000jllz" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgs/impact?id=us6000jllz", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgs/impact?id=us6000jllz", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/countHow many earthquakes match a magnitude and date window (30 days by default).
scope social:read1 unitcached 30 min
Parameters
minMagnitudestring | Smallest magnitude, such as 4.5. e.g. 4.5 |
startstring | Start date, YYYY-MM-DD (UTC). Defaults to 30 days ago. e.g. 2024-01-01 |
endstring | End date, YYYY-MM-DD (UTC). Defaults to now. e.g. 2024-01-08 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
count | integer (int64) |
endDate | string |
minMagnitude | string |
startDate | string |
curl "https://api.hoshime.com/v1/usgs/count?minMagnitude=4.5&start=2024-01-01&end=2024-01-08" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgs/count?minMagnitude=4.5&start=2024-01-01&end=2024-01-08", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgs/count?minMagnitude=4.5&start=2024-01-01&end=2024-01-08", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/placesNamed places (GeoNames cities, towns and villages) near a point, nearest first.
scope social:read1 unitcached 24 hpaginated
Parameters
latstring required | Latitude, -90 to 90. e.g. -6.2 |
lonstring required | Longitude, -180 to 180. e.g. 106.8 |
radiusKmstring | Radius in kilometres, from 1 to 1000. default 100 |
limitinteger | Most places to return, from 1 to 50. default 10 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
admin1 | string |
country | string |
distanceKm | number (double) |
featureCode | string |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
population | integer (int64) |
curl "https://api.hoshime.com/v1/usgs/places?lat=-6.2&lon=106.8" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/usgs/places?lat=-6.2&lon=106.8", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/usgs/places?lat=-6.2&lon=106.8", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }