Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Polymarket Get market by slug

API 文档
https://api.sandbase.ai/v1/api/polymarket/markets-slug

Get market by slug from Polymarket. Returns the official Polymarket API response unchanged.

价格
$0.00044美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 1 个可选

Playground

输入
slug
include_tag
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

Polymarket Get market by slug API

Returns one Polymarket market as a JSON object, looked up by its URL slug. The response includes current prices, order book status, dates, fee settings, and the parent event. The only required input is slug.

Use cases

  • Show the current best bid, best ask and last trade price for a single prediction market.
  • Read the resolution rules in description and the endDate before you display or analyze a market.
  • Get the conditionId and clobTokenIds of a market so you can query order book and price APIs.
  • Pull the parent event's volume, liquidity and open interest to size up a market.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/markets-slug" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug": "xi-jinping-out-before-2027"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
slugstringYesslug
include_tagbooleanNoinclude_tag

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "$schema": "https://gamma-api.polymarket.com/schemas/Market.json",
  "acceptingOrders": true,
  "acceptingOrdersTimestamp": "2025-07-03T20:36:33Z",
  "active": true,
  "approved": true,
  "archived": false,
  "automaticallyActive": true,
  "bestAsk": 0.021,
  "bestBid": 0.02,
  "clearBookOnStart": true,
  "clobRewards": [
    {
      "assetAddress": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
      "conditionId": "0xa467b14d51f01b957109d9cbb1d6c124fab2a089d52ed8f471d23c2812e743b7",
      "endDate": "2500-12-31",
      "id": "303430",
      "rewardsAmount": 0,
      "rewardsDailyRate": 5,
      "startDate": "2026-09-16"
    }
  ],
  "clobTokenIds": "[\"323382…"
}

Response fields

FieldMeaning
id / conditionIdThe market's numeric ID and its condition ID (a hex string). Use conditionId to match the market in other Polymarket calls.
clobTokenIdsA JSON string holding the token IDs for the market's outcomes. Parse it before use.
bestBid / bestAsk / lastTradePriceCurrent best buy price, best sell price and last trade price. In this example they are 0.02, 0.021 and 0.02.
active / closed / archived / acceptingOrdersFlags that show whether the market is live, finished or hidden, and whether it takes orders now.
descriptionThe resolution rules in plain text. The response may cut long text.
endDate / endDateIsoWhen the market ends, as a full UTC timestamp and as a plain date.
competitiveA score between 0 and 1 for the market. The response gives no further definition.
feesEnabled / feeType / feeScheduleWhether fees apply, the fee category, and the fee rates. feeSchedule has rate, rebateRate, exponent and takerOnly.
clobRewards[].rewardsDailyRateThe daily rewards rate set for this market, with startDate and endDate for the program.
events[].title / volume / liquidity / openInterestThe parent event's title and its trading volume, liquidity and open interest. volume1wk and volume1mo give recent volume.

Notes

Pricing

$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相关 APIs

全部 APIs
API价格响应
Polymarket$0.00044 每次调用JSON
Polymarket$0.012 每次调用JSON
Polymarket$0.012 每次调用JSON
Polymarket$0.012 每次调用JSON
Polymarket$0.012 每次调用JSON
Polymarket$0.012 每次调用JSON

问题

常见问题

如何使用 Polymarket Get market by slug API?

向 https://api.sandbase.ai/v1/api/polymarket/markets-slug 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Polymarket Get market by slug API 的价格是多少?

每次调用 $0.00044,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Polymarket Get market by slug API 接受哪些参数?

必填:slug (string)。 可选:include_tag (boolean)。 Parameters 表和本页的 Playground 列出了每个字段。

Polymarket Get market by slug API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Polymarket 开发者账户或 API key 吗?

不需要。Polymarket Get market by slug 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Polymarket API 访问权限。