> ## 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.

# Token Discovery

> Find new launches, trending tokens, Pump.fun graduations, and top-performing tokens on Solana with the Solana Tracker Data API discovery endpoints.

The Data API provides several endpoints for discovering tokens. Use them to build a token scanner, a trending feed, or a research dashboard.

## Latest Tokens

The [latest tokens endpoint](/data-api/get-latest-tokens) returns the most recently created tokens on Solana.

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

  ```javascript JavaScript theme={null}
  const res = await fetch("https://data.solanatracker.io/tokens/latest", {
    headers: { "x-api-key": "YOUR_API_KEY" }
  });
  const tokens = await res.json();

  tokens.forEach(t => {
    console.log(`${t.token.name} (${t.token.symbol})`);
    console.log(`  Pool: ${t.pools[0]?.address}`);
    console.log(`  MC: $${t.pools[0]?.marketCap?.usd?.toLocaleString()}`);
  });
  ```

  ```python Python theme={null}
  import requests

  res = requests.get("https://data.solanatracker.io/tokens/latest",
      headers={"x-api-key": "YOUR_API_KEY"})

  for t in res.json():
      print(f"{t['token']['name']} ({t['token']['symbol']})")
  ```
</CodeGroup>

***

## Trending Tokens

The [trending tokens endpoint](/data-api/get-trending-tokens) returns tokens with the most activity right now.

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

Filter by timeframe:

```bash theme={null}
# Trending in the last hour
curl "https://data.solanatracker.io/tokens/trending/1h" \
  -H "x-api-key: YOUR_API_KEY"
```

***

## Tokens by Volume

The [volume endpoint](/data-api/get-tokens-by-volume) ranks tokens by trading volume.

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

# Volume in the last 24 hours
curl "https://data.solanatracker.io/tokens/volume/24h" \
  -H "x-api-key: YOUR_API_KEY"
```

***

## Top Performers

The [top performers endpoint](/data-api/get-top-performing-tokens) returns the biggest price gainers across different timeframes.

```bash theme={null}
# Top gainers in the last hour
curl "https://data.solanatracker.io/top-performers/1h" \
  -H "x-api-key: YOUR_API_KEY"

# Top gainers in the last 24 hours
curl "https://data.solanatracker.io/top-performers/24h" \
  -H "x-api-key: YOUR_API_KEY"
```

***

## Graduating Tokens

Tokens on [pump.fun](https://pump.fun) go through a bonding curve before moving to a full DEX pool. A bonding curve is a pricing path that changes as people buy or sell before the token reaches a normal trading pool. These endpoints track that progression.

### Currently Graduating

The [graduating tokens endpoint](/data-api/get-graduating-tokens) returns tokens that are close to completing their bonding curve.

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

### Already Graduated

The [graduated tokens endpoint](/data-api/get-graduated-tokens) returns tokens that have completed their bonding curve and migrated to a DEX.

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

***

## Search

The [search endpoint](/data-api/token-search) finds tokens by name, symbol, or address. Supports filtering and sorting.

<CodeGroup>
  ```bash cURL theme={null}
  # Search by name
  curl "https://data.solanatracker.io/search?query=bonk" \
    -H "x-api-key: YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const res = await fetch(
    "https://data.solanatracker.io/search?query=bonk",
    { headers: { "x-api-key": "YOUR_API_KEY" } }
  );
  const results = await res.json();

  results.forEach(r => {
    console.log(`${r.token.name}: $${r.pools[0]?.price?.usd}`);
  });
  ```
</CodeGroup>

***

## Tokens by Deployer

The [deployer endpoint](/data-api/get-tokens-by-deployer) returns all tokens created by a specific wallet — useful for tracking serial deployers.

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

***

## Token Overview

The [token overview endpoint](/data-api/get-token-overview) returns a broad market overview of all tracked tokens.

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

***

## Real-Time Streams

For live token discovery, use the [Datastream WebSocket](/datastream/latesttokens) channels:

| Room                  | What it streams                             |
| --------------------- | ------------------------------------------- |
| `latest`              | Newly created tokens as they appear         |
| `graduating`          | Tokens approaching graduation               |
| `graduated`           | Tokens that just graduated                  |
| `token:{token}`       | Pool state changes (price, liquidity, mcap) |
| `stats:token:{token}` | Multi-timeframe statistics                  |

***

## Example: Build a Token Scanner

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

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

// 2. Check top performers
const gainers = await fetch(
  "https://data.solanatracker.io/top-performers/1h", { headers }
).then(r => r.json());

// 3. Cross-reference: trending tokens that are also top gainers
const gainerAddresses = new Set(gainers.map(g => g.token.mint));
const hotTokens = trending.filter(t => gainerAddresses.has(t.token.mint));

console.log(`${hotTokens.length} tokens are both trending and top gainers:`);
hotTokens.forEach(t => {
  console.log(`  ${t.token.name} (${t.token.symbol})`);
});
```

<CardGroup cols={2}>
  <Card title="Token Research" href="/guides/token-research">
    Deep-dive into any token: stats, holders, trades, and events.
  </Card>

  <Card title="Sniper Detection" href="/guides/sniper-detection">
    Check if a new token has suspicious early buyer activity.
  </Card>

  <Card title="Token Discovery Streams" href="/guides/datastream-tokens">
    Stream new tokens, graduating tokens, and curve events in real time.
  </Card>

  <Card title="Safety Streams" href="/guides/datastream-safety">
    Track snipers and bundlers on newly discovered tokens.
  </Card>
</CardGroup>
