---
title: "Get Pools"
method: GET
path: "/defi/v1/dex/getpools"
tags: ["dex"]
---

# Get Pools

`GET /defi/v1/dex/getpools`

## Request

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

Retrieves quotes for a specific token pair from multiple DEXs. It calculates the expected output for a given input amount (amountIn) on each DEX, enabling users to compare liquidity and pricing across platforms and choose the best option for their trades.

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

## Query parameters

- `dexId` '1000' | '1900' | '1300' | '1305' | '1306' | '1307' | '1308' | '1309' | '1310' | '1100' | '1200' | '1201' | '2900' | '2901' | '2800' | '2808' | '2809' | '1500' | '1400' | '1402' | '2300' | '2100' | '2101' | '2500' | '2501' | '2700' | '2600' | '2400' | '2401' | '1600' | '1602' | '1604' | '1605' | '1607' | '1608' | '1700' | '1701' | '1702' | '1703' | '1704' | '1706' | '1707' | '2200' | '2201' | '2202' | '2203' | '2204' | '2205' | '2206' | '3000' | '3001' | '3100' | '3300' | '3301': Comma-separated values of dex IDs. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-dexs-protocols).
- `path` string, required: Array of token contract addresses for the pool pair to look up. Provide [tokenAAddress, tokenBAddress].
- `amountIn` string, required: Amount of the input token to provide, specified in the token's smallest denomination (base units). Do not send human-readable decimal values. Examples: to swap 1 WETH (18 decimals), use "1000000000000000000"; to swap 1 USDC (6 decimals), use "1000000".

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