Use the /sports endpoint to discover leagues, then query by series_id:
Copy
Ask AI
# Get all supported sports leaguescurl "https://gamma-api.polymarket.com/sports"# Get events for a specific league (e.g., NBA series_id=10345)curl "https://gamma-api.polymarket.com/events?series_id=10345&active=true&closed=false"# Filter to just game bets (not futures) using tag_id=100639curl "https://gamma-api.polymarket.com/events?series_id=10345&tag_id=100639&active=true&closed=false&order=startTime&ascending=true"
/sports only returns automated leagues. For others (UFC, Boxing, F1, Golf, Chess), use tag IDs via /events?tag_id=<tag_id>.
Use /tags to discover all available categories, then filter events:
Copy
Ask AI
# Get all available tagscurl "https://gamma-api.polymarket.com/tags?limit=100"# Query events by topiccurl "https://gamma-api.polymarket.com/events?tag_id=2&active=true&closed=false"
Each event response includes a tags array, useful for discovering categories from live data and building your own tag mapping.