# Polymarket API on SandBase

> Read Polymarket prediction-market data for market research and wallet analytics: markets, events, trades, positions, leaderboards, cohorts, and crypto up/down markets.

Source: https://www.sandbase.ai/apis/polymarket

- Endpoints: 59
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Endpoints

- [Polymarket Builders Leaderboard](https://www.sandbase.ai/apis/polymarket/builders-leaderboard.md): $0.012 per call
  Leaderboard of Polymarket builders (apps routing orders) by volume for a time period.
- [Polymarket Builders Volume](https://www.sandbase.ai/apis/polymarket/builders-volume.md): $0.012 per call
  Daily, weekly or monthly volume of Polymarket builders over time.
- [Polymarket Closed Positions](https://www.sandbase.ai/apis/polymarket/closed-positions.md): $0.012 per call
  A wallet's closed positions with realized PnL, newest first, from the Data API v2.
- [Polymarket Get CLOB market info](https://www.sandbase.ai/apis/polymarket/clob-markets.md): $0.012 per call
  Returns all CLOB-level parameters for a market in a single call — tokens, tick size, base fees, rewards, RFQ status, and fee details.
- [Polymarket Get comments by comment id](https://www.sandbase.ai/apis/polymarket/comments-by-id.md): $0.00044 per call
  Get comments by comment id from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get comments by user address](https://www.sandbase.ai/apis/polymarket/comments-user-address.md): $0.00044 per call
  Get comments by user address from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get current active rewards configurations](https://www.sandbase.ai/apis/polymarket/rewards-markets-current.md): $0.012 per call
  Returns the current active rewards configurations for markets.
- [Polymarket Get event by id](https://www.sandbase.ai/apis/polymarket/events-by-id.md): $0.00044 per call
  Get event by id from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get event by slug](https://www.sandbase.ai/apis/polymarket/events-slug.md): $0.00044 per call
  Get event by slug from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get event tags](https://www.sandbase.ai/apis/polymarket/events-tags.md): $0.00044 per call
  Get event tags from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get fee rate](https://www.sandbase.ai/apis/polymarket/fee-rate.md): $0.012 per call
  Retrieves the base fee rate for a specific token ID. The fee rate can be provided either as a query parameter or as a path parameter.
- [Polymarket Get fee rate by path parameter](https://www.sandbase.ai/apis/polymarket/fee-rate-by-token-id.md): $0.012 per call
  Retrieves the base fee rate for a specific token ID using the token ID as a path parameter.
- [Polymarket Get last trade price](https://www.sandbase.ai/apis/polymarket/last-trade-price.md): $0.012 per call
  Retrieves the last trade price and side for a specific token ID. Returns default values of 0.5 for price and empty string for side if no trades found.
- [Polymarket Get market by id](https://www.sandbase.ai/apis/polymarket/markets-by-id.md): $0.00044 per call
  Get market by id from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get market by slug](https://www.sandbase.ai/apis/polymarket/markets-slug.md): $0.00044 per call
  Get market by slug from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get market by token](https://www.sandbase.ai/apis/polymarket/markets-by-token.md): $0.00044 per call
  Get market by token from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get market price](https://www.sandbase.ai/apis/polymarket/price.md): $0.012 per call
  Retrieves the best market price for a specific token ID and side (bid or ask). Returns the best bid price for BUY side or best ask price for SELL side.
- [Polymarket Get market tags by id](https://www.sandbase.ai/apis/polymarket/markets-tags.md): $0.00044 per call
  Get market tags by id from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get midpoint price](https://www.sandbase.ai/apis/polymarket/midpoint.md): $0.012 per call
  Retrieves the midpoint price for a specific token ID. The midpoint is calculated as the average of the best bid and best ask prices.
- [Polymarket Get multiple markets with rewards](https://www.sandbase.ai/apis/polymarket/rewards-markets-multi.md): $0.012 per call
  Returns multiple markets with rewards and supports filtering and sorting.
- [Polymarket Get order book](https://www.sandbase.ai/apis/polymarket/book.md): $0.012 per call
  Retrieves the order book summary for a specific token ID. Includes bids, asks, market details, and last trade price.
- [Polymarket Get prices history](https://www.sandbase.ai/apis/polymarket/prices-history.md): $0.012 per call
  Get prices history from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get public profile by wallet address](https://www.sandbase.ai/apis/polymarket/public-profile.md): $0.00044 per call
  Get public profile by wallet address from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get raw rewards for a specific market](https://www.sandbase.ai/apis/polymarket/rewards-markets.md): $0.012 per call
  Get raw rewards for a specific market from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get related tags (relationships) by tag id](https://www.sandbase.ai/apis/polymarket/tags-related-tags.md): $0.00044 per call
  Get related tags (relationships) by tag id from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get related tags (relationships) by tag slug](https://www.sandbase.ai/apis/polymarket/tags-slug-related-tags.md): $0.00044 per call
  Get related tags (relationships) by tag slug from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get sampling markets](https://www.sandbase.ai/apis/polymarket/sampling-markets.md): $0.012 per call
  Returns sampling markets with richer descriptive metadata, token summaries, and tags.
- [Polymarket Get sampling simplified markets](https://www.sandbase.ai/apis/polymarket/sampling-simplified-markets.md): $0.012 per call
  Returns sampling simplified markets with reward and token summaries.
- [Polymarket Get series by id](https://www.sandbase.ai/apis/polymarket/series-by-id.md): $0.00044 per call
  Get series by id from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get server time](https://www.sandbase.ai/apis/polymarket/time.md): $0.012 per call
  Returns the current Unix timestamp of the server. This can be used to synchronize client time with server time.
- [Polymarket Get simplified markets](https://www.sandbase.ai/apis/polymarket/simplified-markets.md): $0.012 per call
  Returns simplified CLOB markets with token and reward summaries.
- [Polymarket Get sports metadata information](https://www.sandbase.ai/apis/polymarket/sports.md): $0.00044 per call
  Get sports metadata information from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get spread](https://www.sandbase.ai/apis/polymarket/spread.md): $0.012 per call
  Retrieves the spread for a specific token ID. The spread is the difference between the best ask and best bid prices.
- [Polymarket Get supported assets](https://www.sandbase.ai/apis/polymarket/supported-assets.md): $0.012 per call
  Get supported assets for deposits and withdrawals on the bridge.
- [Polymarket Get tag by id](https://www.sandbase.ai/apis/polymarket/tags-by-id.md): $0.00044 per call
  Get tag by id from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get tag by slug](https://www.sandbase.ai/apis/polymarket/tags-slug.md): $0.00044 per call
  Get tag by slug from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get tags related to a tag id](https://www.sandbase.ai/apis/polymarket/tags-related-tags-tags.md): $0.00044 per call
  Get tags related to a tag id from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get tags related to a tag slug](https://www.sandbase.ai/apis/polymarket/tags-slug-related-tags-tags.md): $0.00044 per call
  Get tags related to a tag slug from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Get tick size](https://www.sandbase.ai/apis/polymarket/tick-size.md): $0.012 per call
  Retrieves the minimum tick size (price increment) for a specific token ID. The tick size can be provided either as a query parameter or as a path parameter.
- [Polymarket Get tick size by path parameter](https://www.sandbase.ai/apis/polymarket/tick-size-by-token-id.md): $0.012 per call
  Retrieves the minimum tick size (price increment) for a specific token ID using the token ID as a path parameter.
- [Polymarket Get valid sports market types](https://www.sandbase.ai/apis/polymarket/sports-market-types.md): $0.00044 per call
  Get valid sports market types from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket List comments](https://www.sandbase.ai/apis/polymarket/comments.md): $0.00044 per call
  List comments from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket List events](https://www.sandbase.ai/apis/polymarket/events.md): $0.00044 per call
  List events with offset based pagination and filter parameters.
- [Polymarket List events (keyset pagination)](https://www.sandbase.ai/apis/polymarket/events-keyset.md): $0.00044 per call
  List events with cursor based keyset pagination. Use next_cursor as after_cursor to fetch the next page. The offset parameter is rejected.
- [Polymarket List markets](https://www.sandbase.ai/apis/polymarket/markets.md): $0.00044 per call
  List markets from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket List markets (keyset pagination)](https://www.sandbase.ai/apis/polymarket/markets-keyset.md): $0.00044 per call
  List markets (keyset pagination) from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket List series](https://www.sandbase.ai/apis/polymarket/series.md): $0.00044 per call
  List series from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket List tags](https://www.sandbase.ai/apis/polymarket/tags.md): $0.00044 per call
  List tags from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket List teams](https://www.sandbase.ai/apis/polymarket/teams.md): $0.00044 per call
  List teams from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Live Event Volume](https://www.sandbase.ai/apis/polymarket/live-volume.md): $0.00044 per call
  Live taker volume for an event by event ID, in total and per market.
- [Polymarket Market Holders](https://www.sandbase.ai/apis/polymarket/holders.md): $0.00044 per call
  Top holders of each outcome token in a market by condition ID, with balances and optional PnL.
- [Polymarket Market Positions](https://www.sandbase.ai/apis/polymarket/market-positions.md): $0.012 per call
  Positions held in one market by condition ID, with each holder wallet, size, value and PnL.
- [Polymarket Open Interest](https://www.sandbase.ai/apis/polymarket/oi.md): $0.00044 per call
  Open interest in USDC for one or more markets by condition ID.
- [Polymarket Portfolio Value](https://www.sandbase.ai/apis/polymarket/value.md): $0.012 per call
  Current USD value of a wallet's open positions, optionally limited to given markets.
- [Polymarket Search markets, events, and profiles](https://www.sandbase.ai/apis/polymarket/public-search.md): $0.012 per call
  Search markets, events, and profiles from Polymarket. Returns the official Polymarket API response unchanged.
- [Polymarket Trader Leaderboard](https://www.sandbase.ai/apis/polymarket/leaderboard.md): $0.012 per call
  Polymarket trader leaderboard by PnL or volume, for a time period and category.
- [Polymarket User Stats](https://www.sandbase.ai/apis/polymarket/traded.md): $0.012 per call
  A wallet's profile stats: total trades, biggest win, profile views and join date.
- [Polymarket Wallet Activity](https://www.sandbase.ai/apis/polymarket/activity.md): $0.012 per call
  A wallet's activity feed: trades, splits, merges, redemptions, rewards and conversions, with time-range and type filters.
- [Polymarket Wallet Positions](https://www.sandbase.ai/apis/polymarket/positions.md): $0.012 per call
  A wallet's positions across their lifecycle (open, redeemable, mergeable, closed), with size, average price, current value and PnL.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
