Skip to main content
Fetches earthquake events at or deeper than a specified depth threshold. This endpoint is ideal for studying shallow vs deep earthquakes and analyzing crustal vs subduction zone events.

Endpoint

Method: GET
Path: /v1/earthquakes/depth
Authentication: Not required

Parameters

number
required
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”
integer
default:"1"
Page number for pagination. Must be a positive integer greater than 0.Validation:
  • Must be > 0
  • Returns 400 error if invalid
integer
default:"50"
Number of results per page. Must be a positive integer greater than 0.Validation:
  • Must be > 0
  • Returns 400 error if invalid
string
default:"-time"
Sort order for results. Prefix with - for descending order. Allowed values: - time or -time (default: descending) - magnitude or -magnitude - depth or -depth
string
Comma-separated list of fields to include in response. Allowed values: - time - magnitude - depth - place - coordinates

Request Example

Response

boolean
Indicates if the request was successful
integer
HTTP status code (200 for success)
string
HTTP status message (“OK” for success)
string
Human-readable message. Format: “Earthquake events with depth > km”
array
Array of GeoJSON Feature objects. Depth is stored in geometry.coordinates[2] (third element of coordinates array)
object
Request metadata containing method, path, and timestamp
integer
Total count of earthquakes at or deeper than specified depth
object
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 km Most common type. Occur in Earth’s crust. Can cause significant damage due to proximity to surface.

Intermediate

70-300 km Occur in subduction zones. Less common but can still be felt at surface.

Deep

300-700 km Occur 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