All Resources
Get Solana Token Prices Without Running an Indexer
Data APITypeScriptMay 30, 20262 min read

Get Solana Token Prices Without Running an Indexer

Fetch live price, liquidity and pool data for any Solana token with one REST call or a batch price request.

data-apirestpricetypescriptbatch

One price call beats a local indexer

Running your own node and parsing raw account data just to get a single price is overkill. With an indexed Solana Data API you get the live price, liquidity and pool data of any token with one REST call.

What you need

Step 1: One token

import { Client } from '@solana-tracker/data-api';

const client = new Client({ apiKey: process.env.ST_API_KEY, baseUrl: 'https://data.solanatracker.io' });
const sol = await client.getTokenInfo('So11111111111111111111111111111111111111112');
const pool = sol.pools[0];

console.log(pool.price.usd, pool.liquidity.usd);

Step 2: Batch prices

const prices = await client.getMultiplePrices([
  'So11111111111111111111111111111111111111112',
  'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
]);

FAQ

How do I get the price in USD?

Token responses include pool price and liquidity data; USD values come from pools[0].price.usd.

What is the fastest way for live prices?

The WebSocket Datastream instead of REST polling, it pushes updates the moment they happen.

Can I get historical prices / OHLCV?

Yes, there are separate OHLCV endpoints; see the Solana Data API docs.

Next: Real-time Solana price via WebSocket ->

Download the example

Clone the full runnable project on GitHub, npm install && npm start with your keys in .env. Or open it in StackBlitz to run in your browser (free). See the tutorial for step-by-step context.

Runnable Node.js project — clone from GitHub, add keys to .env, then npm start. StackBlitz runs REST and Datastream examples in your browser for free.