Environment · Public data

Earthquakes

Every magnitude 4.5+ event since 2000, where and how deep.

USGS Earthquake Hazards Program (FDSN event service) · Public domain · commons_pubdata.environment.earthquakes

Read Markdown
38,056 earthquakes of magnitude 4.5 or more in the last five years, sized by magnitude.
38,056 earthquakes of magnitude 4.5 or more in the last five years, sized by magnitude.

Query it with DuckDB.

Bash
lhbox duckdb --catalog commons/pubdata
SQL · The strongest earthquake per year
SELECT year(event_time) AS year, max(magnitude) AS max_magnitude
FROM commons_pubdata.environment.earthquakes GROUP BY 1 ORDER BY 1;

Read it where you work.

Public, read-only data. With an account, lhbox duckdb attaches the catalog as commons_pubdata; an agent with the LakehouseBox connector opens it with open_public_catalog("commons/pubdata"). Without one, DuckDB reads the public files directly.

Example queries

  • The strongest earthquake per year
    SELECT year(event_time) AS year, max(magnitude) AS max_magnitude
    FROM commons_pubdata.environment.earthquakes GROUP BY 1 ORDER BY 1;
  • Events within ~300 km of your sites in the last year
    SELECT s.site_id, count(*) AS quakes, max(e.magnitude) AS strongest
    FROM my.sites AS s JOIN commons_pubdata.environment.earthquakes AS e
      ON abs(e.latitude - s.lat) < 2.7 AND abs(e.longitude - s.lon) < 2.7 / cos(radians(s.lat))
    WHERE e.event_time >= now() - INTERVAL 1 YEAR
    GROUP BY 1;

Know your columns.

ColumnTypeMeaning
event_idstringthe USGS event id, e.g. us7000tdrv
event_timetimestamptzorigin time (UTC)
latitudedoubleepicentre latitude (WGS84)
longitudedoubleepicentre longitude (WGS84)
depth_kmdoublehypocentre depth in km
magnitudedoublethe preferred magnitude
View all 12 columns
magnitude_typestringmww, mb, ms, ml, ...
placestringthe USGS place description
event_typestringalways earthquake here (other event types are excluded)
statusstringreviewed or automatic
networkstringthe contributing network code
updated_attimestamptzwhen the USGS last revised the event

Join keys: event_time, latitude, longitude.

Before you query.

  1. Magnitude 4.5 is the floor; smaller events are not here.
  2. status = 'automatic' rows are recent and may still change.
  3. Times are UTC; a "day" in a local sense needs a time zone conversion first.
  4. For a spatial join without an extension, a degree box around each point (as in the example) is enough at country scale.

Source & licence.

Source
USGS Earthquake Hazards Program (FDSN event service)
Licence
Public domain (US government work)
Attribution
Earthquake catalog from the U.S. Geological Survey, Earthquake Hazards Program; public domain.
Coverage
worldwide; 2000-01-01 to yesterday
Refresh
daily, the whole table replaced; source version usgs fdsn 2026-10-13
Table
commons/pubdata · environment.earthquakes · Iceberg v2 · browse the catalog
Recipe
pubdata/recipes/earthquakes.py, registry entry pubdata/registry/earthquakes.yaml

Source: USGS Earthquake Hazards Program (FDSN event service) · Public domain · Snapshot shown: 13 Oct 2026HTML for people. Markdown for agents.