Endpoint
Method: GETPath:
/v1/earthquakes/eventIdAuthentication: Not required
Parameters
Unique earthquake event identifier.Validation:
- Must be a valid integer
- Must exist in the current year’s earthquake database
- Returns 404 error if not found: “No event found with ID “
Request Example
Response
Indicates if the request was successful
HTTP status code (200 for success, 404 if not found)
HTTP status message (“OK” for success, “Not Found” if event doesn’t exist)
Human-readable message. Format: “Earthquakes event with id ”
Array containing a single GeoJSON Feature object with complete earthquake details:Properties:
eventId(integer) - Unique event identifier (matches query parameter)originId(integer) - Origin identifier from INGVtime(string) - ISO 8601 timestamp of earthquake occurrenceauthor(string) - Reporting agency/organizationmagType(string) - Magnitude type (ML, Mw, Mb, Ms)mag(float) - Magnitude valuemagAuthor(string) - Magnitude determination authortype(string) - Event type (“earthquake”)place(string) - Human-readable location descriptionversion(integer) - Event data version numbergeojson_creationTime(string) - GeoJSON creation timestamp
type(string) - Always “Point”coordinates(array) - [longitude, latitude, depth in km]
Request metadata containing method, path, and timestamp
Response Example
Error Responses
Event Not Found
Implementation Details
- Search Scope: Searches events from start of current year to today
- Filter Logic:
feature.properties.eventId === parseInt(eventId) - Return Format: Single-item array in payload (maintains consistency with other endpoints)
- Event ID Type: Converted to integer for comparison
- Data Source: INGV API with
format=geojson - Metrics: Increments event counter by 1 when found
Use Cases
- Retrieve complete details for a specific earthquake
- Deep-dive analysis of individual seismic events
- Event tracking and monitoring
- Reference lookups from other systems
- Event detail pages in applications
- Historical event research
How to Find Event IDs
Event IDs can be obtained from:- Other API endpoints (all return
eventIdin response) - INGV official reports and bulletins
- Seismic monitoring dashboards
- Previous API queries
Example: Get Event Details and Related Events
Field Descriptions
Event Properties
- eventId: Unique identifier assigned by INGV
- originId: Origin/source identifier for event determination
- time: Exact timestamp when earthquake occurred (UTC)
- author: Agency that determined event parameters (e.g., “SURVEY-INGV”)
- magType: Type of magnitude scale used:
- ML: Local Magnitude (Richter)
- Mw: Moment Magnitude
- Mb: Body Wave Magnitude
- Ms: Surface Wave Magnitude
- mag: Magnitude value on specified scale
- magAuthor: Agency/system that calculated magnitude
- type: Event classification (typically “earthquake”)
- place: Human-readable location description
- version: Data revision version number
- geojson_creationTime: When GeoJSON was generated
Geometry
- coordinates[0]: Longitude (East-West position, -180 to 180)
- coordinates[1]: Latitude (North-South position, -90 to 90)
- coordinates[2]: Depth below surface in kilometers
Related Endpoints
- By Location - Find nearby earthquakes
- Recent Earthquakes - Browse all recent events
- By Magnitude - Find similar magnitude events
- By Region - Find events in same region