polymarket events namespace provides commands for retrieving event metadata, including all outcome markets, condition IDs, and current prices.
Get an event
Retrieve full event details including all outcome markets.The event slug from the URL path. Extract from URLs like
https://polymarket.com/event/democratic-presidential-nominee-2028 → democratic-presidential-nominee-2028Usage
Output structure
The response includes:- Event metadata (title, description, end date)
marketsarray containing all outcome marketsconditionIdfor each outcome- Current prices via
outcomePrices - Volume and liquidity data
Example output
Parsing outcome prices
SinceoutcomePrices is a JSON string, parse it before accessing prices:
Python
JavaScript
In binary markets,
outcomePrices[0] is the YES price and outcomePrices[1] is the NO price. Prices are in the range 0.00 to 1.00.Event vs market detection
Use URL paths to determine which command to use:- URL contains
/event/→ usepolymarket events get - URL contains
/market/→ usepolymarket markets get - Ambiguous slug → try
events getfirst; if 404, fall back tomarkets get
Extracting condition IDs
TheconditionId from event output is required for:
- Getting decimal token IDs via
polymarket clob market - Fetching top holders via
polymarket data holders - Calculating open interest via
polymarket data open-interest
Workflow example
Common use cases
Finding all outcomes in a race
When an event has multiple possible outcomes (e.g., presidential nominees), useevents get to see all markets in one response.
markets array will include entries for Newsom, Whitmer, Shapiro, etc.
Comparing outcome probabilities
Parse theoutcomePrices for each market in the markets array to compare implied probabilities across all outcomes.
The sum of YES prices across all outcomes in an event may exceed 1.00 due to the 1% house vig. This is normal and not an error.