streaming
Every launch, trade and migration, the moment it hits the chain.
A real-time WebSocket stream of pump.fun & PumpSwap activity, including filtered trade, signal and price channels. Access and metering depend on the selected stream and current pricing configuration.
live · stream
new launches · ~0.95s30 signals computed livestreaming · live
the stream
Subscribe with a channel string. Get structured events back.
A real-time stream of launches, trades and migrations from pump.fun & PumpSwap, over WebSocket, the moment they hit the chain.
stream
The full raw stream — every trade, launch and migration. Free with an active paid plan.
events.create / events.migration
Every new pump.fun token and every pump.fun → PumpSwap graduation.
trades.mint / trades.wallet
Buys and sells filtered to one token, or copy-trade a wallet. Metered.
signals.mint / price.mint
Per-swap signal frames and latest-tick price/OHLC for one token. Metered.
javascript
// Server-side Node.js. Never expose AFK_DATA_KEY in a browser bundle.
const ws = new WebSocket("wss://data.afk.fun/streams/v1");
ws.onopen = () => {
ws.send(JSON.stringify({ type: "auth", key: process.env.AFK_DATA_KEY }));
};
ws.onmessage = (e) => {
const msg = JSON.parse(e.data);
if (msg.type === "status" && msg.authed) {
ws.send(JSON.stringify({ type: "subscribe", stream: "events.create" }));
ws.send(JSON.stringify({ type: "subscribe", stream: "signals.mint", key: "So1anaMint…" }));
}
if (msg.type === "event") {
// msg.seq is contiguous per subscription — a jump means missed events.
console.log(msg.seq, msg.kind, msg.payload);
}
};Note The raw stream channel requires an active paid plan while it is unmetered; filtered and enriched channels are metered. Read GET /v1/pricing for the current denomination and raw-stream mode. Each subscription carries its own contiguous seq for gap detection, and GET /v1/data_status reports per-stream ingestion lag. Partial metered-event remainders carry forward across gateway flushes rather than rounding up per flush.
live
Watch launches and graduations, live off your own key.
Paste an afk_live_ key from your dashboard — it stays in this tab and is only sent to the gateway. This demo subscribes to events.create and events.migration (unmetered).
Plug the real-time stream into your bot.
Create a key in the dashboard — new accounts start with 250 free credits.