---
title: "Get Token ID Price"
method: GET
path: "/defi/v1/dex/gettokenidprice"
tags: ["dex"]
---

# Get Token ID Price

`GET /defi/v1/dex/gettokenidprice`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/dex/gettokenidprice`
- Auth: API key in header `X-API-Key`

Retrieves detailed mapping and pricing information for tokens on DEXs. By default, it returns data for the top 100 trending tokens, offering a snapshot of market dynamics and token popularity. Alternatively, if a specific token address is provided, the endpoint returns the mapping details for that token. The response includes key data such as the pool identifier (poolId) and the current price, enabling users and developers to assess market valuations, track trends, and integrate real-time pricing information into trading strategies and analytical dashboards.

> 💡 
**Compute Unit Value:** `95` (Fixed)

## Query parameters

- `dexId` '3100': The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-dexs-protocols).
- `poolId` string, required: The unique ID of the liquidity pool for which the USD price of the liquidity token needs to be fetched.

## Response `200`

Successful response

- object
  - `status` integer
  - `msg` string
  - `data` object

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
