Skip to main content

DEX API quickstart

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!
New: GET /networks/network_id/multi/prices — retrieve batched token prices on a network in a single request.

Next steps

DEX API use cases

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

DexPaprika API support

We’re here to help you succeed with DexPaprika.

Explore supported on-chain networks

Browse the full networks list to find the correct network parameter for your requests.

FAQs

No. The DexPaprika API is public; no API keys or registration required.
Liquidity pools, swap transactions, token metrics/prices, and network coverage across multiple chains.
Use the Coverage Checker tool or the Networks/Token endpoints to locate addresses.
Collection is near real‑time; responses reflect the latest indexed blocks and events.
Looking for enterprise solutions? We offer dedicated support, higher rate limits, and custom features. Contact our team to learn more.