Quick Start

Get started with SolAPI.live in minutes. Follow this guide to integrate our API into your application.

1
Get Your API Key

Sign up to receive your API key. Include it in all requests using the x-api-key header:

curl "https://api.solapi.live/api/token-data?address=YOUR_TOKEN_ADDRESS" \
  -H "x-api-key: YOUR_API_KEY"

2
Available Endpoints

Our API provides both REST and WebSocket endpoints for different data needs:

REST Endpoints

  • /api/token-data - Token information
  • /api/chart-history - Historical price data
  • /api/holders-history - Holder analytics
  • /api/trades-history - Trade data
  • /api/token-technicals - Technical analysis

WebSocket Endpoints

  • /ws/token-feed - Real-time token updates
  • /ws/chart-live - Live price data
  • /ws/holders-live - Real-time holder updates
  • /ws/trades-live - Live trade monitoring

3
Basic Usage Examples

Here are some examples to help you get started with our API:

REST API Example

// Get token data
curl "https://api.solapi.live/api/token-data?address=YOUR_TOKEN_ADDRESS" \
  -H "x-api-key: YOUR_API_KEY"

// Get chart history
curl "https://api.solapi.live/api/chart-history?base=YOUR_TOKEN_ADDRESS" \
  -H "x-api-key: YOUR_API_KEY"

WebSocket Example

// Connect to WebSocket
const ws = new WebSocket(
  'wss://api.solapi.live/ws/token-feed'
);

// Subscribe to token updates
ws.send(JSON.stringify({ 
  tokenAddress: "YOUR_TOKEN_ADDRESS",
  apiKey: "YOUR_API_KEY" 
}));

What's Next?

Let's explore the Token Data endpoint, our most commonly used REST API endpoint that provides comprehensive token information and market data.