Overview
The TerraQuake API provides access to the INGV (Istituto Nazionale di Geofisica e Vulcanologia) seismic monitoring station network. You can:- Retrieve all station data
- Query individual stations by code
- Get GeoJSON format for mapping
- Filter by station status (open/closed)
- Access network statistics
Seismic Station Network
The INGV operates a comprehensive network of seismic monitoring stations across Italy. These stations continuously record ground motion and transmit data in real-time.Station Data Structure
Each station includes:- Code: Unique station identifier (e.g., “ACATE”)
- Name: Station name
- Coordinates: Latitude, longitude, elevation
- Site: Detailed location information
- Status:
open,closed,inactive,deprecated, orunavailable - Creation Date: When the station became operational
- Network: Network code (usually “IV” for INGV)
Retrieving All Stations
Get a paginated list of all seismic monitoring stations.cURL
Python
JavaScript
Pagination Parameters
Query Station by Code
Retrieve detailed information for a specific station using its unique code.cURL
Python
JavaScript
Station code lookup is case-insensitive. Both
ACATE and acate will
return the same result.GeoJSON Format for Mapping
Get station data in GeoJSON format, ideal for mapping libraries like Leaflet, Mapbox, or Folium.cURL
Python
JavaScript
GeoJSON Structure
Station Status Filtering
Active (Open) Stations
Retrieve only stations that are currently operational.cURL
Python
JavaScript
Closed/Inactive Stations
Retrieve stations that are no longer operational.cURL
Python
Closed status includes:
closed, inactive, deprecated, and unavailable.Station Statistics
Get aggregate statistics about the entire station network.cURL
Python
JavaScript
Response Structure
Practical Use Cases
Building a Station Map
1
Fetch GeoJSON data
Python
2
Create base map
Python
3
Add station markers
Python
4
Save and display
Python
Monitoring Network Health
Python
Find Nearest Station to Location
Python
Station Coverage Analysis
Python
Best Practices
Use GeoJSON for Maps
The
/stations/geojson endpoint is optimized for mapping libraries and includes pre-formatted coordinates.Cache Station Data
Station data changes infrequently. Cache responses for 24 hours:
python cache_ttl = 86400 # 24 hours Filter by Status
Use status endpoints (
/status/open) when you only need active stations to
reduce payload size.Batch Queries
Use high
limit values (up to 500) to minimize API calls when fetching all stations.Error Handling
Python
Next Steps
Location Queries
Combine station data with earthquake location queries
Best Practices
Learn API optimization and error handling strategies