Endpoint
Method: GETPath:
/v1/earthquakes/recentAuthentication: Not required
Parameters
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 or null
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: “Earthquakes recent events”
Array of GeoJSON Feature objects. Each feature contains:Properties:
eventId(integer) - Unique event identifieroriginId(integer) - Origin identifiertime(string) - ISO 8601 timestampauthor(string) - Reporting agencymagType(string) - Magnitude type (ML, Mw, etc.)mag(float) - Magnitude valuemagAuthor(string) - Magnitude authortype(string) - Event type (“earthquake”)place(string) - Location descriptionversion(integer) - Version numbergeojson_creationTime(string) - GeoJSON creation time
type(string) - Always “Point”coordinates(array) - [longitude, latitude, depth in km]
Request metadata containing:
method(string) - HTTP method usedpath(string) - Request path with query parameterstimestamp(string) - ISO 8601 timestamp of request
Total count of earthquakes from start of year to today
Pagination details:
page(integer) - Current page numbertotalPages(integer) - Total number of pageslimit(integer) - Results per pagehasMore(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=timeparameter
Related Endpoints
- Today’s Earthquakes - Only today’s events
- Last Week - Last 7 days
- By Date Range - Custom date range