私たちの地震データAPIは、世界中から収集された地震情報への無料のリアルタイムアクセスを提供します。このAPIは、地震監視アプリケーションを構築する開発者のために、シンプルで迅速かつ信頼性の高いものとして設計されています。
https://earthqua.com/wp-json/earthquakes/v1/認証は不要です。APIは読み取り専用操作のために公開されています。
/latestオプションのフィルタリングパラメータを使用して、最新の地震データを取得します。
| 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/latestGET https://earthqua.com/wp-json/earthquakes/v1/latest?country_code=TR&min_magnitude=4.0GET https://earthqua.com/wp-json/earthquakes/v1/latest?keyword=Turkey&limit=20/stats地震の統計と概要情報を取得します。
GET https://earthqua.com/wp-json/earthquakes/v1/statsすべてのAPIレスポンスは一貫したJSON構造に従います:
{ "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" } }各地震オブジェクトには、以下のフィールドが含まれています:
| 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 |
現在、APIに対して制限は課されていません。ただし、すべてのユーザーに最適なパフォーマンスを確保するために、合理的な使用パターンを推奨します。
エラー応答は成功応答と同じ構造を持ちますが、success: falseとデータフィールド内のエラーメッセージが含まれます。
世界中の公式政府機関や科学機関から収集されたデータで、正確性と信頼性を確保しています。
高度なアルゴリズムが地震データを発生から数分以内に処理・検証し、最も最新の情報を提供します。
APIサポート、機能リクエスト、またはバグ報告については、当社のウェブサイトを通じてご連絡いただくか、リポジトリに問題を作成してください。