Skip to main content
Every market on Polymarket has a unique condition_id that you need to query the API.

How to find a condition ID

First, grab the market slug from the Polymarket URL — it’s the last part of the path:
https://polymarket.com/event/your-market-slug
Then use our helper scripts to convert the slug into its condition IDs:
# Clone the helper repo
git clone https://github.com/akhilkammila/poly-storage-public-helpers.git
cd poly-storage-public-helpers

# Install dependencies
pip install -r requirements.txt

# Find condition IDs for a market
python find_event_by_slug.py your-market-slug
The script will output all condition IDs associated with the event, which you can then pass to the API’s condition_id parameter.

poly-storage-public-helpers

Full source code and additional helper scripts for working with market data.