# PancakeSwap Protocol API
> Live protocol metrics for PancakeSwap, the largest decentralized exchange (DEX) on the BNB Chain (and live on Ethereum, Arbitrum, Linea, zkSync and more), keyless. Get the total value locked across every chain, DEX trading volume (24h / 7d / 30d / all-time, with change), protocol fees, and the top PancakeSwap liquidity pools (AMM v2 / v3) with their TVL and APY. One combined overview endpoint snapshots it all. Live, nothing stored. The PancakeSwap-metrics layer for DeFi dashboards, BNB-Chain analytics, yield and trading apps — distinct from Ethereum-DEX and generic DeFi/TVL browsers, this is PancakeSwap specifically.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/pancakeswap-api/..."
```

## Pricing
- **Free** (Free) — 3,000 calls/Mo, 3 req/s
- **Starter** ($17/Mo) — 80,000 calls/Mo, 8 req/s
- **Pro** ($59/Mo) — 550,000 calls/Mo, 20 req/s
- **Business** ($179/Mo) — 4,000,000 calls/Mo, 50 req/s

## Endpoints

### Overview

#### `GET /v1/overview` — Combined PancakeSwap snapshot (TVL + volume + fees + top pool)

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/pancakeswap-api/v1/overview"
```

**Response:**
```json
{
    "data": {
        "note": "Snapshot of PancakeSwap across all chains: TVL, DEX volume, fees and the single largest pool.",
        "source": "DeFiLlama",
        "fees_24h": 455155,
        "fees_30d": 10316312,
        "protocol": "PancakeSwap",
        "top_pool": {
            "apy": 0,
            "tvl": 67518464,
            "chain": "Arbitrum",
            "symbol": "WETH-GFC",
            "il_risk": "yes",
            "pool_id": "d3abc08b-8d68-412c-9c77-f31b7bfba672",
            "version": "v2",
            "apy_base": 0,
            "apy_reward": null,
            "volume_24h": 0
        },
        "total_tvl": 2195304992.66,
        "volume_7d": 5198311071,
        "volume_24h": 527054731,
        "chain_count": 11
    },
    "meta": {
        "timestamp": "2026-06-14T08:04:35.196Z",
        "request_id": "cf9d76b0-259b-4c1e-882c-354fa09a9245"
    },
    "status": "ok",
    "message": "PancakeSwap overview retrieved successfully",
    "success": true
}
```

### Metrics

#### `GET /v1/fees` — PancakeSwap protocol fees (24h/7d/30d)

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/pancakeswap-api/v1/fees"
```

**Response:**
```json
{
    "data": {
        "note": "Trading fees paid by users across all PancakeSwap deployments, in USD.",
        "chains": [
            "BSC",
            "Ethereum",
            "Polygon zkEVM",
            "ZKsync Era",
            "Arbitrum",
            "Linea",
            "Base",
            "OpBNB",
            "Aptos",
            "Solana",
            "Monad"
        ],
        "source": "DeFiLlama",
        "fees_7d": 3019133,
        "fees_24h": 455155,
        "fees_30d": 10316312,
        "protocol": "PancakeSwap",
        "change_1d_pct": 35.17,
        "change_7d_pct": null,
        "fees_all_time": 1754543935
    },
    "meta": {
        "timestamp": "2026-06-14T08:04:35.275Z",
        "request_id": "fe446738-4c85-40aa-a455-a34f4cfbe3db"
    },
    "status": "ok",
    "message": "PancakeSwap fees retrieved successfully",
    "success": true
}
```

#### `GET /v1/tvl` — PancakeSwap TVL total and per-chain breakdown

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/pancakeswap-api/v1/tvl"
```

**Response:**
```json
{
    "data": {
        "note": null,
        "chains": [
            {
                "tvl": 2128850430,
                "chain": "BSC"
            },
            {
                "tvl": 28888095,
                "chain": "Ethereum"
            },
            {
                "tvl": 19100962,
                "chain": "Base"
            },
            {
                "tvl": 7885551,
                "chain": "Solana"
            },
            {
                "tvl": 6763365,
                "chain": "Arbitrum"
            },
            {
                "tvl": 1798722,
                "chain": "Monad"
            },
            {
                "tvl": 932284,
                "chain": "Aptos"
            },
            {
                "tvl": 881991,
                "chain": "ZKsync Era"
            },
            {
                "tvl": 232246,
                "chain": "opBNB"
            },
            {
                "tvl": 164304,
                "chain": "Linea"
            },
            {
                "tvl": 44716,
                "chain": "Polygon zkEVM"
            }
        ],
        "source": "DeFiLlama",
        "protocol": "PancakeSwap",
        "total_tvl": 2195304992.66,
        "chain_count": 11
    },
    "meta": {
        "timestamp": "2026-06-14T08:04:35.329Z",
        "request_id": "5211e635-9296-4632-b41e-1bcc5849ca6b"
    },
    "status": "ok",
    "message": "PancakeSwap TVL retrieved successfully",
    "success": true
}
```

