# USGS Earthquake API

Category: [Science and space](https://free-web-services.com/web-services/science/)  
Page: https://free-web-services.com/web-services/science/usgs-earthquake-api.html  
Documentation: https://earthquake.usgs.gov/fdsnws/event/1/

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.

- API key: Not needed
- 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

Example request:

```sh
curl 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&limit=1'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

