Getting started
AFK Data is one credit-metered API for real-time Solana market data, 30 computed signals, historical snapshots and reproducible backtesting. This page gets you from zero to your first response.
What is AFK Data
It ingests launches, trades, and migrations on pump.fun and PumpSwap and exposes documented data over REST and WebSocket. You connect from your own bot, from a notebook, or from an automation client through the documented REST and WebSocket APIs.
Get your API key
Create an account and open Dashboard → API Keys. New accounts get 250 free credits, no card required. Your key is an afk_live_… secret — treat it like a password.
Your first request
curl "https://api.afk.fun/v1/tokens/new?limit=3"
That one is keyless. Your first authenticated call — grab a pairAddress from the response above and pull its history with your key:
curl -H "Authorization: Bearer afk_live_a3f…" \ "https://api.afk.fun/v1/history/pumpfun/sol/PAIR_ADDRESS?limit=5"
The credit model (current defaults)
One meter, three things to spend on. Everything else is free.
These are current configured defaults, not permanent constants. Read GET /v1/pricing before estimating cost. Create and migration events are free; filtered trade, signal and price streams are metered, and raw-stream access depends on current configuration.