Skip to content
REST API v2

ICP Tokens API

Real-time DeFi data for the Internet Computer ecosystem. Tokens, pools, OHLCV candles, swaps, whale alerts, and TradingView-compatible data feeds.

Base URL:https://icptokens.net/api

Pricing

One plan, and it is free. No account, no key, no credit card.

Free

$0/forever

For bots, dashboards and personal projects. ICP Tokens is a non-profit project, so the API stays free.

  • 30 requests/min per IP
  • All public endpoints
  • No API key, no sign-up
  • Full documentation
Browse Endpoints

Authentication

None. Every endpoint is public.

Just call the URL

No API key, no token, no sign-up. A plain HTTPS GET request is all it takes:

curl https://icptokens.net/api/tokens

Good to Know

Three things to check before you build on the API.

Data freshness

All trade data comes from ICPSwap. If their indexer pauses, our data goes stale until it recovers. Check /api/v2/status → swapAge (seconds since the newest swap) before trusting a price as live.

Servers, not browsers

The API is for servers, bots and scripts. Browser requests from other websites are blocked by CORS. For a website, use our embeddable chart or call the API from your own server.

Rate limit

30 requests per minute per IP. Every response carries X-RateLimit-Limit and X-RateLimit-Remaining; over the limit you get 429. Cache what you can — prices change once a minute at most.

Endpoints

All endpoints return JSON. Paginated endpoints support page and per_page parameters.

Tokens

All listed tokens ranked by fully diluted market cap, with price, FDMC, volume and price change in USD and ICP. Without a page parameter the response is a plain JSON array; with ?page=N it is a paginated object.

One token with its metrics, description, official links, token standard and best pool.

Lightweight list of all listed tokens for search boxes: name, display name, symbol, canister ID and logo file name only.

Batch lookup of token prices closest to given moments in time. JSON body, up to 50 lookups per call.

Where the token trades: one entry per DEX with its price and 24h volume in ICP and USD. Currently ICPSwap only.

OHLCV candles for a token across all its pools, priced in the given currency (usd or icp). Candles are returned oldest first.

Token Details

All active pools that include this token, largest TVL first, with 24h volume and trade count.

Latest swaps involving this token across all its pools, newest first.

Holders of the token, largest first: balance, USD value at the current price and share of total supply. holder_count = accounts (principal + subaccount) with a balance above zero. source "ledger": from our own copy of the token's ledger — every holder, updated every minute, labeled from primary sources, with the supply split by account type (composition, page 1). source "external": ICExplorer or the official IC dashboard, updated daily, top holders only — used for tokens whose balances in our copy are not proven exact by the nightly check. source "ledger_count": the count from our copy, proven every night by reading every account from the ledger (its supply differs slightly from its blocks) — holders empty, holders_note says why. When no count is possible (GRAVE, XTC) holder_count is null and holders_note gives the reason. source "token": DRC20 tokens (OT) — holder_count as the token's own ledger reports it (drc20_holdersCount, accounts with a balance above zero), read hourly; holders empty, holders_note says why. ICP: holder_count from our copy of the ICP ledger (source "ledger"), holders empty and holders_note says why — the largest ICP accounts cannot be attributed (no public registry of NNS neuron or exchange accounts).

Every ledger transfer of the token (transfer, mint, burn), newest first, from our own copy of its ledger (every block, updated within seconds). from is null for mints, to is null for burns.

Daily on-chain activity of the token from our own copy of its ledger, every UTC day since its first block: active accounts (sent, received, minted to or burned), senders, receivers, new accounts (first balance change ever), transfers, mints, burns, volume (tokens moved by transfers) and holders at the end of the day. days = complete days of the range (quiet days included with zeros); today = the day so far (updated every 5 minutes); summary = last 30 complete days (window_days; fewer for a token younger than 30 days) and the 30 before (previous, null without a full 30). Accounts, not people.

Daily holder-count snapshots (taken at 03:30 UTC), oldest first, plus the current count. From 2026-10-24 the count of most tokens comes from our own ledger copy (see /holders, source); earlier days come from the external index, so a step on that day is the change of source, not of holders.

DEX & Discovery

Per-DEX totals: pools we track, pools holding liquidity, pools traded in 24h, tokens in those pools, TVL, 24h volume and 24h trade count, plus the all-time swap count we have indexed.

Trending pools (not tokens): the most actively traded pools ranked by 24h volume divided by TVL.

Listed tokens with the biggest 24h price gains and losses (USD).

