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

Start building for free. Scale when you need to.

Free

$0/forever

Perfect for testing, prototypes, and personal projects.

  • 30 requests/min
  • All public endpoints
  • No API key needed
  • Full documentation
Start Building
Recommended

Pro

10 ICP~$23/month

For trading bots, dashboards, and production applications.

  • 1,000 requests/min
  • Production-ready rate limits
  • Usage tracking per key
  • Telegram support
Get API Key

Authentication

Free tier requires no authentication. Pro tier uses API key.

Using Your API Key

Pass your API key in the X-API-Key header with every request:

curl -H "X-API-Key: your_api_key_here" \
  https://icptokens.net/api/tokens

Endpoints

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

Tokens

List all tokens with price, market cap, volume, and 24h changes.

Token detail with price, all timeframe changes, social links, and metadata.

Lightweight token list for search autocomplete. Returns name, symbol, canister_id, and logo only.

Batch lookup of token prices at specific historical timestamps. Max 50 requests per call.

All trading pairs (markets) for a token with price and 24h volume per pair.

OHLCV candlestick data for a token across all its pools, aggregated by currency.

Token Details

All liquidity pools that include this token, with TVL, volume, and trade count.

Recent swap transactions involving this token across all its pools.

Top token holders with balance, USD value, and percentage of total supply.

Recent token transfers (sends, mints, burns) for this token.

Historical holder count over time for this token.

DEX & Discovery

DEX-level statistics: pool count, total TVL, and 24h volume per DEX.

Trending tokens ranked by volume/TVL ratio and trading activity.

Top price gainers and losers over the last 24 hours.

Recently listed tokens with their initial pool data.

Pools

All active pools sorted by 24h volume, with TVL and reserve data.

Single pool detail with TVL, volume, reserves, and fee tier.

OHLCV candlestick data for charting. Supports intervals from 1 minute to 1 month.

Recent swap transactions for a pool, paginated.

Historical TVL and volume snapshots for a pool over time.

Whale Alerts

Large transactions across all tracked pools. Filterable by minimum USD amount.

Ecosystem & Status

Platform health status: database, collector, cache freshness, and last swap timestamp.

All token tags/categories with token count per tag.

Data pipeline verification report. Shows health of all data collection processes.

TradingView Datafeed

TradingView-compatible OHLCV endpoint. Use with UDF-compatible charting libraries.

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.price_usd}`);
// Output: ICP: $2.29

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

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

Rate Limits

TierRate LimitAuth
Free30 requests/minNone required
Pro1,000 requests/minX-API-Key: your_key

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

Error Codes

CodeMeaningWhat to Do
200SuccessRequest completed successfully
401Invalid API KeyCheck your API key is correct and active
404Not FoundResource does not exist (e.g., invalid canister ID)
422Validation ErrorInvalid parameters (check the error message)
429Rate Limit ExceededWait 60 seconds or upgrade to Pro for higher limits

Ready to Build?

Get a Pro API key for 1,000 requests/min. Pay with ICP, delivered in minutes.

Get Pro Key on Telegram