USGS Earthquake API
by earthquake.usgs.gov
Science and space
Added on October 31st, 2026
Checked and working on November 2nd, 2026
Visit earthquake.usgs.gov →
What it does
The US Geological Survey publishes real-time and historical earthquake data for the whole world. Query earthquakes by time, location, radius, depth and magnitude, or count them first, and get the results as GeoJSON, CSV, KML or QuakeML (XML). Ready-made feeds give the earthquakes of the past hour, day, week or month. Free, public domain data, no key needed.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, public domain data, no key needed.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- earthquake.usgs.gov
- Last checked
- Working on November 2nd, 2026
More information: https://earthquake.usgs.gov/fdsnws/event/1/
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&limit=1'
JavaScript
const response = await fetch("https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&limit=1");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&limit=1",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.