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

# Query Solana token data, holders, and trades

> Get Solana token metadata, pool data, trading stats, holders, and recent swaps. Build a token page with the Solana Tracker Data API.

Start with the token mint. Fetch metadata and pools, add trading stats and holders, then load recent swaps or liquidity activity. The examples below cover each part of a token page.

## Get token info

Fetch [token information](/data-api/tokens/get-token-information) for the mint. Read metadata from `token` and market data from `pools`; a token can have more than one pool.

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

  ```javascript JavaScript theme={null}
  const token = "38PgzpJYu2HkiYvV8qePFakB8tuobPdGm2FFEn7Dpump";

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

  console.log(`${data.token.name} (${data.token.symbol})`);
  console.log(`Price: $${data.pools[0]?.price?.usd}`);
  console.log(`Market Cap: $${data.pools[0]?.marketCap?.usd}`);
  ```

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

  token = "38PgzpJYu2HkiYvV8qePFakB8tuobPdGm2FFEn7Dpump"
  res = requests.get(
      f"https://data.solanatracker.io/tokens/{token}",
      headers={"x-api-key": "YOUR_API_KEY"}
  )
  data = res.json()
  print(f"{data['token']['name']} ({data['token']['symbol']})")
  ```
</CodeGroup>

## Token stats

<Note>
  The `/events` endpoints are **deprecated**. Switch to [token stats](/data-api/stats/get-token-stats) (`GET /stats/{token}`) or [token-pool stats](/data-api/stats/get-token-pool-stats) (`GET /stats/{token}/{pool}`). Both return computed statistics as JSON, without binary decoding. With the SDK, use `client.getTokenStats(token)` or `client.getPoolStats(token, pool)`.
</Note>

Use [token stats](/data-api/stats/get-token-stats) for volume, buy/sell counts, and unique traders over each supported window.

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

Returns stats broken down by `5m`, `1h`, `6h`, and `24h` windows including:

* Buy and sell volume (USD)
* Number of buys and sells
* Unique buyers and sellers
* Price change percentage

## Token holders

### Top 100

The [top 100 holders](/data-api/tokens/get-token-holders-top-100) endpoint returns the largest token holders.

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

### All holders (paginated)

For the full holder list, use the [paginated holders](/data-api/tokens/get-all-token-holders-paginated) endpoint:

```bash theme={null}
# Page 1
curl "https://data.solanatracker.io/tokens/{token}/holders/paginated?limit=100" \
  -H "x-api-key: YOUR_API_KEY"
```

## Recent trades

By default, trade endpoints return swaps. Set `events=all` to include liquidity adds and removes, or `events=liquidity` for LP activity only. Use `limit` to set the page size. See the [liquidity activity guide](/guides/liquidity) for REST history and live rooms.

The [token trades](/data-api/trades/get-token-trades) endpoint returns the most recent buys and sells.

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

  ```javascript JavaScript theme={null}
  const token = "38PgzpJYu2HkiYvV8qePFakB8tuobPdGm2FFEn7Dpump";

  const res = await fetch(`https://data.solanatracker.io/trades/${token}`, {
    headers: { "x-api-key": "YOUR_API_KEY" }
  });
  const { trades } = await res.json();

  trades.forEach(t => {
    const side = t.type === "buy" ? "BUY" : "SELL";
    console.log(`${side} $${t.volume.toFixed(2)} by ${t.wallet}`);
  });
  ```
</CodeGroup>

You can also filter trades by pool or by a specific wallet:

```bash theme={null}
# Trades on a specific pool
curl "https://data.solanatracker.io/trades/{token}/{pool}" \
  -H "x-api-key: YOUR_API_KEY"

# Trades by a specific wallet
curl "https://data.solanatracker.io/trades/{token}/by-wallet/{wallet}" \
  -H "x-api-key: YOUR_API_KEY"
```

## Search for tokens

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

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

# Search by exact symbol
curl "https://data.solanatracker.io/search?symbol=BONK" \
  -H "x-api-key: YOUR_API_KEY"
```

Filter by [Coin Communities](/guides/search-coin-communities) activity — live message counts, range filters, and sorting by `communityMessages`.

## Discover new tokens

<CardGroup cols={2}>
  <Card title="Latest Tokens" href="/data-api/tokens/get-latest-tokens">
    Most recently created tokens on Solana.
  </Card>

  <Card title="Trending Tokens" href="/data-api/tokens/get-trending-tokens">
    Tokens with the most activity right now.
  </Card>

  <Card title="Graduating Tokens" href="/data-api/tokens/get-graduating-tokens">
    Tokens approaching the end of their bonding curve.
  </Card>

  <Card title="Top Performers" href="/data-api/tokens/get-top-performing-tokens">
    Tokens ranked by price change over a selected period.
  </Card>
</CardGroup>

## All-time high

Fetch the all-time high to compare with the current price:

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

<CardGroup cols={2}>
  <Card title="Prices and charts" href="/guides/price-and-charts">
    Fetch chart candles, historical prices, and multi-token price snapshots.
  </Card>

  <Card title="Snipers and bundlers" href="/guides/sniper-detection">
    Find early buyers, bundled launches, and suspicious wallet activity on a token.
  </Card>
</CardGroup>


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