PancakeSwap Tokens API

The Tokens API from PancakeSwap — 2 operation(s) for tokens.

Operations 2

GET /v2/tokens Get all tokens #
GET /v2/tokens/{address} Get token by address #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pancakeswap-tokens-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pancakeswap-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PancakeSwap Info Tokens API
  description: 'REST API providing on-chain data for the top ~1000 PancakeSwap trading pairs, tokens, and market summaries sourced from underlying subgraphs. Used by market aggregators such as CoinMarketCap to surface liquidity and volume data. Responses are cached for 5 minutes.

    '
  version: '2.0'
  contact:
    name: PancakeSwap
    url: https://pancakeswap.finance
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
- url: https://api.pancakeswap.info/api
  description: PancakeSwap Info API
tags:
- name: Tokens
paths:
  /v2/tokens:
    get:
      operationId: getTokens
      summary: Get all tokens
      description: 'Returns the tokens in the top ~1000 pairs on PancakeSwap, sorted by reserves. Results are cached for 5 minutes.

        '
      tags:
      - Tokens
      responses:
        '200':
          description: Successful response with token data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokensResponse'
              example:
                updated_at: 1234567890
                data:
                  '0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82':
                    name: PancakeSwap Token
                    symbol: CAKE
                    price: '5.32'
                    price_BNB: '0.014'
  /v2/tokens/{address}:
    get:
      operationId: getToken
      summary: Get token by address
      description: 'Retrieves token information based on the provided BEP20 token address. Results are cached for 5 minutes.

        '
      tags:
      - Tokens
      parameters:
      - name: address
        in: path
        required: true
        description: BEP20 token contract address (checksummed)
        schema:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
        example: '0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82'
      responses:
        '200':
          description: Successful response with token data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SingleTokenResponse'
              example:
                updated_at: 1234567890
                data:
                  name: PancakeSwap Token
                  symbol: CAKE
                  price: '5.32'
                  price_BNB: '0.014'
        '400':
          description: Invalid token address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TokenData:
      type: object
      description: Token price and metadata
      properties:
        name:
          type: string
          description: Full token name
          example: PancakeSwap Token
        symbol:
          type: string
          description: Token ticker symbol
          example: CAKE
        price:
          type: string
          description: Token price in USD
          example: '5.32'
        price_BNB:
          type: string
          description: Token price in BNB
          example: '0.014'
    SingleTokenResponse:
      type: object
      properties:
        updated_at:
          type: integer
          format: int64
          description: Unix timestamp of the last data update
          example: 1234567890
        data:
          $ref: '#/components/schemas/TokenData'
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
          example: Invalid token address
    TokensResponse:
      type: object
      properties:
        updated_at:
          type: integer
          format: int64
          description: Unix timestamp of the last data update
          example: 1234567890
        data:
          type: object
          description: Map of token address to token data
          additionalProperties:
            $ref: '#/components/schemas/TokenData'