> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dexpaprika.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetching token prices

> Learn how to retrieve the price of any token using DexPaprika API with simple curl commands.

## Tutorial overview

Fetch real-time token prices from the DexPaprika DEX API using a `network` id and `token_address`.

[YouTube video player](https://www.youtube.com/embed/UJIBbwwbpPI?si=L69InN1Xk87i8SJZ)

> [!NOTE]
>
> The DexPaprika API provides reliable data access. If you find any issues or have suggestions for improvement, please [contact us](mailto:support@coinpaprika.com).

## 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.

> [!TIP]
>
> You can test the API directly in the documentation without writing any code. Visit the [API Reference](https://docs.dexpaprika.com/api-reference/introduction.md) 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:

```bash theme={null}
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.

> [!NOTE]
>
> You can find the full list of supported networks in the [Networks API](https://docs.dexpaprika.com/api-reference/networks/get-a-list-of-available-blockchain-networks.md).

***

## Step 2: Find a token address

If you don't have a token address, you can search for it using the API:

```bash theme={null}
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:

```bash theme={null}
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:

```json Response [expandable] theme={null}
{
    "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,
            "sells": 106864,
            "buys": 57315,
            "txns": 164179
        },
        "6h": {
            "volume": 11540575.177305005,
            "volume_usd": 8037337.331943456,
            "sells": 17801,
            "buys": 9926,
            "txns": 27727
        },
        "1h": {
            "volume": 2766848.754695,
            "volume_usd": 1900837.0877990713,
            "sells": 3484,
            "buys": 2082,
            "txns": 5566
        },
        "30m": {
            "volume": 1394651.1182109998,
            "volume_usd": 954794.8829624434,
            "sells": 1907,
            "buys": 1198,
            "txns": 3105
        },
        "15m": {
            "volume": 373588.37757400004,
            "volume_usd": 255759.0367338767,
            "sells": 742,
            "buys": 316,
            "txns": 1058
        },
        "5m": {
            "volume": 109317.68508500002,
            "volume_usd": 74963.92390747965,
            "sells": 265,
            "buys": 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`:

```bash theme={null}
curl -X GET "https://api.dexpaprika.com/networks/{network}/tokens/{token_address}" | jq '.summary.price_usd'
```

This will return only the price:

```json theme={null}
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:

```bash theme={null}
curl -X GET "https://api.dexpaprika.com/networks/ethereum/multi/prices?tokens=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0xdac17f958d2ee523a2206206994597c13d831ec7" | jq
```

Example response:

```json Response [expandable] theme={null}
[
  { "id": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "chain": "ethereum", "price_usd": 4400.5697112921535 },
  { "id": "0xdac17f958d2ee523a2206206994597c13d831ec7", "chain": "ethereum", "price_usd": 1.0002529851244053 }
]
```

Notes:

* Provide a comma-separated list in a single `tokens` parameter.
* Unknown or unpriced tokens are omitted from the array.
* Order is not guaranteed.
* You can pass up to 10 tokens per request; more than 10 returns HTTP 400.

> [!TIP]
>
> Explore the full endpoint docs: [Get batched token prices on a network](https://docs.dexpaprika.com/api-reference/tokens/get-batched-prices-for-multiple-tokens-on-a-network.md)

***

## Next steps

> **[Quick API reference](https://docs.dexpaprika.com/api-reference/introduction.md)**
>
> Jump straight into the API documentation and start making requests within minutes.

> **[More tutorials](https://docs.dexpaprika.com/tutorials/tutorial_intro.md)**
>
> Learn more ways to integrate DexPaprika into your applications.

## Get support

> **[Join Discord](https://discord.gg/DhJge5TUGM)**
>
> Connect with our community and get real-time support.

> **[Give Feedback](mailto:support@coinpaprika.com)**
>
> Share your experience and help us improve.

### FAQs

> **What do I need to fetch a token price?**
>
> The `network` id (e.g., `solana`, `ethereum`) and the on-chain `token_address`.

> **What is the price currency?**
>
> `summary.price_usd` returns USD. Other quote currencies may be added later; USD is the canonical quote.

> **How accurate are prices on low-liquidity pools?**
>
> Thin pools can be noisy; prefer higher-volume pools or the token’s main pool from the token response.

> **Do I need an API key?**
>
> Not to start. Keyless requests work at 10,000 credits per rolling 30 days per IP; a [free registered key](https://console.dexpaprika.com) raises that to 100,000.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.