API & Developers

Polymarket Token ID Lookup API Guide

Find a covered Polymarket market and retrieve its Up and Down CLOB token IDs from the PolyHistorical markets API.

To look up the CLOB token IDs associated with a supported Polymarket market, query the PolyHistorical markets endpoint and inspect the returned market object. Covered market records expose clob_token_up and clob_token_down alongside the market slug and ID.

Find a Market

Filter the market list by coin, interval, resolution status, or time range to narrow the results. Market records are returned newest first. The request requires an API key in the X-API-Key header.

curl -H "X-API-Key: YOUR_API_KEY" \\
  "https://api.polyhistorical.com/v1/markets?coin=BTC&market_type=5m&limit=10"

Read the Token IDs

Each matching market includes its slug and the token identifier for each outcome. Use the market detail endpoint when you already know the exact slug.

curl -H "X-API-Key: YOUR_API_KEY" \\
  "https://api.polyhistorical.com/v1/markets/btc-updown-5m-1774975800"
{
  "slug": "btc-updown-5m-1774975800",
  "market_id": "1793728",
  "clob_token_up": "...",
  "clob_token_down": "...",
  "winner": "Down"
}

Use the Right Identifier

FieldUse
slugRequest market details and historical snapshots from the PolyHistorical API.
market_idIdentify the associated market in supported market-ID workflows.
clob_token_up / clob_token_downIdentify the Up and Down outcome tokens when working with CLOB-oriented tooling.

Token IDs identify outcome tokens; they are not API keys and do not replace the market slug required by the historical snapshots endpoint. Availability depends on the market records covered by PolyHistorical.

Related Resources

Core Polymarket Data Resources