---
title: "Get Security Regime"
method: GET
path: "/api/v1/security/regime"
tags: ["Security / Black Swan Regime"]
---

# Get Security Regime

`GET /api/v1/security/regime`

## Request

- Base URL: `https://cryptodataapi.com`
- URL: `https://cryptodataapi.com/api/v1/security/regime`
- Auth: API key in header `X-API-Key`

Recent security events — confirmed hacks/exploits + live stablecoin depegs.

The main Security/Black Swan payload: every security event in the last
``window_days`` (default 10) with its affected symbols, severity, and acute
short bias, plus the market-wide Security Stress score. Use
`/security/regime/score` for the composite alone.

**Partly backfillable** — the hack / flow-stress / depeg subscores replay from
the dated DefiLlama hacks registry, archived net flows, and price history; the
``security_headlines`` RSS sidecar on `/security/regime/score` is live-only and
lands null on backfilled days.

## Query parameters

- `window_days` integer: Lookback for recent security events

## Response `200`

Successful Response

- SecurityRegimeResponse: Recent security events + market-wide stress — the main /security payload.
  - `items` SecurityEventModel[], required
    - `event_type` 'hack' | 'depeg', required
    - `title` string, required
    - `date` string, required
    - `days_ago` integer, required
    - `symbols` string[]
    - `bias` 'short' | 'long' | 'neutral' | 'mixed', required
    - `severity` number, nullable
    - `amount_usd` number, nullable
    - `deviation_bps` number, nullable
    - `classification` string, nullable
    - `technique` string, nullable
    - `target_type` string, nullable
    - `chains` string[], nullable
    - `source` string
  - `count` integer, required
  - `window_days` integer, required
  - `security_stress_score` number, required
  - `band` 'dormant' | 'quiet' | 'elevated' | 'heavy' | 'critical', required
  - `timestamp` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/cryptodataapi/apis/crypto-data-api.md) · [All operations](https://skmtc.dev/cryptodataapi/apis/crypto-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cryptodataapi/apis/crypto-data-api/revisions/8628b754ca81?raw)
