Codex Data API

Codex Data API

Cryptocurrency

Real-time and historical token prices, charts and wallet data across 80+ blockchain networks and two prediction markets.

Visit APIπŸ” Alternatives
Status: UP

πŸ“š Documentation & Examples

Everything you need to integrate with Codex Data API

πŸš€ Quick Start Examples

Codex Data API Javascript Examplejavascript
// Codex Data API API Example
const response = await fetch('https://www.codex.io', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Codex Data API

Codex is a GraphQL API for enriched, real-time blockchain data: token prices, OHLCV charts, holders, balances, trades, aggregates, launchpad data, and prediction markets β€” covering 70M+ tokens and 700M+ wallets across 80+ EVM and non-EVM networks (Ethereum, Solana, Base, Arbitrum, BNB Chain, Sui, Aptos and more), with sub-second data availability. Built by the team behind Defined.fi, it powers on-chain data for Coinbase, TradingView, Uniswap, and Magic Eden.

GraphQL endpoint: https://graph.codex.io/graphql Β· WebSocket: wss://graph.codex.io/graphql

Docs: docs.codex.io Β· LLM-friendly docs: docs.codex.io/llms.txt

How to Get a Codex API Key

  1. Sign up on the Codex Dashboard β€” the Free plan needs no card.
  2. Open the API Keys page in the dashboard and copy your key.
  3. Send it in the Authorization header of GraphQL requests.

Free tier: 10,000 requests/month at 5 requests/second with 1 API key. Growth starts at $350/month for 1M requests and WebSocket/webhook access β€” see pricing.

First Request

curl https://graph.codex.io/graphql \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: YOUR_API_KEY" \
  -d '{"query": "query { getNetworks { id name } }"}'

TypeScript SDK

npm install @codex-data/sdk
import { Codex } from '@codex-data/sdk';

const codex = new Codex(process.env.CODEX_API_KEY);
const networks = await codex.queries.getNetworks({});
console.log(networks.getNetworks);

What You Can Query

Capability Details
Prices Real-time and historical USD pricing for tokens and on-chain transactions
Charts OHLCV bar data for accurate price charts
Token intel Metadata, sub-500ms token search, filters by volume/liquidity/transaction count, trending algorithm, scam filtering
Wallets Holders, balances, wallet analytics and PnL
Aggregates Real-time volume, liquidity, unique wallets
Launchpads 16 memecoin launchpads: Pump.fun, Clanker, Four.meme, Virtuals, Zora and more
Prediction markets Polymarket and Kalshi β€” events, odds, traders, charts
Streaming GraphQL subscriptions over WebSockets plus webhook alerts

For AI Agents

Codex is unusually agent-friendly:

  • MPP (Machine Payments Protocol) β€” keyless pay-per-request access over HTTP 402 at $0.001/request in USDC, no account needed (docs)
  • Codex Skills β€” npx skills add Codex-Data/skills -g --yes lets a coding agent query the API directly
  • Docs MCP server β€” plug the documentation into AI coding tools (docs)

Migration Guides

Official guides for switching from CoinGecko, Birdeye, and Dune Sim.

Get started with the Codex API β†’

⚑

Performance & Stats

A+
100%
Uptime
485ms
Avg Response
🟒
Status

Explore More

Best Codex Data API alternatives (2026)Best Cryptocurrency APIs

Related APIs in Cryptocurrency