PublicAML Incidents API
Live reads over one recorded incident: the attacker's large outflows and the stolen / frozen / held totals.
Live reads over one recorded incident: the attacker's large outflows and the stolen / frozen / held totals.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/publicaml-org:publicaml-org-incidents-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: PublicAML Intelligence Incidents API
version: 1.0.0
summary: 'Blockchain anti-money-laundering intelligence: address risk, entity attribution and fund tracing.'
description: 'Screen a crypto address, find out what it is and who it belongs to, and follow its money forwards to a cash-out or backwards to its funding. ## Reading a result honestly
Three things about this data are easy to get wrong and each has cost somebody an incorrect conclusion:
1. **An unknown address is not a clean address.** /v2/enrich puts addresses it has no data for in `not_found`, not in `entities` with a zero. A brand-new wallet is unknown, not innocent. 2. **`risk.score` is risk, not a proportion of funds.** It combines its parts by MAX, so the components in `risk.breakdown` do not sum to it. 3. **A negative is only as good as its window.** Endpoints that answer ''did this wallet do X'' report how much they actually read (`scan`, `coverage`, `partial`, `truncated`, `degraded`). A `false` next to `negative_conclusive: false` means ''nothing known'', not ''nothing happened''. ## v1 is deprecated, and what that does and does not mean
Every `/v1/*` response carries `Deprecation: true`, `X-API-Recommended-Version: v2` and a `Link` header pointing here, and JSON object bodies also carry an `api_version` field saying the same thing. Read it as *migrate when you can*, not as *this stops working soon*: **no removal date is set**, which is exactly why no `Sunset` header is sent — that header carries a date, and inventing one would be a promise nobody made. v2 is not a different product. `/v2/enrich` calls the v1 handler and translates the shape, so the two cannot disagree about the facts. What changes is the form: no duplicated fields, and attribution arrives as `axes` — each question about an address answered separately instead of collapsed into one winning category. ## Chains
bitcoin, ethereum, bsc and tron. The same 0x address exists on ethereum, bsc and tron and is a different wallet on each, so `chain` is part of the identity and never a hint. bitcoin''s graph is bipartite — address → transaction → address — so one hop there is half an economic step, and a `counterparty` field holds a transaction hash rather than an address. ## Auth
Read endpoints work unauthenticated, rate-limited per client IP. Send `X-API-Key` to remove the limit and see your own pushed labels. ### The anonymous limit, in numbers
The budget is counted in UNITS, and a unit is one ADDRESS, not one call: a batch of 60 addresses spends 60. This is the part worth reading twice, because a script that batches looks well-behaved by request count and still exhausts an hour''s budget in one call. | bucket | limit | window |
| --- | --- | --- |
| anonymous, standard endpoints (`/v2/enrich` among them) | 100 units | 1 hour |
| anonymous, heavy endpoints (`/v1/trace`, `/v1/counterparties`, `/v1/transactions`, `/v1/address-transactions`, `/v1/address-flows`, `/v1/entity-transfers`, `/v1/tx-enrich`, `/v1/swap-through`, `/v1/cluster-mappings`) | 20 units | 1 hour |
| authenticated (`X-API-Key` or HMAC) | no limit, unless the key was issued with a quota of its own | — |
`/v2/enrich` costs one unit per address and draws on the standard bucket: a batch of 60 spends 60 of the 100. The same unit is what a key with a quota of its own is metered in. So the pause to configure is: none, if you send a key. Authenticating removes the limit outright rather than raising it, which is why a bulk check should carry the key even though the endpoint does not require one. A key CAN be issued with a quota — units per window, metered per key rather than per account, so several keys on one contract get independent budgets. Yours has one only if you were told so when it was issued; the `429` body says which case you are in. A rejected request answers `429` with a JSON body naming what it cost you and when to come back — `{"error": "rate limit exceeded", "cost": 60, "limit": 100, "window_sec": 3600, "retry_after": 1973}` — plus a `Retry-After` header.'
contact:
name: PublicAML
url: https://publicaml.org
servers:
- url: https://intelapi.publicaml.org
description: Production.
security:
- ApiKeyAuth: []
- {}
tags:
- name: Incidents
description: 'Live reads over one recorded incident: the attacker''s large outflows and the stolen / frozen / held totals.'
paths:
/v1/incidents/{slug}/flows:
get:
operationId: getIncidentFlows
summary: 'Live feed: large transfers out of an incident''s attacker addresses'
description: 'Transfers whose SENDER is one of the incident''s `perpetrator` or `intermediary` addresses and whose value is at least `min_usd`, newest first, across every chain the incident has addresses on. Built for a page that polls every 30-60 seconds while an incident unfolds.
**Price.** Each transfer is valued at the price of its own UTC day from PublicAML''s daily series — the same quote /v1/rate-at returns and the risk engine stores. A transfer that cannot be priced is NOT listed: this is what drops the fake Transfer events an address-poisoning bot emits "from" an attacker''s wallet out of tokens with no market. They are counted in `unpriced_skipped`, per chain and in total.
**Sender check.** A token log can name any `from`. `sender_verified` is true only when the transaction backs it: it was sent by an incident address (`incident_address`), it called the sender itself (`called_sender`, contract wallets), it went through a configured or DEX-labelled router (`known_router`, `dex_router`), or — BTC — the address signed an input (`utxo_input`). `mismatch` means the transaction is in our store and was sent by someone else; `tx_not_indexed` that we do not hold the transaction record (TRON today, and the newest seconds on other chains).
**kind** is read from the recipient: `internal` (another attacker address of this incident), `swap` (a DEX, or the same transaction paid something back to the attacker), `bridge`, `cashout` (exchange, deposit, OTC, custodian, payment, gambling), else `transfer`.
**Polling.** Pass the newest `timestamp` you have as `since` (inclusive) and dedupe on `id`. A truncated page carries `next_until`; pass it as `until` (exclusive) to walk back. `chains[*].data_head_ts` is the newest block we hold per chain: a quiet feed with a stale head means we are behind, not that the attacker stopped. Chains with labels but no transfer data (SOL) are listed in `skipped_chains`.
Visibility follows the incident canon: a private incident answers 404, a retracted one 410, and victims are never named. Open to anonymous callers; one unit.
**TRON form.** On TRON every address in this answer is base58 (`T…`) and every transaction hash is 64 hex characters WITHOUT `0x` — the form `/v2/enrich`, the webhook events and Tronscan use. The request takes either address form. Until 11.11.2026 some of these fields came back as `0x` + hex. Covers TRON rows'' `tx_hash`, `from` / `to` addresses and `asset.token_address`, including feeds cached before the change. `id` is an opaque dedupe key and keeps the storage form.'
tags:
- Incidents
parameters:
- name: slug
in: path
required: true
schema:
type: string
maxLength: 120
description: Incident key, as in `GET /v1/incidents?slug=`.
example: binance-hot-wallet-hack-2026-10-29
- name: min_usd
in: query
required: false
schema:
type: number
minimum: 1000
default: 100000
description: Smallest transfer listed, in USD at the transfer's day.
- name: since
in: query
required: false
schema:
oneOf:
- type: integer
- type: string
description: 'Inclusive lower bound: unix seconds, milliseconds or ISO-8601. Default: 00:00 UTC the day before `occurred_at`. Never more than 30 days back; an older value is clamped and `window.since_clamped` says so.'
- name: until
in: query
required: false
schema:
oneOf:
- type: integer
- type: string
description: 'Exclusive upper bound, same formats. Default: now.'
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 1000
default: 200
- name: chains
in: query
required: false
schema:
type: string
description: 'Comma-separated chain filter, e.g. `ETH,TRON,BTC,BSC`. Default: every chain of the incident.'
responses:
'200':
description: The feed page.
headers:
Deprecation:
description: Always `true` on /v1. The version is deprecated and still supported; no removal date is set, which is why no `Sunset` header is sent (RFC 8594 would require an actual date).
schema:
type: string
enum:
- 'true'
Link:
description: '`rel="successor-version"` pointing at the API documentation.'
schema:
type: string
X-API-Recommended-Version:
description: Always `v2`. The same facts in a shape without duplicated fields.
schema:
type: string
enum:
- v2
content:
application/json:
schema:
type: object
properties:
incident:
type: object
description: '{slug, name, status, occurred_at, category, updated_at}. `status: alleged` is shown as such.'
min_usd:
type: number
window:
type: object
description: '{since, until, computed_until, since_clamped, max_days}.'
flows:
type: array
items:
type: object
properties:
id:
type: string
description: Stable per-transfer key; dedupe on it across polls.
chain:
type: string
tx_hash:
type: string
block_number:
type: integer
timestamp:
type: integer
description: Unix seconds of the block.
time:
type: string
description: Same, ISO-8601 UTC.
from:
type: object
properties:
address:
type: string
role:
type: string
enum:
- perpetrator
- intermediary
label:
type: string
nullable: true
co_inputs:
type: integer
description: 'BTC only: inputs of the spending transaction.'
to:
type: object
properties:
address:
type: string
label:
type: string
nullable: true
category:
type: string
nullable: true
description: Attribution of the recipient (dex, cex, deposit, bridge, …) or null when nobody named it.
in_incident:
type: boolean
description: The recipient is itself an address of this incident (any role).
incident_role:
type: string
nullable: true
enum:
- perpetrator
- intermediary
- recipient
- mentioned
description: Its role; null when not in the incident, and also for a victim (victims are never named).
aml_score:
type: number
nullable: true
description: Recipient's own score. Computed for the largest recipients outside the incident only (30 per chain); null otherwise.
risk_level:
type: string
nullable: true
fresh:
type: boolean
nullable: true
description: true = unlabelled and no transfer in the 7 days before the window (a new address); false = labelled or seen before; null = not checked.
asset:
type: object
properties:
symbol:
type: string
nullable: true
token_address:
type: string
nullable: true
description: null for the native coin.
decimals:
type: integer
nullable: true
description: Known for registry tokens only (GET /v1/supported-tokens-registry); null otherwise.
label:
type: string
nullable: true
description: Name of a non-registry token contract, when labelled.
amount:
type: number
nullable: true
description: Human amount; null when decimals are unknown.
amount_raw:
type: string
description: Integer amount in the token's smallest unit. Authoritative.
usd:
type: number
description: Value on the transfer's UTC day.
price:
type: object
description: '{day, basis: market | pinned | stable_peg, day_gap} — as in /v1/rate-at.'
kind:
type: string
enum:
- internal
- swap
- bridge
- cashout
- transfer
sender_verified:
type: boolean
description: 'true only when the transaction itself backs `from`: see `sender_check`.'
sender_check:
type: string
enum:
- incident_address
- called_sender
- known_router
- dex_router
- utxo_input
- mismatch
- tx_not_indexed
count:
type: integer
truncated:
type: boolean
next_until:
type: integer
nullable: true
chains:
type: object
description: 'Per chain: data_head_ts, data_head_block, senders, senders_truncated, priced, unpriced_skipped, below_threshold, zero_amount, edges_truncated, recipients_scored, timings_ms.'
unpriced_skipped:
type: integer
description: Transfers dropped because they could not be priced, all chains.
skipped_chains:
type: array
items:
type: object
description: '{chain, reason: label_only, detail}.'
chain_errors:
type: array
items:
type: object
price_basis:
type: string
cached:
type: boolean
age_s:
type: number
description: Age of the cached feed this page was cut from.
'400':
description: Malformed request.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: 'Rate limited: anonymous callers, and keys issued with a quota of their own. Authenticate to remove the limit.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Unknown or private incident.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'410':
description: The incident was retracted.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: ClickHouse unavailable for every chain.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/incidents/{slug}/summary:
get:
operationId: getIncidentSummary
summary: 'Three headline numbers of an incident: stolen, frozen, held (ETH)'
description: 'Computed live, for Ethereum only; other chains answer 400.
* `stolen_usd` — priced transfers FROM the incident''s `victim` addresses TO its perpetrator/intermediary addresses, each at the quote of its own UTC day; `stolen.by_asset`.
* `frozen_usd` — for each token an issuer currently freezes on a perpetrator/intermediary address (`address_freezes` and the Tether/Circle blacklist claims), the address''s net in − out of that token over our transfers, less what the issuer destroyed, at today''s quote; `frozen.by_issuer`, `frozen.by_asset`, `frozen.freezes`. Freezes on victim addresses are not counted.
* `held_usd` — net in − out per address and asset over every perpetrator/intermediary address, at today''s quote, minus `frozen_usd`. Hops between the attacker''s own addresses cancel out, so nothing is counted twice. `held.top_addresses`, `held.by_asset`.
* `liabilities_usd` — Aave debt tokens (variable/stable debt, matched by CONTRACT from Aave''s own data providers, never by symbol) on those addresses: what they owe. Not in `held_usd`.
* `collateral_locked_usd` — Aave aTokens on those addresses: assets supplied to the Aave pool, redeemable only through it and not while they back the debt. Neither held nor frozen. The asset sent into the pool already left `held` as an outgoing transfer, so it is counted once.
* `health_factor` — the lowest Aave health factor among those positions (liquidation below 1); null when there is no debt.
Collateral, debt and health factor are read from the Aave v3 Pool itself (`getUserAccountData`, USD by Aave''s oracle) for every attacker address holding an Aave token; `liabilities.basis` / `collateral.basis` say `protocol`, or `edges` when the protocol could not be read and the figures fall back to net minted tokens at the underlying''s quote.
**Unconfirmed quotes.** A token_price quote more than 20× away from the median of its neighbouring OBSERVATIONS (3 rows each side, rows not calendar days) is not summed into the three numbers. Its dollars are in `unconfirmed` (`stolen_usd`, `frozen_usd`, `held_usd`, `items[]` with asset, day, quote, neighbour_median, factor, usd), `outliers_excluded` is true, and `price_outliers` in each block keeps its former shape and now lists exactly what was left out. A real repricing is confirmed by the rows after it and stops being flagged; the newest row has no right side and stays unconfirmed until the next days agree.
Balances are net over the window in `window` (from two days before `occurred_at`); `window.prior_activity` lists holders that were active in the 30 days before it, whose window net is then not their balance. Every block carries `method` in one sentence.
Visibility as for `/flows`. Open to anonymous callers; one unit.'
tags:
- Incidents
parameters:
- name: slug
in: path
required: true
schema:
type: string
maxLength: 120
description: Incident key, as in `GET /v1/incidents?slug=`.
example: binance-hot-wallet-hack-2026-10-29
- name: chain
in: query
required: false
schema:
type: string
default: ETH
description: Only `ETH` is computed today.
responses:
'200':
description: The three numbers.
headers:
Deprecation:
description: Always `true` on /v1. The version is deprecated and still supported; no removal date is set, which is why no `Sunset` header is sent (RFC 8594 would require an actual date).
schema:
type: string
enum:
- 'true'
Link:
description: '`rel="successor-version"` pointing at the API documentation.'
schema:
type: string
X-API-Recommended-Version:
description: Always `v2`. The same facts in a shape without duplicated fields.
schema:
type: string
enum:
- v2
content:
application/json:
schema:
type: object
properties:
incident:
type: object
chain:
type: string
as_of:
type: integer
as_of_time:
type: string
data_head_ts:
type: integer
nullable: true
data_head_block:
type: integer
nullable: true
window:
type: object
description: '{since, until, prior_activity[] | null}.'
stolen_usd:
type: number
frozen_usd:
type: number
held_usd:
type: number
stolen:
type: object
description: '{usd, transfers, victims, by_asset[], unpriced{count, assets[]}, price_outliers[], method}.'
properties:
by_asset:
type: array
items:
type: object
properties:
symbol:
type: string
nullable: true
token_address:
type: string
nullable: true
amount:
type: number
nullable: true
amount_raw:
type: string
usd:
type: number
frozen:
type: object
description: '{usd, by_issuer[{issuer, usd}], by_asset[], freezes[{address, role, issuer, symbol, token_address, amount, amount_raw, usd, freeze_ts}], method}.'
held:
type: object
description: '{usd, gross_usd, by_asset[], top_addresses[{address, role, label, usd, frozen_usd}], addresses, addresses_holding, negative_balances_clamped, unpriced{}, price_outliers[], unconfirmed_usd, method}.'
liabilities_usd:
type: number
description: Aave debt owed by the attacker addresses (not in held_usd).
collateral_locked_usd:
type: number
description: Aave aTokens on the attacker addresses (not in held_usd, not frozen).
liabilities:
type: object
description: '{usd, basis: protocol | protocol+edges | edges, usd_edges, positions[{address, market, pool, collateral_usd, debt_usd, available_borrows_usd, ltv, liquidation_threshold, health_factor, source}], by_asset[{token_address, underlying, underlying_symbol, market, kind, amount, amount_raw, usd, priced, addresses}], method}.'
collateral:
type: object
description: Same shape as liabilities, kind a_token.
health_factor:
type: number
nullable: true
description: Lowest Aave health factor of the attacker's positions; below 1 is liquidatable.
outliers_excluded:
type: boolean
description: 'Always true: dollars from unconfirmed quotes are not in the three numbers.'
unconfirmed:
type: object
description: '{stolen_usd, frozen_usd, held_usd, items[{number, asset{symbol, token_address}, day, quote, neighbour_median, factor, neighbours, unit: usd_per_raw_unit, usd}], method}.'
unpriced_assets:
type: object
description: '{count, assets[{token_address}]} — assets left out of the numbers for want of a quote.'
warnings:
type: array
items:
type: string
cached:
type: boolean
age_s:
type: number
'400':
description: Malformed request.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: 'Rate limited: anonymous callers, and keys issued with a quota of their own. Authenticate to remove the limit.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Unknown or private incident.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'410':
description: The incident was retracted.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Error:
type: object
description: Ordinary failure. `error` is a short machine-readable reason.
required:
- error
properties:
error:
type: string
detail:
type: string
description: Present when there is more to say.
reason:
type: string
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: Public key identifier (`pk_…`). On reads it removes the rate limit and unlocks your own pushed labels. It CANNOT write. A key that is unknown, revoked or expired is refused with `401 invalid_api_key` rather than silently ignored.
HmacTimestamp:
type: apiKey
in: header
name: X-Timestamp
description: Unix milliseconds. Must be within 5 minutes of server time.
HmacSignature:
type: apiKey
in: header
name: X-Signature
description: Hex HMAC-SHA256 over `{timestamp}\n{METHOD}\n{path}\n{body}` keyed with your secret, where `{path}` is the request path and, ONLY when the URL has a query string, `?` plus the query exactly as sent (`/v1/webhooks/events?endpoint_id=we_1&limit=50`); without a query there is no `?` (`/v1/webhooks/endpoints`, not `/v1/webhooks/endpoints?` — that fails with `invalid_signature`). `{body}` is the raw body, empty when there is none. Required on every write. Sending X-Timestamp or X-Signature commits the request to this path — a bad signature fails outright rather than falling back to key-only auth.