> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Pump.fun API: New Tokens, Bonding Curves, Graduation

> Follow Pump.fun tokens from launch to bonding curve completion and migration. Load snapshots over REST and stream launches and graduations live.

Follow a Pump.fun token from its first indexed pool through curve completion and migration. Use REST to load a snapshot and Datastream to receive new launches and graduation events.

## Lifecycle overview

The API separates creation, curve progress, and migration:

1. **Created** — the token launches on the bonding curve.
2. **Graduating** — the bonding curve fills up from 0–100%.
3. **Graduated** — the curve is complete, and liquidity moves to a DEX pool.

You can track each stage with REST endpoints, real-time WebSocket streams, or both.

## Find new Pump.fun tokens

### REST: latest tokens

```bash theme={null}
curl "https://data.solanatracker.io/tokens/latest" \
  -H "x-api-key: YOUR_API_KEY"
```

Filter the response by `pools[0].market` to isolate Pump.fun tokens:

```javascript theme={null}
const headers = { "x-api-key": "YOUR_API_KEY" };

const latest = await fetch(
  "https://data.solanatracker.io/tokens/latest", { headers }
).then(r => r.json());

const pumpfun = latest.filter(t => t.pools?.[0]?.market === "pumpfun");
console.log(`${pumpfun.length} new Pump.fun tokens`);
```

### REST: search with filters

