The markets endpoints give you access to every active Polymarket market, enriched with probability changes across 1-day, 7-day, and 30-day windows derived from CLOB price history. You can fetch all markets, look up a single market by condition ID, or search by free text. All responses come from a server-side cache with a 2-minute TTL, so you get fast reads without hammering the upstream Gamma API.Documentation Index
Fetch the complete documentation index at: https://0x-250ca30e.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
All market endpoints are rate limited to 60 requests per minute per IP. Exceeding the limit returns HTTP 429 with a
Retry-After: 60 header.GET /api/markets
Returns a list of all active Polymarket markets, enriched with CLOB price history data for the top markets by volume.Query parameters
Maximum number of markets to return per page. The server fetches up to 2,000 markets from Polymarket and returns them all by default.
Number of markets to skip before returning results. Use with
limit to paginate through large result sets.Response fields
Each item in the response array contains:The Polymarket condition ID for this market (prefixed with
0x).The full text of the market question, for example
"Will the Fed cut rates in June 2025?".URL-safe identifier for the market, for example
"fed-rate-cut-june-2025".The current YES probability, expressed as a number from 0 to 100.
Total lifetime trading volume in USD.
Current available liquidity in USD.
Change in YES probability over the past 24 hours, in percentage points. Positive values mean the probability rose.
null when price history data is unavailable.Change in YES probability over the past 7 days, in percentage points. Only populated for the top 20 markets by volume.
Change in YES probability over the past 30 days, in percentage points. Only populated for the top 20 markets by volume.
ISO 8601 timestamp for when the market closes, for example
"2025-06-30T00:00:00Z".The CLOB YES token ID for this market. Use this value with the order book endpoints to fetch live bids, asks, and price history.
Caching
The server caches the full market list in memory for 2 minutes. This keeps response times fast without placing unnecessary load on the upstream Polymarket API. Data is at most 2 minutes old.Example
Example response
GET /api/markets/search
Returns markets whose question text matches a free-text query. The search is case-insensitive and strips special characters before matching.Query parameters
The search query. Minimum 2 characters, maximum 200 characters. Special characters (
& = ? # %) are stripped before matching. The engine first checks known category keywords (election, crypto, sports, economics, tech) and falls back to a word-level text search.Maximum number of results to return. Capped at 50.
Example
Example response
Error responses
| Status | Meaning |
|---|---|
429 | Rate limit exceeded. Retry after 60 seconds. |
502 | Upstream Polymarket Gamma API is unavailable. |
500 | Unexpected server error. Check the error field in the response body. |