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, 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
A sports market’ssportsMarketType field 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 to listMarkets to filter.
- TypeScript
- Python
- API
Call
Filter markets by type:
fetchSportsMarketTypes() on a PublicClient or SecureClient to list the
supported market types.Output: string[]
Output: string[]
Example
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