P2P Earthquake Information API

P2P Earthquake Information JSON API (v2)

get
/history

Returns various P2P earthquake information.

  • Approximately 0.5 seconds delay compared to WebSocket API. May have additional delays during high load.

  • The offset parameter is available, but information older than 1 week may not be retrievable.

Query parameters
codesinteger · int32[]Optional

Information codes to retrieve (default is all). Values are 551(Earthquake Information), 552(Tsunami Forecast), 554(Emergency Earthquake Warning Detection), 555(Regional Peer Count), 556(Emergency Earthquake Warning (Alert)), 561(Earthquake Detection Information), 9611(Earthquake Detection Information Analysis Result).

limitinteger · int32 · min: 1 · max: 100Optional

Number of items to return (1-100, default is 10)

offsetinteger · int32Optional

Number of items to skip (0 or greater, default is 0). For example, limit=100&offset=200 returns 100 items starting from the 201st item.

Responses
chevron-right
200

Returns various information.

application/json
or
or
or
or
or
or
get
/history

P2P Earthquake Information WebSocket API

get
/ws

Distributes various P2P earthquake information in real-time. WebSocket protocol connection required.

  • Distributes JSON objects via text frames (opcode: 1). Each frame contains one of the information types specified in the schema.

  • The same information may be distributed multiple times. Using id to remove duplicates is recommended.

  • Information is exactly the same as P2P Earthquake Information JSON API (v2). Use JSON API to retrieve historical information.

Responses
get
/ws
101

Switches to WebSocket connection.

Last updated