Cookbook
This page provides ready-to-use tools and code examples to help you start using the Arkham API quickly. Whether you prefer a visual interface or copy-paste code snippets, we have options for different workflows.
What's here:
- Postman Collection — Import into Postman and start making requests immediately, no coding required
- Code Snippets — Minimal Python and curl examples you can copy directly into your projects
All tools come pre-configured with example addresses and sensible defaults so you can test the API right away.
Postman Collection
Postman is a free API client that lets you explore and test APIs without writing code. It's the fastest way to start making requests — add your key in the Variables tab and click Send.
What you get: every endpoint in the public API, grouped by API resource, each pre-filled with a working example and a sample response
POST /ws/v2/streams, etc.). Postman does support WebSocket requests, but live transfer streaming needs a session created first — the Python snippet below handles the full connect-and-stream flow.Get the collection
Open the Arkham Intel API collection on Postman ↗ — fork it into your own workspace to get an editable copy.
Prefer a file? Download Collection JSON ↓ — it also imports into Insomnia, Bruno and other API clients, or drop it straight into CI.
Setup Instructions
1. Fork the collection above, or download the JSON
2. If you downloaded, open Postman and click Import, then select the file — a fork is already in your workspace
3. Select the collection in the sidebar and open its Variables tab
4. In the apiKey row, paste your API key into the Value column
5. Start exploring endpoints in the Collections sidebar

The collection defines baseUrl and apiKey on itself, so it sends requests without an environment file.
Quick Code Examples
REST: Get Address Intelligence
Python:
import requests
API_KEY = "your-api-key"
address = "0x28C6c06298d514Db089934071355E5743bf21d60" # Binance
response = requests.get(
f"https://api.arkm.com/intelligence/address/{address}",
headers={"API-Key": API_KEY}
)
print(response.json())curl:
curl -H "API-Key: YOUR_KEY" \
"https://api.arkm.com/intelligence/address/0x28C6c06298d514Db089934071355E5743bf21d60"REST: Get Recent Transfers
Python:
import requests
API_KEY = "your-api-key"
response = requests.get(
"https://api.arkm.com/transfers",
headers={"API-Key": API_KEY},
params={
"base": "0x28C6c06298d514Db089934071355E5743bf21d60", # Binance
"timeLast": "1h",
"limit": 10
}
)
print(response.json())curl:
curl -H "API-Key: YOUR_KEY" \
"https://api.arkm.com/transfers?base=0x28C6c06298d514Db089934071355E5743bf21d60&timeLast=1h&limit=10"REST: Follow a Transfer Across a Bridge
A transaction that paid into a bridge lists the bridge with the chain and address it paid out to. See Tracking Funds Through Bridges.
Python:
import requests
API_KEY = "your-api-key"
response = requests.get(
"https://api.arkm.com/tx/0xca6eb0b70f50f6626538ce425b2758bfb1fe78f74420b3612d2dfbce937bff71",
headers={"API-Key": API_KEY},
)
for tx in response.json().values():
for bridge in tx.get("bridges", []):
dest = bridge.get("destination", {})
print(bridge["protocolName"], bridge["status"], dest.get("chain"), dest.get("address"))curl:
curl -H "API-Key: YOUR_KEY" \
"https://api.arkm.com/tx/0xca6eb0b70f50f6626538ce425b2758bfb1fe78f74420b3612d2dfbce937bff71"WebSocket v2: Stream Real-Time Transfers
You create a stream with your filter via REST, then connect via WebSocket to receive matching transfers.
GET /transfers (base, from, to, chains, tokens, usdGte, usdLte, valueGte, valueLte). The difference is that POST /ws/v2/streams accepts them as a JSON request body with arrays, while GET /transfers uses query parameters.base, from, to, tokens, or usdGte >= 250,000.Step 1: Create a stream with your filter (JSON body)
import requests
API_KEY = "your-api-key"
# Create a stream that monitors CEX withdrawals >= $10k
response = requests.post(
"https://api.arkm.com/ws/v2/streams",
headers={"API-Key": API_KEY},
json={"from": ["type:cex"], "usdGte": "10000"}
)
print(response.json())
# {"streamId": "e561dd5b-a24d-4669-bbba-9e5cf37d5125", "id": 1, "createdAt": "..."}Step 2: Connect and receive transfers
import asyncio
import json
import websockets # requires websockets>=13; older versions use extra_headers
API_KEY = "your-api-key"
STREAM_ID = "e561dd5b-a24d-4669-bbba-9e5cf37d5125" # the streamId returned by POST /ws/v2/streams in step 1
async def stream_transfers():
url = f"wss://api.arkm.com/ws/v2/transfers?stream_id={STREAM_ID}"
headers = {"API-Key": API_KEY}
# Reconnecting reuses the same stream — you do not need to create a new one.
while True:
try:
async with websockets.connect(url, additional_headers=headers) as ws:
# Transfers are delivered automatically — no subscribe message needed.
# Each message is an envelope: {"type": "transfer", "payload": {"transfer": {...}, "alertId": N}}
async for message in ws:
data = json.loads(message)
if data.get("type") == "transfer":
transfer = data["payload"]["transfer"]
print(transfer)
except (websockets.WebSocketException, OSError):
print("connection lost, reconnecting...")
await asyncio.sleep(1)
asyncio.run(stream_transfers())Managing streams:
import requests
API_KEY = "your-api-key"
STREAM_ID = "e561dd5b-a24d-4669-bbba-9e5cf37d5125"
headers = {"API-Key": API_KEY}
# List your streams
print(requests.get("https://api.arkm.com/ws/v2/streams", headers=headers).json())
# Delete a stream
print(requests.delete(f"https://api.arkm.com/ws/v2/streams/{STREAM_ID}", headers=headers).json())WebSocket Filter Reference
WebSocket stream filters are sent as a JSON request body on POST /ws/v2/streams.
base(string[]) — Entity names or wallet addresses to monitor (sender or receiver)from(string[]) — Source addresses, entities, or special syntax (type:cex,deposit:binance)to(string[]) — Destination addresses, entities, or special syntaxtokens(string[]) — Token IDs (e.g.ethereum,usd-coin) or contract addresses. Ticker symbols likeUSDCare not acceptedchains(string[]) — Blockchains to filter by (e.g.ethereum,solana)usdGte/usdLte(number) — USD value rangevalueGte/valueLte(number) — Raw token amount range
Filter Requirements: You must include at least one of:
base,from,to, ortokensfilter, ORusdGte >= 250,000
Troubleshooting
Common Errors
| Error | Solution |
|---|---|
| Error validating API key | Check your key is correct. Use API-Key header, not Authorization. |
| Filter requirement not met | WebSocket needs base, from, to, tokens, or usdGte ≥ 250K |
| HTTP 401 Unauthorized | Invalid or expired API key |
| HTTP 429 Too Many Requests | Rate limited — back off and retry. See the Rate Limits guide for per-plan limits. |
More Resources
- API Reference: API Reference
- Request API Access: arkm.com/api
- Support: [email protected]