Get metrics
Summary
Section titled “Summary”Get daily numbers for your wallets, such as balances, money in and out, or risk exposure. You can split them by wallet tag, firm tag, firm, asset tag, asset, or wallet, or get one total.
Organization, firm, or wallet level
- Organization:
?metric=balance_usd&groupBy=orggives one daily line for your whole organization. You get this when you do not addgroupBy. - Firm:
?metric=balance_usd&groupBy=firmgives one daily line for each firm. For one firm only, addfirms=, for example?metric=balance_usd&groupBy=firm&firms=Bybit. You can also usefirmIds=with the firm id. - Wallet:
?metric=balance_usd&groupBy=walletgives your 10 largest wallets and one “Other” line. Change this withlimit. - The wallet count metrics
monitored_walletsandwallets_with_balancecannot be split by wallet. - A wallet linked to more than one firm counts in each of those firms. So the firm lines can add up to more than the organization total.
Quick start
?metric=balance_usd&walletTags=Hot&walletTags=Cold&days=30gives the daily balance of each wallet tag for the last 30 days.?metric=balance_usd&firmTags=Exchange&firmTags=Regulatedgives the daily balance of the wallets of each firm tag.?metric=balance_usd&groupBy=firmgives the daily balance of each firm.?metric=risk_exposure_usd&walletTags=Hotgives the money that moved to or from risky addresses each day.?metric=balance_usd&groupBy=asset&days=30gives the daily balance of your 10 largest assets, such as Bitcoin and Tether, and one line for all other assets.
Replace spaces in names with %20. Balances show the value on each day; activity metrics show what happened that day and also a total for the period.
Good to know
- Tags apply to all past days: a wallet or firm tagged today counts on every day.
- A wallet in two of the selected tags counts in both lines.
totals.distinctshows the selected tags together, each wallet counted once. - Risk categories overlap, so do not add them up. A category with no data for your wallets gives 0.
groupBy=assetandgroupBy=walletshow the 10 largest lines (change this withlimit) and put the rest in one “Other” line. Balances rank by the last day, activity by the total for the period.- When you choose assets (
assets,assetIds) or wallets (wallets), each one gets its own line and there is no Other line. Tokens with no known asset always go into Other assets. An asset with no known name shows its id. - Add
format=csvto get a spreadsheet file. - Data is complete up to yesterday (UTC). Days with no data yet are empty (null); days with data but no activity are 0.
- You can ask for up to 366 days.
Request
Section titled “Request”- HTTP Method:
GET - Endpoint Path:
/organization/metrics
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
metric | query | string | Yes | What to measure. See GET /metrics/catalog for what each one means. Allowed: balance_usd, wallets_with_balance, monitored_wallets, inflow_usd, outflow_usd, netflow_usd, incoming_transfers, outgoing_transfers, transfers, transactions, incoming_transactions, outgoing_transactions, risk_exposure_usd, risk_inflow_usd, risk_outflow_usd, risk_events, assets_held. |
walletTags | query | string | No | Wallet tag names, separated by commas. Capital letters do not matter. For a name with a comma, repeat walletTags=. |
groupBy | query | string | No | How to split results into lines. Default: by the tags, assets, or wallets you give; otherwise org, one line for your whole organization. none still works as an older name for org. Allowed: wallet_tag, firm_tag, firm, asset_tag, asset, wallet, org. |
days | query | integer | No | How many days to show, ending yesterday (UTC). From 1 to 366. Default is 30. |
from | query | string | No | The first day to show, as YYYY-MM-DD. Use instead of days. |
to | query | string | No | The last day to show, as YYYY-MM-DD. Default is yesterday (UTC). |
firmTags | query | string | No | Firm tag names, separated by commas. Capital letters do not matter. For a name with a comma, repeat firmTags=. |
firms | query | string | No | Firm names, separated by commas. Only these firms count. For a name with a comma, repeat firms=. |
assetTags | query | string | No | Asset tag names, separated by commas. Only these assets count. Works with balance, transfer, and assets_held metrics. |
assets | query | string | No | Asset names, symbols, or ids, separated by commas. Only these assets count. Works with balance, transfer, and assets_held metrics. |
wallets | query | string | No | Wallets as chain:address, separated by commas. Only these wallets count. |
limit | query | integer | No | With groupBy=asset or groupBy=wallet: lines before the Other line, 1 to 50. Not with assets or wallets. Default: 10. |
categories | query | string | No | Risk metrics only. Categories to include; any known category works. Default: defaultSelected: true categories in GET /metrics/catalog. Each wallet counts once per day, using its largest chosen category, so totals can be slightly below the exact figure. Each name counts only that category; spelling and spaces do not matter (Terrorist Financing = TerroristFinancing, Risky Escrow = Riskyescrow). |
format | query | string | No | json (default) or csv for a spreadsheet file with one row per day. Allowed: json, csv. Default: json. |
includeUntaggedWallets | query | boolean | No | Add a line for wallets with none of the selected wallet tags. Default: false. |
walletTagIds | query | string | No | Wallet tag ids, if you prefer ids to names. Do not send with walletTags. |
firmTagIds | query | string | No | Firm tag ids, if you prefer ids to names. Do not send with firmTags. |
firmIds | query | string | No | Firm ids, if you prefer ids to names. Do not send with firms. |
assetTagIds | query | string | No | Asset tag ids, if you prefer ids to names. Do not send with assetTags. |
assetIds | query | string | No | Asset ids, such as bitcoin, if you prefer ids to names. Do not send with assets. |
Response
Section titled “Response”The daily numbers you asked for.
| Field | Type | Description |
|---|---|---|
metric | string | The metric you asked for. |
unit | string | usd for dollar amounts, count for numbers of things. |
kind | string | level is a daily snapshot, like a balance; flow is a daily amount that adds up. |
groupBy | string | How the results are split into lines. |
from | string | The first day in the results. |
to | string | The last day in the results. |
membershipMode | string | Always current_tags_applied_to_history: today’s wallet tags apply to every day. |
categories | Array[string] | Risk metrics only. The risk categories included in the numbers. |
categoriesAdditive | boolean | Risk metrics only. Always false, because one transfer can have several categories. Each wallet counts once per day, using its largest chosen category, so totals can be slightly below the exact figure. Each name counts only that category. Spelling does not matter, so Risky Escrow and Riskyescrow are the same category. |
series | Array[WalletMetricSeries] | One line per wallet tag, firm tag, firm, or asset tag, or a single line for all wallets. With groupBy=asset or groupBy=wallet, the largest lines come first and the last line, __other__, adds up the rest. |
series[].key | string | The wallet tag id, firm tag id, firm id, asset tag id, asset id (such as bitcoin), wallet as chain:address, __other__, untagged, or all. |
series[].label | string | The name to show to people, such as the wallet tag, firm, or asset name (the asset id when the name is unknown), or a short wallet address. |
series[].points | Array[WalletMetricPoint] | One value for each day in the range. |
series[].points[].date | string | The day (UTC). |
series[].points[].value | number | The value on that day, in USD rounded to cents or as a whole count. Days with no data yet are empty (null); days with data but no activity are 0. |
series[].summary | WalletMetricSummary | Ready-made numbers for a line. |
series[].summary.latest | number | For balances, the value on the last complete day with data; for activity, the value on the last complete day in the range (0 if nothing happened, null if that day has no data yet). |
series[].summary.latestDate | string | The day the latest value comes from, or null if the range has no complete day with data. |
series[].summary.periodTotal | number | The sum of all days with data for flow metrics; null for level metrics, because balances do not add up. Computed before rounding, so it can differ by a few cents from the sum of the rounded daily values. |
totals | object | |
totals.distinct | Array[WalletMetricPoint] | Counts every wallet your filters select, each wallet once. With groupBy=wallet_tag, untagged wallets are added only with includeUntaggedWallets=true. With groupBy=asset_tag, each asset is counted once. With groupBy=asset or groupBy=wallet, it is the sum of all lines, including __other__. For assets_held, each asset is counted once. |
totals.distinct[].date | string | The day (UTC). |
totals.distinct[].value | number | The value on that day, in USD rounded to cents or as a whole count. Days with no data yet are empty (null); days with data but no activity are 0. |
totals.summary | WalletMetricSummary | Ready-made numbers for a line. |
totals.summary.latest | number | For balances, the value on the last complete day with data; for activity, the value on the last complete day in the range (0 if nothing happened, null if that day has no data yet). |
totals.summary.latestDate | string | The day the latest value comes from, or null if the range has no complete day with data. |
totals.summary.periodTotal | number | The sum of all days with data for flow metrics; null for level metrics, because balances do not add up. Computed before rounding, so it can differ by a few cents from the sum of the rounded daily values. |
overlap | object | How many items are in more than one selected tag, or null when results are not split by tag. |
overlap.walletsInMultipleSelectedTags | number | The number of wallets that have two or more of the selected wallet tags. |
overlap.walletsInMultipleSelectedFirmTags | number | The number of wallets whose firms have two or more of the selected firm tags. |
overlap.assetsInMultipleSelectedAssetTags | number | The number of assets that have two or more of the selected asset tags. |
freshness | object | |
freshness.latestDay | string | The last complete day (UTC) that has data, or null if there is none yet. |
freshness.includesPartialToday | boolean | true when the results include today, which is not complete and can still change. |
Set format=csv for a CSV download.
400: Something in the request is wrong. The message says what and how to fix it.401: Missing or invalid API key403: The organization does not have access to this endpoint.405: HTTP method not supported
Example Code
Section titled “Example Code”Request
curl -X GET "https://api.compliance.certik.com/organization/metrics?metric=balance_usd" \ -H "X-API-Key: YOUR_API_KEY" \ -H "X-API-Secret: YOUR_API_SECRET"Response
{ "metric": "balance_usd", "unit": "usd", "kind": "level", "groupBy": "wallet_tag", "from": "2026-09-22", "to": "2026-09-23", "membershipMode": "current_tags_applied_to_history", "series": [ { "key": "11111111-1111-4111-8111-111111111111", "label": "Hot", "points": [ { "date": "2026-09-22", "value": 2994170951.39 }, { "date": "2026-09-23", "value": 2916534541.83 } ], "summary": { "latest": 2916534541.83, "latestDate": "2026-09-23", "periodTotal": null } }, { "key": "22222222-2222-4222-8222-222222222222", "label": "Treasury", "points": [ { "date": "2026-09-22", "value": 628217279.27 }, { "date": "2026-09-23", "value": 695176617.25 } ], "summary": { "latest": 695176617.25, "latestDate": "2026-09-23", "periodTotal": null } } ], "totals": { "distinct": [ { "date": "2026-09-22", "value": 3622388230.66 }, { "date": "2026-09-23", "value": 3611711159.08 } ], "summary": { "latest": 3611711159.08, "latestDate": "2026-09-23", "periodTotal": null } }, "overlap": { "walletsInMultipleSelectedTags": 0 }, "freshness": { "latestDay": "2026-09-23", "includesPartialToday": false }}