---
title: "Das Earthquake Detect"
method: POST
path: "/api/v1/das/earthquake-detect"
tags: ["DAS"]
---

# Das Earthquake Detect

`POST /api/v1/das/earthquake-detect`

## Request

- Base URL: `https://www.deepmapai.com`
- URL: `https://www.deepmapai.com/api/v1/das/earthquake-detect`
- Auth: none declared

Detect earthquakes and pick P-wave arrivals in YOUR DAS record.

Runs the STA/LTA early-warning detector (das.submarine.earthquake_early_warning)
on the record the caller supplies in `data` (samples x channels, sample interval
`dt`, channel spacing `dx`), then the P-wave residual picker with Isolation-Forest
false-trigger rejection. The picker was trained ONLY on synthetic feature vectors
and has not been validated on real records -- its output carries that label.

No `data` -> HTTP 422. Until 2026-10-14 this endpoint ignored the caller and
"detected" a P-wave it had injected into a seeded synthetic record, unlabelled.

Requires API key.

## Headers

- `x-api-key` string

## Request body

- DASPredictRequest: DAS analysis request -- computed ONLY from the caller's `data`. Until 2026-10-14 there was no `data` field: the endpoints analysed server-generated noise (and, for earthquake-detect / classify, an injected synthetic event).
  - `data` array[], nullable: REQUIRED. DAS record, shape (samples, channels). The server generates no input.
    - number[]
  - `n_samples` integer, nullable: Ignored -- the shape is taken from `data`.
  - `n_channels` integer, nullable: Ignored -- the shape is taken from `data`.
  - `dt` number: Sample interval of `data` (s)
  - `dx` number: Channel spacing (m)
  - `contamination` number: Expected anomaly fraction (Isolation Forest)

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/deepmapai/apis/deepmap-ai.md) · [All operations](https://skmtc.dev/deepmapai/apis/deepmap-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/deepmapai/apis/deepmap-ai/revisions/dab995d977d0?raw)
