Token Price

Instantly access real-time Pumpfun token prices in SOL and USD with a simple GET request to our API.

Pumpfun Token Price API

Easily retrieve the current price of any Pumpfun token by sending a GET request to our API endpoint. The response delivers token prices in both SOL and USD, dynamically updated based on the token's current bonding curve.

API Endpoint

GET: https://api.solana-api.com/pumpfun/price/$MINT

How It Works

When you send a request to this endpoint, the price is calculated in real time using the token's bonding curve status on Pumpfun. Please note that this API only supports tokens actively listed on Pumpfun. Tokens that have migrated to Raydium will not return a price. For migrated tokens, use our Raydium price API for accurate data.

Key Features

  • Real-Time Pricing: Obtain up-to-date token prices at the exact time of your request.

  • Currency Support: Prices are available in both SOL and USD for comprehensive insights.

  • Dynamic Calculations: Prices are based on the token's bonding curve, ensuring accuracy.

Code Examples

const axios = require('axios');

// Function to test the price API
async function testPriceApi() {
  try {
    const response = await axios.get('https://api.solana-api.com/pumpfun/price/{mint}');
    
    // Log the response data
    console.log('Price Data:', response.data);
  } catch (error) {
    // If there was an error, log it
    console.error('Error fetching price:', error.message);
  }
}

// Call the test function
testPriceApi();

Example Response

{
    SOL: '0.0000000897',
    USD: '0.0000137945'
}

Important Notes

  • Only tokens currently available on Pumpfun will return valid results.

Last updated