Access real-time and historical earthquake data, seismic hazard information, and geological datasets from the US Geological Survey. Used in data engineering for geospatial risk analysis pipelines, disaster monitoring dashboards, and ingesting scientific earth observation data into analytical systems with Python.
Engineers query the USGS Earthquake Hazards API and WaterServices API using `requests` with GeoJSON output format. Seismic events are stored in PostGIS for spatial queries, while streamflow data feeds into time-series databases for hydrological modeling.
USGS real-time seismic and water data enables AI early-warning systems for natural disasters. RAG pipelines built on USGS reports help LLMs answer questions about earthquake risk in specific regions, while ML models trained on historical quake data predict aftershock patterns.
# pip install requests pandas
import requests, pandas as pd
resp = requests.get(
"https://earthquake.usgs.gov/fdsnws/event/1/query",
params={"format": "geojson", "minmagnitude": 5.0, "limit": 10}
)
quakes = [f["properties"] for f in resp.json()["features"]]
df = pd.DataFrame(quakes)[["place", "mag", "time"]]
print(df)Official dataset source
More datasets used by Python data engineers.
The Swedish government monopoly liquor store API providing product catalogues, store locations, inventory, and pricing data. Useful for practising structured API ingestion, building retail analytics pipelines, and learning how to work with government-published commercial datasets in Python.
It provides REST access to FoodData Central (FDC). It is intended primarily to assist application developers wishing to incorporate nutrient data into their applications or websites.
Access NASA's extensive collection of space data including the Astronomy Picture of the Day, Mars rover photos, near-Earth object tracking, satellite imagery, and Earth observation datasets. Commonly used in scientific data pipelines, geospatial analysis workflows, and educational data engineering projects with Python.