Blockchain Analytics API for Developers

Integrate wallet risk scoring, fund flow tracing, and compliance screening into your app, bot, or compliance workflow. Simple REST API with predictable per-request pricing. One endpoint, full analysis, 23 networks.

API Capabilities

Address Risk Scoring

Pass any address, get a 0-100 risk score with risk level (LOW/MEDIUM/HIGH/CRITICAL), pattern flags, and detailed breakdown.

Fund Flow Tracing

Get inbound and outbound fund flows with labeled counterparties. Track exchange deposits, DeFi interactions, and bridge transfers.

Label Database (510K+)

Every response is enriched with labels from our database: exchange hot/cold wallets, known scammers, protocol contracts, and VASP entities.

Sanctions Screening

OFAC SDN list, known exploiter addresses, ScamSniffer blacklists, and Chainabuse reports checked automatically on every request.

Cross-Chain Detection

Automatic bridge transfer detection across 23 networks. Follow funds that hop between Ethereum, Arbitrum, Optimism, and more.

Webhook Alerts

Monitor addresses via the watchlist API. Receive real-time webhook notifications with HMAC signatures when new transactions appear.

Quick Start

cURLREST API
curl -X POST https://api.onchainrisk.io/api/v1/check \
  -H "Authorization: Bearer ocr_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"address": "0x722122dF12D4e14e13Cf261CbaE0587c9e5b6967"}'
Response (shortened)
{
  "riskScore": 55,
  "riskLevel": "high",
  "network": "eth",
  "label": "Tornado Cash: Router",
  "patternFlags": ["TRANSIT_WALLET", "KNOWN_MIXER"],
  "topCounterparties": [...],
  "crossChain": { "bridgeTransfers": 3 },
  "exchangeDeposits": { "total": 12, "exchanges": [...] },
  "osintIntelligence": { "sanctions": true, "chainabuse": 47 }
}

Language Examples

Python
import requests

resp = requests.post(
    "https://api.onchainrisk.io/api/v1/check",
    headers={"Authorization": "Bearer ocr_live_xxx"},
    json={"address": "TXyz..."}
)
data = resp.json()
print(f"Risk: {data['riskScore']}/100")
JavaScript / Node.js
const resp = await fetch(
  "https://api.onchainrisk.io/api/v1/check",
  {
    method: "POST",
    headers: {
      "Authorization": "Bearer ocr_live_xxx",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      address: "0x722122dF..."
    }),
  }
);
const data = await resp.json();
console.log(`Risk: ${data.riskScore}/100`);

API Features

Auto chain detection (just pass the address)
Full analysis in a single API call
JSON response with structured data
23 networks supported
Watchlist API for address monitoring
Webhook alerts with HMAC signatures
Bulk analysis via CSV upload (Business tier)
Rate limiting with clear headers
API key management in dashboard
OpenAPI/Swagger documentation

API Pricing

Free

$0/mo

For testing and evaluation

  • 25 requests/month
  • All 23 networks
  • Basic risk score
  • No API key
Recommended

Pro

$49/mo

For developers and small teams

  • 500 requests/month
  • 1 API key
  • 10 req/sec rate limit
  • Full analysis response
  • Email alerts

Business

$249/mo

For companies and compliance teams

  • 2,000 requests/month
  • 10 API keys
  • 50 req/sec rate limit
  • Webhook alerts (HMAC)
  • Bulk CSV analysis

Pay with USDT (TRC-20 or ERC-20). No KYC, no bank account needed. Instant activation.

Common Integrations

Compliance Automation

Screen every incoming deposit or withdrawal against sanctions lists and risk scores. Flag high-risk transactions for manual review.

Trading Bots

Check counterparty wallets before executing OTC trades. Avoid wallets linked to hacks, scams, or sanctioned entities.

Wallet Providers

Show risk scores to users before they send funds to unknown addresses. Add a safety layer to your wallet UX.

Investigation Platforms

Build custom investigation tools on top of OnChainRisk data. Get risk scores, fund flows, and labels via API.

Start Building with the API

Create an account, generate your API key, and make your first request in under 5 minutes.