Our Earthquake Data API provides free real-time access to earthquake information collected from around the world. The API is designed to be simple, fast, and reliable for developers building earthquake monitoring applications.
https://earthqua.com/wp-json/earthquakes/v1/
No authentication required. The API is publicly accessible for read-only operations.
/latest
Retrieve the most recent earthquake data with optional filtering parameters.
| Parameter | Type | Default | Description |
|---|---|---|---|
limit |
integer | 10 | Number of earthquakes to return (1-100) |
min_magnitude |
float | 0 | Minimum magnitude filter |
max_magnitude |
float | 10 | Maximum magnitude filter |
country_code |
string | null | Filter by country code (e.g., "TR", "US") |
keyword |
string | null | Search in place names |
GET https://earthqua.com/wp-json/earthquakes/v1/latest
GET https://earthqua.com/wp-json/earthquakes/v1/latest?country_code=TR&min_magnitude=4.0
GET https://earthqua.com/wp-json/earthquakes/v1/latest?keyword=Turkey&limit=20
/stats
Retrieve earthquake statistics and summary information.
GET https://earthqua.com/wp-json/earthquakes/v1/stats
All API responses follow a consistent JSON structure:
{
"success": true,
"data": {
"earthquakes": [...],
"total": 73,
"page": 1,
"per_page": 10,
"total_pages": 8
},
"meta": {
"generated_at": "2025-10-21T00:09:57+01:00",
"api_version": "1.0",
"source": "earthquakes-plugin"
}
}
Each earthquake object contains the following fields:
| Field | Type | Description |
|---|---|---|
id |
integer | Internal database ID |
external_id |
string | Source-specific identifier |
source |
string | Data source ("usgs" or "turkey") |
magnitude |
float | Earthquake magnitude |
magnitude_formatted |
string | Formatted magnitude (e.g., "4.2") |
magnitude_class |
string | Magnitude category ("low", "moderate", "strong", "major", "great") |
place |
string | Location description |
place_short |
string | Shortened location name |
latitude |
float | Latitude coordinate |
longitude |
float | Longitude coordinate |
depth |
float | Depth in kilometers |
depth_formatted |
string | Formatted depth (e.g., "7.5 km") |
time |
integer | Unix timestamp in milliseconds |
formatted_time |
string | Human-readable time |
coordinates |
string | Formatted coordinates |
status |
string | Review status |
tsunami_warning |
boolean | Tsunami warning issued |
city |
string | City name (if available) |
country |
string | Country name |
country_code |
string | ISO country code |
Currently, there are no rate limits imposed on the API. However, we recommend reasonable usage patterns to ensure optimal performance for all users.
Error responses follow the same structure as success responses but with success: false and an error message in the data field.
Data collected from official government agencies and scientific institutions worldwide, ensuring accuracy and reliability.
Advanced algorithms process and validate earthquake data within minutes of occurrence, providing the most current information available.
For API support, feature requests, or bug reports, please contact us through our website or create an issue in our repository.