Skip to main content

Usgs Earthquakes

@hmcrum/usgs-earthquakesv2026.09.17.1· 19d agoMODELS
01README

Search the public USGS earthquake catalog (FDSN Event Web Service) by time range, magnitude range, and/or location — a bounding box or a center point plus radius. One method, search. Read-only, host-locked to earthquake.usgs.gov, no auth or secrets required. Defaults to the last 24 hours when no time range is given, so a bare call never accidentally pulls the entire multi-decade catalog. A search that matches nothing (USGS returns HTTP 204) degrades to a count: 0 result instead of throwing.

Quick Start

  --input latitude=35.7 --input longitude=139.7 --input maxRadiusKm=300
02Models1
@hmcrum/usgs-earthquakesv2026.09.17.1usgs_earthquakes.ts

Global Arguments

ArgumentTypeDescription
userAgentstringUser-Agent sent to earthquake.usgs.gov — identify yourself honestly
fn search(startTime?: string, endTime?: string, minMagnitude?: number, maxMagnitude?: number, minLatitude?: number, maxLatitude?: number, minLongitude?: number, maxLongitude?: number, latitude?: number, longitude?: number, maxRadiusKm?: number, limit: number, orderBy: enum)
Search the public USGS earthquake catalog by time range, magnitude range, and/or location (bounding box or radius). Defaults to the last 24 hours when no time range is given. An empty match (HTTP 204) is a normal zero-result search, not an error.
ArgumentTypeDescription
startTime?stringISO 8601 date/time, e.g. 2026-09-01 — defaults to 24h before endTime/now
endTime?stringISO 8601 date/time, e.g. 2026-09-17 — defaults to now
minMagnitude?numberMinimum magnitude, e.g. 4.5
maxMagnitude?numberMaximum magnitude
minLatitude?number
maxLatitude?number
minLongitude?number
maxLongitude?number
latitude?numberCenter latitude for a circular search — pair with longitude and maxRadiusKm
longitude?numberCenter longitude for a circular search — pair with latitude and maxRadiusKm
maxRadiusKm?numberRadius in km around latitude/longitude — requires both to be set
limitnumberMax events to return (USGS caps at 20000; this model caps at 2000)
orderByenum

Resources

search(15m)— Earthquake search results from the USGS FDSN event catalog, filtered by time, magnitude, and location
03Stats
A
100 / 100
Downloads
14
Archive size
8.2 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
04Platforms
05Labels