無料の地震データAPI

Access free real-time earthquake data collected from around the world

概要

私たちの地震データAPIは、世界中から収集された地震情報への無料のリアルタイムアクセスを提供します。このAPIは、地震監視アプリケーションを構築する開発者のために、シンプルで迅速かつ信頼性の高いものとして設計されています。

Real-time Data:Updated every minute with latest earthquake information
Global Coverage:Comprehensive data from worldwide monitoring networks
Free Access:No authentication or payment required
RESTful API:Standard HTTP methods and JSON responses

ベースURL

https://earthqua.com/wp-json/earthquakes/v1/

認証

認証は不要です。APIは読み取り専用操作のために公開されています。

エンドポイント

最新の地震を取得

取得/latest

オプションのフィルタリングパラメータを使用して、最新の地震データを取得します。

パラメータ

ParameterTypeDefaultDescription
limitinteger10Number of earthquakes to return (1-100)
min_magnitudefloat0Minimum magnitude filter
max_magnitudefloat10Maximum magnitude filter
country_codestringnullFilter by country code (e.g., "TR", "US")
keywordstringnullSearch in place names

例のリクエスト

最新の10件の地震を取得
GET https://earthqua.com/wp-json/earthquakes/v1/latest
マグニチュード4.0以上のトルコの地震を取得
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

統計情報を取得

GET/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" } }

地震オブジェクト

各地震オブジェクトには、以下のフィールドが含まれています:

FieldTypeDescription
idintegerInternal database ID
external_idstringSource-specific identifier
sourcestringData source ("usgs" or "turkey")
magnitudefloatEarthquake magnitude
magnitude_formattedstringFormatted magnitude (e.g., "4.2")
magnitude_classstringMagnitude category ("low", "moderate", "strong", "major", "great")
placestringLocation description
place_shortstringShortened location name
latitudefloatLatitude coordinate
longitudefloatLongitude coordinate
depthfloatDepth in kilometers
depth_formattedstringFormatted depth (e.g., "7.5 km")
timeintegerUnix timestamp in milliseconds
formatted_timestringHuman-readable time
coordinatesstringFormatted coordinates
statusstringReview status
tsunami_warningbooleanTsunami warning issued
citystringCity name (if available)
countrystringCountry name
country_codestringISO country code

レート制限

現在、APIに対して制限は課されていません。ただし、すべてのユーザーに最適なパフォーマンスを確保するために、合理的な使用パターンを推奨します。

エラー処理

エラー応答は成功応答と同じ構造を持ちますが、success: falseとデータフィールド内のエラーメッセージが含まれます。

データの品質

権威ある情報源

世界中の公式政府機関や科学機関から収集されたデータで、正確性と信頼性を確保しています。

リアルタイム処理

高度なアルゴリズムが地震データを発生から数分以内に処理・検証し、最も最新の情報を提供します。

サポート

APIサポート、機能リクエスト、またはバグ報告については、当社のウェブサイトを通じてご連絡いただくか、リポジトリに問題を作成してください。