#### `GET /v1/volume` — PancakeSwap DEX trading volume (24h/7d/30d/all-time, with change)

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/pancakeswap-api/v1/volume"
```

**Response:**
```json
{
    "data": {
        "note": "DEX trading volume across all PancakeSwap deployments (BNB Chain and beyond), in USD.",
        "chains": [
            "BSC",
            "Ethereum",
            "Polygon zkEVM",
            "ZKsync Era",
            "Arbitrum",
            "Linea",
            "Base",
            "OpBNB",
            "Aptos",
            "Solana",
            "Monad"
        ],
        "source": "DeFiLlama",
        "protocol": "PancakeSwap",
        "volume_7d": 5198311071,
        "volume_24h": 527054731,
        "volume_30d": 24648977043,
        "change_1d_pct": -7.14,
        "change_7d_pct": null,
        "change_30d_pct": null,
        "volume_all_time": 2025696258344
    },
    "meta": {
        "timestamp": "2026-06-14T08:04:35.425Z",
        "request_id": "dcc164cd-27f0-48c4-9cb6-3c3e09af6d29"
    },
    "status": "ok",
    "message": "PancakeSwap volume retrieved successfully",
    "success": true
}
```

### Pools

#### `GET /v1/pools` — Top PancakeSwap liquidity pools with TVL and APY

**Parameters:**
- `version` (query, optional, string) — PancakeSwap AMM version: v2 or v3 Example: `v3`
- `chain` (query, optional, string) — Filter by chain (e.g. BSC, Ethereum, Base, Arbitrum) Example: `Ethereum`
- `limit` (query, optional, string) — Results (1-100, default 25) Example: `25`
- `min_tvl` (query, optional, string) — Minimum pool TVL in USD Example: `1000000`
- `sort` (query, optional, string) — Sort by tvl or apy Example: `tvl`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/pancakeswap-api/v1/pools?version=v3&chain=Ethereum&limit=25&min_tvl=1000000&sort=tvl"
```

**Response:**
```json
{
    "data": {
        "sort": "tvl",
        "chain": "Ethereum",
        "count": 4,
        "pools": [
            {
                "apy": 0,
                "tvl": 26536265,
                "chain": "Ethereum",
                "symbol": "PORT3-USDT",
                "il_risk": "yes",
                "pool_id": "a1049a10-1ad1-48c9-befd-9977bca00178",
                "version": "v3",
                "apy_base": 0,
                "apy_reward": null,
                "volume_24h": 0
            },
            {
                "apy": 0.02,
                "tvl": 17831732,
                "chain": "Ethereum",
                "symbol": "USDC-USDT",
                "il_risk": "no",
                "pool_id": "8a922da8-ee3c-44c8-a6c0-68bed39089c2",
                "version": "v3",
                "apy_base": 0.02,
                "apy_reward": null,
                "volume_24h": 80851.63
            },
            {
                "apy": 0.06,
                "tvl": 2895531,
                "chain": "Ethereum",
                "symbol": "APXUSD-USDC",
                "il_risk": "no",
                "pool_id": "497ab748-5954-4cde-b7d0-346cb6391ee4",
                "version": "v3",
                "apy_base": 0.06,
                "apy_reward": null,
                "volume_24h": 47115.74
            },
            {
                "apy": 0,
                "tvl": 1007014,
                "chain": "Ethereum",
                "symbol": "USDT-USDF",
                "il_risk": "
…(truncated, see openapi.json for full schema)
```

### Meta

#### `GET /v1/meta` — Service metadata & live sample

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/pancakeswap-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "note": "pools takes optional version (v2, v3), chain (e.g. BSC, Ethereum, Arbitrum), limit (1-100), min_tvl and sort (tvl or apy). All money values are USD. Other endpoints take no parameters.",
        "sample": {
            "total_tvl": 2195304992.66,
            "volume_24h": 527054731
        },
        "source": "DeFiLlama open API (api.llama.fi + yields.llama.fi), live",
        "service": "pancakeswap-api",
        "endpoints": {
            "GET /v1/tvl": "PancakeSwap TVL total and per-chain breakdown.",
            "GET /v1/fees": "PancakeSwap protocol fees (24h/7d/30d).",
            "GET /v1/meta": "This document.",
            "GET /v1/pools": "Top PancakeSwap liquidity pools with TVL and APY (version, chain, limit, sort).",
            "GET /v1/volume": "PancakeSwap DEX trading volume (24h/7d/30d/all-time, with change).",
            "GET /v1/overview": "Combined PancakeSwap snapshot (TVL + volume + fees + top pool)."
        },
        "description": "Live protocol metrics for PancakeSwap, the largest DEX on the BNB Chain (and live on Ethereum, Arbitrum, Linea, zkSync and more), keyless. Total value locked across every chain, DEX trading volume (24h/7d/30d/all-time with change), protocol fees, and the top PancakeSwap liquidity pools (AMM v2/v3) with TVL and APY. Live, nothing stored beyond a short protective cache. The PancakeSwap-metrics layer for DeFi dashboards, BNB-Chain analytics, yield and trading apps. Distinct from Ethereum-DEX 
…(truncated, see openapi.json for full schema)
```


---
Marketplace page: https://www.oanor.com/api/pancakeswap-api
OpenAPI spec: https://www.oanor.com/api/pancakeswap-api/openapi.json
