Authentication
Every call to the BlockchainAnalysis.io API carries an API key in the Authorization header:
curl -X POST https://blockchainanalysis.io/api/v1/screening \
-H "Authorization: Bearer ba_live_..." \
-H "Content-Type: application/json" \
-d '{"address": "0x28C6c06298d514Db089934071355E5743bf21d60", "chain": "ETH"}'
The base URL is https://blockchainanalysis.io/api/v1. There is no separate sandbox and no test key: every call is real and is billed as described in Billing and free tiers.
Create a key
- In the sidebar, open BA | API → Overview & Keys.
- Create a key and give it a name.
- Copy it: the full key is shown only once. We keep a hash, so it can't be shown again.
Keys start with ba_live_. You can have up to 10 active keys. Revoke a key from the same page; a revoked key stops working at once.
Keep keys on your server. Don't put them in a browser, a mobile app or a public repository.
Permissions
Each key carries permissions that decide which endpoints it can call:
| Permission | Endpoints |
|---|---|
screening | Wallet screening, Fund Trace, name check, KYB, BA Screen bulk |
kyt | KYT |
entity | Entity lookup, exchange status, country risk, ENS, address validation, token price |
intel | BA | Intel: screen, bulk screen, labels, sanctions check |
oracle | BA | Oracle verdicts |
monitoring | Monitored wallets and alerts |
investigate | Dupin investigations |
A key created in BA | API gets all of them. Keys created from a product page (for example BA | KYT → API integration) get only that product's permission. Permissions can't be added to an existing key, except intel, which you can switch on or off for a key; otherwise create a new one.
A permission doesn't spend anything by itself: what a call costs comes from the balance of that product.
Errors
| Code | Meaning |
|---|---|
| 401 | Missing, malformed, revoked or expired key. The header must be Authorization: Bearer ba_live_... |
| 403 | The key doesn't have the permission this endpoint needs. The message names it |