Get Polymarket event odds
Automatically get Polymarket event odds on polymarket.com. Current odds of every outcome of a Polymarket event, by event URL or slug. For each outcome: its Yes and No price (0 to 1, the market's quoted price, not the last trade), best bid and ask, last trade price, volume and liquidity in USD, end date, and whether it is closed. Also returns the event's title, end date, total volume and liquidity. A single-question event returns one outcome. Throws if the slug matches no event.
Input
url requiredEvent URL (https://polymarket.com/event/<slug>) or bare slug.
Output
slug requiredevent requiredoutcomes requiredurl optionalend_date optionalvolume_usd optionalliquidity_usd optionalFAQ
Get Polymarket market trades
Latest trades for one (sub-)market of a Polymarket event, by event URL or slug. For multi-outcome events (e.g. "World Cup Winner"), `outcome` picks the sub-market ("Switzerland"); each trade's own outcome is then Yes/No on that binary market — so a bet backing the outcome is either a buy of Yes or a sell of No. Returns event, market, conditionId, n, and trades (time, side, outcome, price, shares, amountUsd, user, wallet, tx), newest first.
Search Polymarket markets
Search Polymarket events by keyword. Returns matching markets with title, URL, volume, end date, and current top outcome.
Get Polymarket order book
Order book of one outcome of a Polymarket event: best bid and ask, spread, midpoint, and the resting bids and asks (price from 0 to 1, size in shares) nearest the spread, with total shares and USD on each side. Takes the event URL or slug, the outcome name for multi-outcome events, Yes or No, and how many price levels to return. A market with no orders returns empty sides and null best prices. Throws if the event or outcome is not found.
