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

<div style={{ position: 'relative', paddingBottom: '56.25%', height: 0, overflow: 'hidden', maxWidth: '100%', marginBottom: '1rem' }}>
  <iframe style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '100%' }} src="https://www.youtube.com/embed/UJIBbwwbpPI?si=L69InN1Xk87i8SJZ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen />
</div>

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

## 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](/api-reference/introduction) to try it out.
</Tip>

***

## 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](/api-reference/networks/get-a-list-of-available-blockchain-networks).
</Note>

***

## 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,
            "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`:

```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](/api-reference/tokens/get-batched-token-prices-on-a-network)
</Tip>

***

## Next steps

<CardGroup cols={2}>
  <Card title="Quick API reference" icon="bolt" href="/api-reference/introduction">
    Jump straight into the API documentation and start making requests within minutes.
  </Card>

  <Card title="More tutorials" icon="graduation-cap" href="/tutorials/tutorial_intro">
    Learn more ways to integrate DexPaprika into your applications.
  </Card>
</CardGroup>

## Get support

<CardGroup cols={2}>
  <Card title="Join Discord" icon="discord" href="https://discord.gg/DhJge5TUGM">
    Connect with our community and get real-time support.
  </Card>

  <Card title="Give Feedback" icon="message" href="mailto:support@coinpaprika.com">
    Share your experience and help us improve.
  </Card>
</CardGroup>

### FAQs

<AccordionGroup>
  <Accordion title="What do I need to fetch a token price?">
    The `network` id (e.g., `solana`, `ethereum`) and the on‑chain `token_address`.
  </Accordion>

  <Accordion title="What is the price currency?">
    `summary.price_usd` returns USD. Other quote currencies may be added later; USD is the canonical quote.
  </Accordion>

  <Accordion title="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.
  </Accordion>

  <Accordion title="Do I need an API key?">
    No. The API is public; no keys or registration required.
  </Accordion>
</AccordionGroup>

<script type="application/ld+json">
  {JSON.stringify({
      "@context": "https://schema.org",
      "@type": "FAQPage",
      "mainEntity": [
        {"@type": "Question","name": "What do I need to fetch a token price?","acceptedAnswer": {"@type": "Answer","text": "Provide network id and token_address."}},
        {"@type": "Question","name": "What is the price currency?","acceptedAnswer": {"@type": "Answer","text": "USD via summary.price_usd."}},
        {"@type": "Question","name": "How accurate are prices on low‑liquidity pools?","acceptedAnswer": {"@type": "Answer","text": "Prefer higher‑volume pools or the token’s main pool for reliable prices."}},
        {"@type": "Question","name": "Do I need an API key?","acceptedAnswer": {"@type": "Answer","text": "No, the API is public; no keys or registration."}}
      ]
    })}
</script>
