Skip to main content
Fetches all earthquake events from January 1st of the current year up to the current date. This endpoint is ideal for monitoring year-to-date seismic activity.

Endpoint

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

Parameters

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 or null
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: “Earthquakes recent events”
array
Array of GeoJSON Feature objects. Each feature contains:Properties:
  • eventId (integer) - Unique event identifier
  • originId (integer) - Origin identifier
  • time (string) - ISO 8601 timestamp
  • author (string) - Reporting agency
  • magType (string) - Magnitude type (ML, Mw, etc.)
  • mag (float) - Magnitude value
  • magAuthor (string) - Magnitude author
  • type (string) - Event type (“earthquake”)
  • place (string) - Location description
  • version (integer) - Version number
  • geojson_creationTime (string) - GeoJSON creation time
Geometry:
  • type (string) - Always “Point”
  • coordinates (array) - [longitude, latitude, depth in km]
object
Request metadata containing:
  • method (string) - HTTP method used
  • path (string) - Request path with query parameters
  • timestamp (string) - ISO 8601 timestamp of request
integer
Total count of earthquakes from start of year to today
object
Pagination details:
  • page (integer) - Current page number
  • totalPages (integer) - Total number of pages
  • limit (integer) - Results per page
  • hasMore (boolean) - Whether more pages exist

Response Example

Error Responses

Invalid Limit Parameter

Invalid Page Parameter

INGV Source Error

Implementation Details

  • Date Range: Automatically calculated from January 1st of current year to today’s date
  • Sorting: Default sort is by time (most recent first: -time)
  • Pagination: Manual pagination applied after fetching all events from INGV
  • Data Source: INGV API (Italian National Institute of Geophysics and Volcanology)
  • Format: GeoJSON with orderby=time parameter