Recently created pools we started tracking (TVL above $100), newest first, with the pool and its new token. Pools with a denylisted (deprecated) token on either side, or flagged as spam, are excluded. Not filtered by our listing criteria: use is_published to tell listed tokens from unlisted ones.

Pools

Active pools with liquidity, sorted by TVL (default), 24h volume or 24h trade count.

One pool with reserves, TVL, 24h volume, fee tier, last price and both tokens. The pool object is wrapped in data.

OHLCV candles for one pool, oldest first. Intervals without trades are skipped, so consecutive candles are not always one interval apart.

Latest swaps in one pool, newest first.

Whale Alerts

Large swaps across all tracked pools in the last hours, newest first, plus a summary of the whole window.

Smart Money

The wallets with the highest realized token profit on ICPSwap over 7, 30 or 90 days. Rebuilt once a day.

On-chain (ICP & token ledgers)

ICP minted (node-provider rewards, neuron maturity) vs burned (cycles, fees) and the ICP supply, from our own copy of the ICP ledger (every block since genesis) and the official node-provider payouts. Checked every hour against DFINITY's ledger API (the running totals and each of the last three full UTC days). Node-provider payouts come from NNS governance within the hour they are minted, then are confirmed by DFINITY's IC API. Today so far is included live.

Network compute: DFINITY's cycle burn rate (cycles consumed per second by all subnets, cloud engines included) next to the ICP burned on the same days from our copy of the ICP ledger. Copied every hour — the last hour from the ICP dashboard's on-chain collector (canister gsmzf-bqaaa-aaaam-ajeyq-cai), daily averages from DFINITY's IC API (ic-api.internetcomputer.org) — their figures, not our measurement.

Large ICP and ICRC token transfers from our own copy of the ledgers (every block), valued at the time of each transfer. Labels only from primary sources, the same as the token holders lists: DEX pools (ICPSwap, KongSwap), SNS DAO treasuries, staked neurons and canisters, minting accounts and protocol canisters (NNS, chain-key minters) — label, kind and group per side; exchange accounts are not labeled.

One address: type (principal, canister or ICP account ID), a provable label, its real balances in ICP and the listed ICRC tokens from our own copy of the ledgers (all subaccounts of a principal), valued at the live price, and its activity span.

Every ICP / ICRC ledger entry of one address (transfers in and out, mints, burns, approvals), newest first, 50 per page, filtered on the server over the whole history.

Daily value of one address's holdings (the Track Wallets tab of Portfolio): for every UTC day, the balances at the end of the day from our own copy of the ledgers × that day's close of each token's chart; the last day (partial) at live prices.

Ecosystem & Status

Platform health: database, swap collector, cache freshness and the age of the newest swap in seconds. Check swapAge before trusting “real-time” data.

Token tags (categories) with the number of listed tokens per tag.

Data pipeline self-check: counts of passed, warning and failed checks with one line per check.

TradingView Datafeed

TradingView UDF-style candles (arrays of time, open, high, low, close, volume). currency is usd or icp.

Quick Start

Get token prices and OHLCV data in just a few lines of JavaScript.

javascript
// Fetch token price
const response = await fetch(
  'https://icptokens.net/api/tokens/ryjl3-tyaaa-aaaaa-aaaba-cai'
);
const token = await response.json();

console.log(`${token.symbol}: $${token.metrics.price.usd}`);
// Output: ICP: $3.165

// Fetch hourly candles for the CHAT/ICP pool (id 849)
const candles = await fetch(
  'https://icptokens.net/api/v2/pools/849/ohlcv?interval=1h&limit=100'
);
const { data } = await candles.json();

data.forEach(c => {
  console.log(
    `${c.interval_timestamp} O:${c.open} H:${c.high} L:${c.low} C:${c.close}`
  );
});

Rate Limits

TierRate LimitAuth
Free30 requests/min per IPNone required

Rate limit exceeded? Watch the X-RateLimit-Remaining header. Requests over the limit receive a 429 Too Many Requests response with a Retry-After header.

Error Codes

CodeMeaningWhat to Do
200SuccessRequest completed successfully
404Not FoundResource does not exist (e.g., invalid canister ID)
422Validation ErrorInvalid parameters (check the error message)
429Rate Limit ExceededWait for the Retry-After period, then slow down your polling or cache responses

Ready to Build?

The API is free and will stay free. Questions, bug reports or a project that needs a higher limit? Reach us on Telegram.

Ask on Telegram