The API is currently in beta and we cannot guarantee the stability of the data. Please be aware that the data might be inaccurate or incomplete and therefore should not be used for any critical applications. If you find any issues, please contact us.

Let’s make your first API call in 3 steps!

You can also make your first request directly in our API Playground available in the API Reference section. Visit GET Token to try it out.
In the next steps we will make a GET request to the Token endpoint in order to get the latest price in USD of SOL. All we need is the network ID and the token address.

  • Network ID: solana
  • Token address: So11111111111111111111111111111111111111112
    You can find the list of all supported networks in the Networks endpoint.
1

Make a GET request

Simply make a GET request to the following endpoint in order to fetch latest data about any token. In this case we will use the specified above network ID and token address to populate the endpoint in a format of https://api.dexpaprika.com/networks/{network_id}/tokens/{address}.

curl -X GET "https://api.dexpaprika.com/networks/solana/tokens/So11111111111111111111111111111111111111112"
2

Get latest data about Solana (SOL)

This will return quite lengthy response of the latest data about Solana (SOL) that will look similar to this. We send a lot of data in the response, so in the next step we will extract only the price of SOL in USD.

Response
{
    "id": "So11111111111111111111111111111111111111112",
    "name": "Wrapped SOL",
    "symbol": "SOL",
    "chain": "solana",
    "decimals": 9,
    "total_supply": 0,
    "description": "",
    "website": "",
    "explorer": "",
    "added_at": "2024-10-04T08:30:05Z",
    "summary": {
        "main_pool": "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE",
        "price": 164.9536657855954,
        "price_usd": 165.0363416231933,
        "liquidity_usd": 21277129298.9034355594499,
        "24h": {
            "volume": 18207227.90283451,
            "volume_usd": 3172926820.723157,
            "sell": 11953376,
            "buy": 8641848,
            "txns": 20595327
        },
        "6h": {
            "volume": 5237173.683970005,
            "volume_usd": 882506167.8594747,
            "sell": 3309487,
            "buy": 2416834,
            "txns": 5726323
        },
        "1h": {
            "volume": 670087.840859647,
            "volume_usd": 119985216.45169246,
            "sell": 519919,
            "buy": 343819,
            "txns": 863738
        },
        "30m": {
            "volume": 327613.1220672249,
            "volume_usd": 54505021.9229673,
            "sell": 245850,
            "buy": 168366,
            "txns": 414216
        },
        "15m": {
            "volume": 168834.195930299,
            "volume_usd": 28068199.473847672,
            "sell": 124337,
            "buy": 82098,
            "txns": 206435
        },
        "5m": {
            "volume": 64118.999946111,
            "volume_usd": 10629376.9487243,
            "sell": 45027,
            "buy": 30474,
            "txns": 75501
        }
    },
    "last_updated": "2025-02-18T20:36:46.946687298Z"
}
3

Extract the price (or any other data)

As you can see, the response is very rich of data. You can extract only the price of SOL in USD from the full response by navigating to the summary object (or any other object) and then to the price_usd key (or any other key) simply by modyfying the previously used GET request:

curl -s "https://api.dexpaprika.com/networks/solana/tokens/So11111111111111111111111111111111111111112" | jq '.summary.price_usd'

And as a result you will get the price of SOL in USD:

summary.price_usd
165.0363416231933

Congratulations! You just successfully retrieved the latest price of SOL in USD!

Next Steps

Track Token Prices

Get real-time and historical price data for any Solana token

Monitor Liquidity

Access detailed liquidity pool data across major Solana DEXes

Trading Analytics

Analyze trading volumes, price changes, and market trends

DEX Aggregation

Compare prices and liquidity across different DEXes

Get Support

We’re here to help you succeed with DexPaprika.

Looking for enterprise solutions? We offer dedicated support, higher rate limits, and custom features. Contact our team to learn more.