Skip to main content
Fetches all earthquake events that occurred on the current calendar day in UTC timezone. This endpoint is ideal for daily monitoring and real-time alerts.

Endpoint

Method: GET
Path: /v1/earthquakes/today
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: “Invalid ‘page’ parameter. It must be a positive integer (e.g., ?page=2).”
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: “Earthquake events for today”
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, path, and timestamp
integer
Total count of earthquakes that occurred today
object
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