Use the [search endpoint](https://docs.solanatracker.io/data-api/search/token-search.md) to find Pump.fun tokens with specific criteria:

```bash theme={null}
# Pump.fun tokens with >50% curve, has socials, >$1k liquidity
curl "https://data.solanatracker.io/search?launchpad=pumpfun&minCurvePercentage=50&hasSocials=true&minLiquidity=1000" \
  -H "x-api-key: YOUR_API_KEY"
```

Key search filters for Pump.fun:

| Parameter | Description |
| - | - |
| `launchpad` | `pumpfun`, or comma-separated for multiple |
| `market` | `pumpfun` for bonding curve, `pumpfun-amm` for graduated |
| `status` | `graduating` or `graduated` |
| `minCurvePercentage` | Minimum bonding curve % (0–100) |
| `maxCurvePercentage` | Maximum bonding curve % (0–100) |
| `minGraduatedAt` | Only tokens graduated after this timestamp (ms) |
| `maxGraduatedAt` | Only tokens graduated before this timestamp (ms) |

### REST: tokens by deployer

Find all tokens launched by a specific wallet:

```bash theme={null}
curl "https://data.solanatracker.io/deployer/{wallet}?launchpad=pumpfun" \
  -H "x-api-key: YOUR_API_KEY"
```

### WebSocket: live feed

Subscribe to new indexed tokens, then keep Pump.fun rows:

```javascript theme={null}
const ws = new WebSocket("wss://datastream.solanatracker.io/YOUR_API_KEY");

ws.onopen = () => {
  ws.send(JSON.stringify({ type: "join", room: "latest" }));
};

ws.onmessage = (event) => {
  const msg = JSON.parse(event.data);
  if (msg.type !== "message") return;

  const { token, pools } = msg.data;
  if (pools[0]?.market !== "pumpfun") return;

  console.log(`New Pump.fun: ${token.name} (${token.symbol})`);
  console.log(`  Mint: ${token.mint}`);
  console.log(`  Deployer: ${pools[0]?.deployer}`);
};
```

## Track bonding curve progress

### REST: graduating tokens

Query tokens approaching bonding curve completion:

```bash theme={null}
# Tokens with curve > 60%, at least 20 holders
curl "https://data.solanatracker.io/tokens/multi/graduating?minCurve=60&minHolders=20" \
  -H "x-api-key: YOUR_API_KEY"
```

| Parameter | Description | Default |
| - | - | - |
| `limit` | Number of tokens (max 500) | 100 |
| `minCurve` | Minimum curve % | 40 |
| `maxCurve` | Maximum curve % | 100 |
| `minHolders` | Minimum holder count | 20 |
| `markets` | Filter by market (comma-separated) | all |
| `minLiquidity` | Minimum liquidity (USD) | — |
| `minMarketCap` | Minimum market cap (USD) | — |
| `reduceSpam` | Filter out quick-graduated spam | — |

### WebSocket: graduating stream

```javascript theme={null}
// All graduating tokens
ws.send(JSON.stringify({ type: "join", room: "graduating" }));

// Only Pump.fun tokens with at least 50 SOL in the curve
ws.send(JSON.stringify({ type: "join", room: "graduating:pumpfun:50" }));
```

### WebSocket: curve percentage alerts

Get notified when any token hits a specific bonding curve milestone:

```javascript theme={null}
// Alert at 30% — early signal
ws.send(JSON.stringify({ type: "join", room: "pumpfun:curve:30" }));

// Alert at 50% — halfway
ws.send(JSON.stringify({ type: "join", room: "pumpfun:curve:50" }));

// Alert at 80% — approaching graduation
ws.send(JSON.stringify({ type: "join", room: "pumpfun:curve:80" }));
```

Supported markets for curve alerts: `pumpfun`, `launchpad`, `boop`, `meteora-curve`.

## Detect graduation

### REST: recently graduated

```bash theme={null}
curl "https://data.solanatracker.io/tokens/multi/graduated?limit=50" \
  -H "x-api-key: YOUR_API_KEY"
```

| Parameter | Description |
| - | - |
| `limit` | Number of tokens (max 500) |
| `page` | Pagination page number |
| `reduceSpam` | Filter out quick-graduated tokens |
| `markets` | Filter by market |
| `minLiquidity` | Minimum post-graduation liquidity |

### WebSocket: graduated stream

```javascript theme={null}
ws.send(JSON.stringify({ type: "join", room: "graduated" }));

ws.onmessage = (event) => {
  const msg = JSON.parse(event.data);
  if (msg.type !== "message") return;

  const { token, pools, graduationTx, graduationTime } = msg.data;
  console.log(`Graduated: ${token.name}`);
  console.log(`  Pool: ${pools[0]?.poolId}`);
  console.log(`  Liquidity: $${pools[0]?.liquidity?.usd?.toLocaleString()}`);
  console.log(`  Tx: ${graduationTx}`);
};
```

### REST: graduation timestamp for a specific token

`GET /tokens/{tokenAddress}` and `POST /tokens/multi` do not include a graduation timestamp field. To fetch **when** a specific token graduated, use the [search endpoint](https://docs.solanatracker.io/data-api/search/token-search.md) — it returns a `graduatedAt` field (Unix ms, `null` if the token has not graduated).

```bash theme={null}
curl "https://data.solanatracker.io/search?query=<mint>&status=graduated" \
  -H "x-api-key: YOUR_API_KEY"
```

The response includes `data[].graduatedAt`. You can also filter by graduation window using `minGraduatedAt` / `maxGraduatedAt`.

## Example: graduation pipeline

Watch tokens across their full Pump.fun lifecycle:

```javascript theme={null}
const ws = new WebSocket("wss://datastream.solanatracker.io/YOUR_API_KEY");

ws.onopen = () => {
  ws.send(JSON.stringify({ type: "join", room: "pumpfun:curve:50" }));
  ws.send(JSON.stringify({ type: "join", room: "graduating:pumpfun:50" }));
  ws.send(JSON.stringify({ type: "join", room: "graduated" }));
};

ws.onmessage = (event) => {
  const msg = JSON.parse(event.data);
  if (msg.type !== "message") return;

  const room = msg.room;
  const name = msg.data?.token?.name || "Unknown";

  if (room?.includes("curve:")) {
    console.log(`[50% CURVE] ${name}`);
  } else if (room === "graduating") {
    console.log(`[GRADUATING] ${name}`);
  } else if (room === "graduated") {
    console.log(`[GRADUATED] ${name} — now on DEX`);
  }
};
```

## Swap Pump.fun tokens

Use the [Raptor Swap API](https://docs.solanatracker.io/raptor/overview.md) to buy and sell Pump.fun tokens. It handles bonding curve swaps and post-graduation DEX swaps automatically.

```javascript theme={null}
const headers = { "Content-Type": "application/json" };

// Buy a Pump.fun token with 0.1 SOL
const response = await fetch("https://swap-v2.solanatracker.io/swap", {
  method: "POST",
  headers,
  body: JSON.stringify({
    wallet: "YOUR_WALLET_ADDRESS",
    from: "So11111111111111111111111111111111111111112",
    to: "TOKEN_MINT_ADDRESS",
    amount: 0.1,
    slippage: 15,
    priorityFee: 0.0005
  })
});

const { txn } = await response.json();
// Sign and send the transaction
```

Raptor selects supported routes for the token's current pools, including bonding curve and migrated liquidity.

See the full [Swap API guide](https://docs.solanatracker.io/guides/swap-api.md) for sending transactions and WebSocket streaming.

## Risk signals

Pump.fun tokens carry specific risks you can monitor:

| Risk Factor | Score | Meaning |
| - | - | - |
| Pump.fun contract risks | 10 | Pump.fun contracts can be changed by Pump.fun at any time |
| Incomplete bonding curve | 4000 | No DEX liquidity yet, still on the curve |

Use these Datastream rooms to monitor safety signals on any Pump.fun token:

| Room | What it tracks |
| - | - |
| `sniper:{token}` | Sniper wallet balance changes |
| `bundlers:{token}` | Bundled transaction wallets |
| `insider:{token}` | Insider wallet movements |
| `dev_holding:{token}` | Creator/deployer holdings |
| `holders:{token}` | Total holder count |
| `top10:{token}` | Top 10 holder concentration |

See the [Safety Streams guide](https://docs.solanatracker.io/guides/datastream-safety.md) for full examples.

## Program IDs & instructions

For instruction construction or transaction parsing, use these program references:

| Program | ID | Docs |
| - | - | - |
| Bonding curve | `6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P` | [Program ID, IDL, buy/sell](https://docs.solanatracker.io/guides/pumpfun-program.md) |
| Pump.fun AMM (PumpSwap) | `pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA` | [AMM ID, IDL, buy/sell](https://docs.solanatracker.io/guides/pumpfun-amm.md) |

IDL downloads: [/idl/pump.json](https://docs.solanatracker.io/idl/pump.json), [/idl/pump\_amm.json](https://docs.solanatracker.io/idl/pump_amm.json).

## Yellowstone grpc (advanced)

For low-level transaction parsing, use Yellowstone gRPC to stream raw Pump.fun transactions directly from Solana:

* [Pump.fun Buy/Sell Detection](https://docs.solanatracker.io/yellowstone-grpc/examples/pumpfun-transactions.md) — parse buy/sell events with full IDL decoding
* [Pump.fun Account Streaming](https://docs.solanatracker.io/yellowstone-grpc/examples/pumpfun-accounts.md) — monitor bonding curve account state changes

## Room reference

| Room | What you get |
| - | - |
| `latest` | All new tokens (filter by `market === "pumpfun"`) |
| `graduating` | All tokens approaching curve completion |
| `graduating:pumpfun:{sol}` | Pump.fun tokens with minimum SOL in curve |
| `graduated` | All tokens that just migrated to DEX |
| `pumpfun:curve:{pct}` | Tokens hitting a specific curve % |

## API endpoints

| Endpoint | Description |
| - | - |
| [GET /tokens/multi/graduating](https://docs.solanatracker.io/data-api/tokens/get-graduating-tokens.md) | Tokens on bonding curve |
| [GET /tokens/multi/graduated](https://docs.solanatracker.io/data-api/tokens/get-graduated-tokens.md) | Recently graduated tokens |
| [GET /tokens/latest](https://docs.solanatracker.io/data-api/tokens/get-latest-tokens.md) | Newest tokens |
| [GET /search](https://docs.solanatracker.io/data-api/search/token-search.md) | Search with `launchpad=pumpfun` filter |
| [GET /deployer/{wallet}](https://docs.solanatracker.io/data-api/tokens/get-tokens-by-deployer.md) | Tokens by deployer wallet |

> [card] [Bonding curve program](https://docs.solanatracker.io/guides/pumpfun-program.md)
>
> Program ID, Anchor IDL, and buy/sell discriminators for web3.js.

> [card] [PumpSwap program](https://docs.solanatracker.io/guides/pumpfun-amm.md)
>
> PumpSwap program ID, IDL, and post-graduation buy/sell instructions.

> [card] [Find tokens](https://docs.solanatracker.io/guides/token-discovery.md)
>
> Trending, volume leaders, and top performers across all markets.

> [card] [Token launches](https://docs.solanatracker.io/guides/datastream-tokens.md)
>
> Real-time graduating, graduated, and curve percentage streams.

> [card] [Live risk signals](https://docs.solanatracker.io/guides/datastream-safety.md)
>
> Sniper, bundler, insider, and holder monitoring.

> [card] [Swap tokens](https://docs.solanatracker.io/guides/swap-api.md)
>
> Buy and sell tokens through Raptor with automatic routing.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.