Endpoint
Method: GETPath:
/v1/earthquakes/todayAuthentication: Not required
Parameters
Page number for pagination. Must be a positive integer greater than 0.Validation:
- Must be > 0
- Returns 400 error: “Invalid ‘page’ parameter. It must be a positive integer (e.g., ?page=2).”
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: “Earthquake events for today”
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, path, and timestamp
Total count of earthquakes that occurred today
Pagination details with page, totalPages, limit, and hasMore
Response Example
Error Responses
Invalid Limit Parameter
Invalid Page Parameter
Implementation Details
- Date Range: Current day from 00:00:00 to 23:59:59 UTC
- Timezone: All times are in UTC
- Time Query:
starttime={dateStr}T00:00:00&endtime={dateStr}T23:59:59 - Sorting: Default sort is by time (most recent first:
-time) - Pagination: Manual pagination applied after fetching all today’s events
- Data Source: INGV API with GeoJSON format
Use Cases
- Real-time earthquake monitoring dashboards
- Daily seismic activity reports
- Alert systems for recent seismic events
- News and media earthquake tracking
Related Endpoints
- Recent Earthquakes - Year-to-date events
- Last Week - Last 7 days
- By Date Range - Custom date range