Skip to main content

Tutorial overview

Fetch real‑time token prices from the DexPaprika DEX API using a network id and token_address.
The DexPaprika API provides reliable data access. If you find any issues or have suggestions for improvement, please contact us.

Fetching Token Prices

This tutorial will walk you through retrieving the latest price of any token using DexPaprika API. We will use simple cURL commands to interact with the API.
You can test the API directly in the documentation without writing any code. Visit the API Reference to try it out.

Step 1: Get Available Networks

To fetch token data, you need the network ID. Use this request to get a list of supported blockchain networks:
curl -X GET "https://api.dexpaprika.com/networks" | jq
The response will include networks like Solana, Base, Aptos, Ethereum, etc. Choose the one you need.
You can find the full list of supported networks in the Networks API.

Step 2: Find a Token Address

If you don’t have a token address, you can search for it using the API:
curl -X GET "https://api.dexpaprika.com/search?query=YOUR_INPUT"
Replace YOUR_INPUT with the actual phrase you’re looking for. The response will return matching token & pools along with their addresses.

Step 3: Fetch the Token Price

Once you have the network ID and token address, use the following request to get the token’s price:
curl -X GET "https://api.dexpaprika.com/networks/{network}/tokens/{token_address}"
Replace:
  • {network} with the network (e.g., solana, base)
  • {token_address} with the address found in Step 2
The response will return data like this:
Response
{
    "id": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
    "name": "Jupiter",
    "symbol": "JUP",
    "chain": "solana",
    "decimals": 6,
    "total_supply": 9999979509174084,
    "description": "",
    "website": "",
    "explorer": "",
    "added_at": "2024-09-11T04:37:20Z",
    "summary": {
        "price_usd": 0.6863252359922881,
        "fdv": 6863238296.5519485244070243816004,
        "liquidity_usd": 25575125.4495078768612017,
        "24h": {
            "volume": 80207699.45778705,
            "volume_usd": 55796800.523819186,
            "sell": 106864,
            "buy": 57315,
            "txns": 164179
        },
        "6h": {
            "volume": 11540575.177305005,
            "volume_usd": 8037337.331943456,
            "sell": 17801,
            "buy": 9926,
            "txns": 27727
        },
        "1h": {
            "volume": 2766848.754695,
            "volume_usd": 1900837.0877990713,
            "sell": 3484,
            "buy": 2082,
            "txns": 5566
        },
        "30m": {
            "volume": 1394651.1182109998,
            "volume_usd": 954794.8829624434,
            "sell": 1907,
            "buy": 1198,
            "txns": 3105
        },
        "15m": {
            "volume": 373588.37757400004,
            "volume_usd": 255759.0367338767,
            "sell": 742,
            "buy": 316,
            "txns": 1058
        },
        "5m": {
            "volume": 109317.68508500002,
            "volume_usd": 74963.92390747965,
            "sell": 265,
            "buy": 86,
            "txns": 351
        }
    },
    "last_updated": "2025-02-26T13:11:25.858732857Z"
}

Step 4: Extract Only the Price (single token)

If you only need the token price in USD, you can filter the response using jq:
curl -X GET "https://api.dexpaprika.com/networks/{network}/tokens/{token_address}" | jq '.summary.price_usd'
This will return only the price:
0.6863252359922881

Step 5: Fetch Prices for Multiple Tokens (batch)

If you need prices for multiple tokens at once on the same network, use the batch pricing endpoint:
curl -G \
  --data-urlencode "tokens=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2" \
  --data-urlencode "tokens=0xdac17f958d2ee523a2206206994597c13d831ec7" \
  "https://api.dexpaprika.com/networks/ethereum/multi/prices" | jq
Example response:
Response
[
  { "id": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "chain": "ethereum", "price_usd": 4400.5697112921535 },
  { "id": "0xdac17f958d2ee523a2206206994597c13d831ec7", "chain": "ethereum", "price_usd": 1.0002529851244053 }
]
Notes:
  • Repeat the tokens query parameter for each address.
  • Unknown or unpriced tokens are omitted from the array.
  • Order is not guaranteed.
Explore the full endpoint docs: Get batched token prices on a network

Next Steps

Get Support

FAQs

The network id (e.g., solana, ethereum) and the on‑chain token_address.
summary.price_usd returns USD. Other quote currencies may be added later; USD is the canonical quote.
Thin pools can be noisy; prefer higher‑volume pools or the token’s main pool from the token response.
No. The API is public; no keys or registration required.
I