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.Documentation Index
Fetch the complete documentation index at: https://docs.terraquakeapi.com/llms.txt
Use this file to discover all available pages before exploring further.
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: - time or -time (default: descending) - magnitude or
-magnitude - depth or -depthComma-separated list of fields to include in response. Allowed values: -
time - magnitude - depth - place - coordinatesRequest 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 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 descriptionversion(integer) - Version number -geojson_creationTime(string) - GeoJSON creation time Geometry: -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