Events
An event groups one or more markets under a shared question set. A single-market event asks one yes/no question; a multi-market event splits a broader question into individual outcomes, such as one market per candidate in an election.Fetch an Event
Fetch an event when you already know its identifier.- TypeScript
- Python
- API
Call You can also fetch an event by its Polymarket URL or slug:
fetchEvent() on a PublicClient or SecureClient to fetch an event by ID.Output: Event
Output: Event
List Events
List events when you need a browsable or filterable feed.- TypeScript
- Python
- API
Call
Filter by tag by passing one or more numeric tag IDs:
listEvents() on a PublicClient or SecureClient to page through events.Output: Event[]
Output: Event[]
Markets
A market is a single yes/no question with two outcome token IDs: one for YES and one for NO.Fetch a Market
Fetch a market when you already know its identifier.- TypeScript
- Python
- API
Call You can also fetch a market by its Polymarket URL or slug:
fetchMarket() on a PublicClient or SecureClient to fetch a market by ID.Output: Market
Output: Market
List Markets
List markets when you need a filterable feed, such as browsing by tag, sport, or liquidity.- TypeScript
- Python
- API
Call
listMarkets() on a PublicClient or SecureClient to page through markets.Output: Market[]
Output: Market[]
Example
Series
A series groups a recurring set of events under one theme. For example, a weekly Fed rate-decision series has one event per meeting, and a season-long league series has one event per matchup.Fetch a Series
Fetch a series by ID.- TypeScript
- Python
- API
Call
fetchSeries() on a PublicClient or SecureClient to fetch a series by ID.Output: Series
Output: Series
Example
List Series
- TypeScript
- Python
- API
Call
listSeries() on a PublicClient or SecureClient to page through series.Output: Series[]
Output: Series[]
Example
Sports
Sports metadata maps a sport to its Polymarket tags and market types. Use it to browse sports markets by league, look up the valid market types for filtering, find events associated with a game, or resolve team rosters.List Sports
- TypeScript
- Python
- API
Call
listSports() on a PublicClient or SecureClient to list supported sports.Output: SportsMetadata[]
Output: SportsMetadata[]
Example
Sports Market Types
Every sports market carries a market type that tells you which line it prices: a moneyline (which team wins), a spread (win by how much), or a total (over/under a combined score). Fetch the valid values, then pass one or more of them when listing markets to filter.- TypeScript
- Python
- API
Call
Filter markets by type:
fetchSportsMarketTypes() on a PublicClient or SecureClient to list the
supported market types. When present, a market reports its type in
sports.sportsMarketType.Output: string[]
Output: string[]
Example
List Events for a Game
A sports game’s markets can be split across a main event and companion events. Depending on the game, companion events may cover player props, half-time and second-half results, exact score, or additional lines grouped under a more-markets event. Their slugs extend the main event’s slug with a suffix such as-player-props, -halftime-result, or -more-markets.
Append a known suffix when you need one companion event. To discover current companion events, use the listing workflow instead of guessing each suffix.
- TypeScript
- Python
- API
Call To list the game’s current events, fetch the main event and read
When present,
fetchEvent() on a PublicClient or SecureClient. To fetch only the
more-markets event, append -more-markets to the main event’s slug.sports.gameId, then
pass it to listEvents(). Not every event has a game ID, so check it before filtering.Output: Event Page
Output: Event Page
Example
market.sports.sportsMarketType identifies lines in the more-markets
event such as first_half_totals, both_teams_to_score, and soccer_team_totals.Identify Home and Away Teams
Sports event responses identify which team is designated home and which is designated away. Use this value when aligning Polymarket data with an external sports feed.- TypeScript
- Python
- API
Use
Each
PublicClient.fetchEvent() or SecureClient.fetchEvent() to identify the teams.Output: Team
Output: Team
Team.ordering value is TeamOrdering.Home, TeamOrdering.Away, or null.List Teams
- TypeScript
- Python
- API
Call
listTeams() on a PublicClient or SecureClient to page through teams.Output: Team[]
Output: Team[]
Example
Search
Search returns matching events, tags, and profiles for a free-text query in one call. Use it for a search bar or a “jump to market” input.- TypeScript
- Python
- API
Call
search() on a PublicClient or SecureClient to search Polymarket.Output: SearchResults
Output: SearchResults
Tags
Tags group events and markets by categories, leagues, people, and themes. Each tag can link to multiple ranked related tags, forming a directed graph rather than a strict tree. Use these relationships to expand discovery from one topic to adjacent topics.List Tags
Browse the available tags, for example to build a category filter.- TypeScript
- Python
- API
Call
listTags() on a PublicClient or SecureClient to page through tags.Output: Tag[]
Output: Tag[]
Example
Fetch a Tag
Fetch a tag by slug to resolve its numeric ID. You’ll need that ID for thetagId/tagIds filters used earlier in Events and Markets.
- TypeScript
- Python
- API
Call
fetchTag() on a PublicClient or SecureClient to fetch a tag by slug.Output: Tag
Output: Tag
Example
Fetch Tag Relationships
Get the relationship records that link a tag to related tags, useful for building “you might also like” surfaces. Each record is a lightweight pointer (a rank and the two numeric tag IDs), not a full tag object.- TypeScript
- Python
- API
Call
fetchRelatedTags() on a PublicClient or SecureClient to fetch a tag’s
relationship records.Fetch Related Tags
Get the fullTag objects for a tag’s related tags in one call, skipping the extra round trip to fetch each related tag by ID.
- TypeScript
- Python
- API
Call
fetchRelatedTagResources() on a PublicClient or SecureClient to fetch the
related tag objects.Output: Tag[]
Output: Tag[]
Example