Skip to content

Callout stream

GET /home-feed/new/stream pushes every new callout on the New feed to you as it appears. Use it in place of polling GET /home-feed/new: fetch that route once for the current page, then read the stream for what arrives after. For callouts of the past, read Callout history.

  • URL: https://api.pump.fun/v1/home-feed/new/stream
  • Scope: content.read
  • Response: text/event-stream (Server-Sent Events)
  • Parameters: none. The stream carries every chain with no filter; filter on your side.
  • Open at once: 2 connections per key.
  • Connection life: 5 to 5.5 minutes, then reconnect (see Reconnecting and resuming).
Terminal window
curl -N https://api.pump.fun/v1/home-feed/new/stream \
-H "Authorization: Bearer $PUMP_API_KEY"

The key is sent the same way as on every other route (see Authentication). A 200 opens the stream:

HTTP/1.1 200 OK
Content-Type: text/event-stream; charset=utf-8
Cache-Control: no-store, no-transform
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 119
X-RateLimit-Reset: 1767225601
X-Request-Id: 7d1f0a2e-5b8c-4b1e-9a7f-2c3d4e5f6a7b
x-pump-api-key-id: 3f9c2b1a-4d5e-4f60-8a7b-9c0d1e2f3a4b

A new connection starts from now. It replays nothing unless you send Last-Event-ID. The stream records callouts only while a connection is open and for about 30 seconds after the last one closes, so hold a connection open rather than connecting now and then. The X-RateLimit-* headers describe the key at the moment of connecting and do not change while the stream is open.

A refused connection is an ordinary JSON error, before any event is sent: the 401, 403, 429 and 503 answers described in Errors and Limits and headers, plus the stream’s own two 429 answers below.

The stream opens with retry: 2000, the reconnect delay in milliseconds that standard clients apply. After that it sends:

Frame data What to do
event: callout One callout, as a JSON object on one line. Handle it. Remember the frame’s id.
event: reset {"reason":"expired"}, {"reason":"restarted"} or {"reason":"overflow"} Some callouts were not sent on this stream. Read GET /home-feed/new again, and keep reading the stream.
event: limit {"limit":250000,"resetAt":"2026-01-02T00:00:00.000Z","retryAfterMs":3600000} The key reached its daily cap of delivered callouts and the stream ends. Reconnect after resetAt.
: ping None (a comment line). Nothing. It arrives every 15 seconds so the connection is never silent for longer.
: closing, reconnect with Last-Event-ID None (a comment line). The server is about to end the connection. Reconnect and resume.

data is the same object as one element of coins in the response of GET /home-feed/new called with no query parameters. Its fields are listed under that route in the API reference. id is the event’s position in the stream.

On the wire, with data shortened here to a few of its fields (the real line holds the whole object):

retry: 2000
id: 1767225600123-0
event: callout
data: {"coinMint":"…","coinName":"…","symbol":"…","chain":"…","marketCap":41250.5,"position":{"userId":"…","userName":"…","callout":{…}}}
: ping
id: 1767225618456-0
event: callout
data: {"coinMint":"…","coinName":"…","symbol":"…","chain":"…","marketCap":9800,"position":{"userId":"…","userName":"…","callout":{…}}}
  • Events arrive in feed order, oldest first, usually a few seconds after the callout appears on the feed.
  • A callout is sent once per connection.
  • Each object is a snapshot taken when the callout was added to the stream: figures such as marketCap and the position values are as of that moment. A callout that is removed from the feed afterwards is not retracted on the stream.

All three reasons ask for the same thing, one fresh read of GET /home-feed/new:

reason Meaning
expired The Last-Event-ID you sent can no longer be resumed from. The stream continues live from now.
restarted The stream had not been recording, either because nothing was connected to it for a while or because it was interrupted on our side. Callouts created during that gap were not sent. Expect this shortly after connecting when no other connection was open.
overflow More callouts arrived at once than the stream carries in one step, and some were skipped.

The server ends every connection after 5 to 5.5 minutes, with the : closing comment as its last line. A connection can also end without that line, for example during a deployment on our side. Treat every end the same way: reconnect and resume.

To resume, send the id of the last event you received as the Last-Event-ID request header:

