One request — no API key
The enrich endpoint takes an address and chain and returns a risk score, category, sanctions status and counterparties. No key is required to start; an optional key only raises the rate limit.
curl -sS -X POST 'https://intelapi.publicaml.org/v2/enrich' \
-H 'Content-Type: application/json' \
-d '{
"addresses": [{ "wallet_address": "0x3e37f4a10d771ba9de44b6d301410b1bedea65d0", "chain": "ETH" }],
"include": ["risk", "axes"]
}'{
"entities": [{
"wallet_address": "0x3e37f4a10d771ba9de44b6d301410b1bedea65d0",
"chain": "ETH",
"label": "Jaredfromsubway Exploiter",
"risk": { "score": 50.0, "level": "MEDIUM" },
"axes": {
"actor": { "category": "hacker", "source": "entities-discoverer" },
"business": { "category": "utility", "source": "curated" },
"legal_status": null
}
}]
}The same check in your language
import requests
def aml_check(address, chain="ETH"):
r = requests.post(
"https://intelapi.publicaml.org/v2/enrich",
json={
"addresses": [{"wallet_address": address, "chain": chain}],
"include": ["risk", "axes"],
},
timeout=10,
)
r.raise_for_status()
entities = r.json()["entities"]
if not entities: # listed in not_found: no data, which is not "clean"
raise LookupError("no data for this address")
return entities[0]
e = aml_check("0x3e37f4a10d771ba9de44b6d301410b1bedea65d0")
print(e["risk"]["score"], e["risk"]["level"], e["axes"]["legal_status"])// Node 18+ / browsers — no API key needed
async function amlCheck(address, chain = 'ETH') {
const r = await fetch('https://intelapi.publicaml.org/v2/enrich', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
addresses: [{ wallet_address: address, chain }],
include: ['risk', 'axes'],
}),
})
if (!r.ok) throw new Error('enrich failed: ' + r.status)
const { entities } = await r.json()
// Listed in not_found instead: no data, which is not "clean".
if (!entities.length) throw new Error('no data for this address')
return entities[0]
}
const e = await amlCheck('0x3e37f4a10d771ba9de44b6d301410b1bedea65d0')
console.log(e.risk.score, e.risk.level, e.axes.legal_status)package main
import (
"bytes"
"encoding/json"
"net/http"
)
func amlCheck(address, chain string) (map[string]any, error) {
body, _ := json.Marshal(map[string]any{
"addresses": []map[string]string{{"wallet_address": address, "chain": chain}},
"include": []string{"risk", "axes"},
})
resp, err := http.Post("https://intelapi.publicaml.org/v2/enrich",
"application/json", bytes.NewReader(body))
if err != nil {
return nil, err
}
defer resp.Body.Close()
var out struct{ Entities []map[string]any }
json.NewDecoder(resp.Body).Decode(&out)
return out.Entities[0], nil
}More examples and SDKs on GitHub: github.com/publicaml.
Pattern: block risky addresses before a transaction
The point of a pre-send check is to decline rather than unwind. Screen the recipient before you sign or accept funds and reject anything sanctioned or above your risk threshold.
// Pre-transaction gate: block risky recipients before you send.
async function assertClean(address, chain = 'TRON') {
const e = await amlCheck(address, chain)
const sanctioned = e.axes.legal_status?.category === 'sanction'
if (sanctioned || e.risk.score >= 75) {
throw new Error('High AML risk (' + e.risk.level + ') — transfer blocked')
}
}
await assertClean(recipient) // throws if the address is risky or unknownrisk.score is 0–100 (higher = riskier), with risk.level beside it. axes says who the address is, one answer per question: axes.business what it does (exchange, mixer, phishing…), axes.actor who runs it (hacker…), axes.legal_status sanctions. Treat axes.legal_status.category == "sanction" as an override regardless of score. An address missing from entities is listed in not_found: no data, which is not the same as clean. It is a risk signal, not a legal compliance guarantee — keep your own KYC/AML process alongside it.
Frequently asked questions
Is there a free API to check crypto AML / KYT?
Yes. PublicAML exposes a public enrich endpoint that needs no API key: POST https://intelapi.publicaml.org/v2/enrich with the address and chain, and you get back a risk score (0–100), who the address is (sanctions status, category) and its counterparties. It is a non-profit, so there is no paid tier — an optional key only raises the rate limit.
How do I check a crypto address for AML risk in Python?
POST the address and chain to the enrich endpoint with the requests library and read entities[0].risk.score and entities[0].axes (axes.legal_status for sanctions, axes.business for what the address is). See the Python example on the page — no key or account is required to start.
Which chains can I screen?
Bitcoin, Ethereum, BNB Chain and TRON. Pass the chain per address ("BTC", "ETH", "BSC", "TRON"). An ERC20 and a BEP20 address look identical, so send the correct chain for the network you are on.
How do I block sanctioned or high-risk addresses before a transaction?
Call the API before you sign or accept funds and reject the transfer when axes.legal_status.category is "sanction" or risk.score is above your threshold (75 is a common cut-off). The pre-transaction gate example on the page shows the pattern.
Do I need to handle rate limits?
For low volume, no — the public endpoint works without a key. For higher throughput, request an optional key to raise the limit and add simple retry/back-off on HTTP 429.
Start screening — free, no key
Send one request and get a risk score back. No account, no card, no API key.
