Endpoint
Method: GETPath:
/v1/earthquakes/depthAuthentication: Not required
Parameters
Minimum depth in kilometers. Returns earthquakes with depth >= this value.Validation:
- Must be a positive number > 0
- Returns 400 error if missing: “The depth parameter is required and must be a positive number greater than 0”
- Returns 400 error if invalid: “The depth parameter must be a positive number greater than 0”
Page number for pagination. Must be a positive integer greater than 0.Validation:
- Must be > 0
- Returns 400 error if invalid
Number of results per page. Must be a positive integer greater than 0.Validation:
- Must be > 0
- Returns 400 error if invalid
Sort order for results. Prefix with
- for descending order.Allowed values:timeor-time(default: descending)magnitudeor-magnitudedepthor-depth
Comma-separated list of fields to include in response.Allowed values:
timemagnitudedepthplacecoordinates
Request Example
Response
Indicates if the request was successful
HTTP status code (200 for success)
HTTP status message (“OK” for success)
Human-readable message. Format: “Earthquake events with depth > km”
Array of GeoJSON Feature objects. Depth is stored in
geometry.coordinates[2] (third element of coordinates array)Request metadata containing method, path, and timestamp
Total count of earthquakes at or deeper than specified depth
Pagination details with page, totalPages, limit, and hasMore
Response Example
Error Responses
Missing Depth Parameter
Invalid Depth Value
Invalid Limit Parameter
Implementation Details
- Filter Logic:
feature.geometry.coordinates[2] >= depthValue - Depth Location: Third element of GeoJSON coordinates array (index 2)
- Date Range: From start of current year to today
- Filtering: Applied after fetching all events from INGV (client-side filtering)
- Sorting: Default sort is by time (most recent first:
-time) - Pagination: Manual pagination applied after depth filtering
- Coordinate Format: [longitude, latitude, depth in km]
Earthquake Depth Classification
Shallow
0-70 kmMost common type. Occur in Earth’s crust. Can cause significant damage due to proximity to surface.
Intermediate
70-300 kmOccur in subduction zones. Less common but can still be felt at surface.
Deep
300-700 kmOccur in subduction zones. Rare and typically less damaging at surface.
Use Cases
- Studying crustal vs subduction zone earthquakes
- Analyzing tectonic plate interactions
- Research on earthquake mechanisms
- Identifying shallow earthquakes with higher damage potential
- Seismological studies on Earth’s interior structure
Example Queries
Related Endpoints
- By Magnitude - Filter by magnitude
- By Date Range - Custom date range with depth filter
- Recent Earthquakes - Year-to-date events