Guides / Getting started

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 every launch, trade and migration on pump.fun and PumpSwap, computes the same signal set offline and live, and exposes it over REST and WebSocket. You connect from your own bot, from a notebook, or from an AI assistant via the MCP connector.

Get your API key

Create an account and open Dashboard → API Keys. New accounts get 250 free credits, no card required. Keys come in two flavours, a afk_test_… key for development and an afk_live_… key for production.

Your first request

bash
curl https://api.data.afk.fun/v1/tokens/new \
  -H "Authorization: Bearer afk_live_a3f…"
Note Reading new launches and the firehose is free. Pulling history rows and running backtests spends credits, see the model below.

The credit model

One meter, three things to spend on. Everything else is free.

1 credit
10,000 live stream events
1 credit
10,000 history rows
25 credits
1 backtest run

Free, always: the firehose, signals, connections and deploy.