Terminal window
curl -N https://api.pump.fun/v1/home-feed/new/stream \
-H "Authorization: Bearer $PUMP_API_KEY" \
-H "Last-Event-ID: 1767225618456-0"
  • The stream replays every event after that id, then continues live, so nothing is missed across the reconnect.
  • If the id is no longer held, or the first event after it is more than 10 minutes old, the stream sends one reset event with reason expired and continues live from now.
  • Without the header the stream starts from now.
  • If no line at all arrives for 30 seconds (two missed pings), drop the connection and reconnect.

A key that is revoked, an organisation that is suspended, a removed scope or a changed limit takes effect at the stream’s next reconnect, so within 5.5 minutes.

Node 20 or newer, no dependencies. It resumes with Last-Event-ID, waits out Retry-After on a 429 or 503, and stops at a limit event.

const url = 'https://api.pump.fun/v1/home-feed/new/stream';
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
let lastEventId;
function onCallout(callout) {
console.log(callout.symbol, callout.coinMint);
}
async function rereadFeed() {
// A reset event: call GET /home-feed/new once and reconcile with what you hold.
}
async function readOnce() {
const res = await fetch(url, {
headers: {
Authorization: `Bearer ${process.env.PUMP_API_KEY}`,
Accept: 'text/event-stream',
...(lastEventId ? { 'Last-Event-ID': lastEventId } : {}),
},
});
if (res.status === 429 || res.status === 503) {
await sleep(Number(res.headers.get('retry-after') ?? 5) * 1000);
return true;
}
if (!res.ok) throw new Error(`stream refused: ${res.status} ${await res.text()}`);
const decoder = new TextDecoder();
let buffer = '';
for await (const chunk of res.body) {
buffer += decoder.decode(chunk, { stream: true });
let end;
while ((end = buffer.indexOf('\n\n')) !== -1) {
const frame = buffer.slice(0, end);
buffer = buffer.slice(end + 2);
let event = 'message';
let data = '';
for (const line of frame.split('\n')) {
if (line.startsWith('event: ')) event = line.slice(7);
else if (line.startsWith('data: ')) data += line.slice(6);
else if (line.startsWith('id: ')) lastEventId = line.slice(4);
}
if (event === 'callout') onCallout(JSON.parse(data));
else if (event === 'reset') await rereadFeed();
else if (event === 'limit') return false;
}
}
return true; // the server ended the connection: reconnect and resume
}
while (await readOnce()) await sleep(2000);

Connections. A key can hold 2 open stream connections at once. One more is refused with 429, Retry-After: 10 and this body:

{
"statusCode": 429,
"timestamp": "2026-01-01T00:00:00.000Z",
"path": "/home-feed/new/stream",
"error": "API_KEY_STREAM_LIMIT",
"retryAfterMs": 10000,
"limit": 2,
"message": "This key already holds 2 open streams; end one before opening another"
}

Close a connection you no longer read. A connection that died without closing can keep its place for up to 45 seconds.

Requests. Opening a connection is one request against the same two limits as every other route (see Limits and headers): it takes one from the rate bucket and one from the daily limit. The events a connection delivers are not requests. They do not touch the rate bucket or the daily request limit.

Delivered callouts. Delivered callout events have a cap of their own: 250,000 delivered callouts per key per UTC day, counted across the key’s connections, including events replayed after a Last-Event-ID.

  • When the cap is reached the stream sends the limit event and ends. A connection can be sent up to 25 callouts past the cap before it ends.
  • The cap is separate from the daily request limit: delivered callouts do not use up requests, and the key’s other requests keep working after the cap is reached.
  • Until 00:00 UTC a new connection is refused with 429, a Retry-After of the seconds left until then, and this body:
{
"statusCode": 429,
"timestamp": "2026-01-01T18:00:00.000Z",
"path": "/home-feed/new/stream",
"error": "API_KEY_STREAM_DAILY_LIMIT",
"retryAfterMs": 21600000,
"limit": 250000,
"resetAt": "2026-01-02T00:00:00.000Z",
"message": "This key was already sent its 250000 stream callouts for today; the count resets at 00:00 UTC"
}

Reconnect after resetAt.

The usage chart in the developer console counts a stream connection as one request. Delivered callouts are not requests and are not shown in that chart.