Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Polymarket Get market by id

APIドキュメント
https://api.sandbase.ai/v1/api/polymarket/markets-by-id

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

料金
$0.00044USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 1 件
毎日 100 回まで無料1日あたり最初の 100 回は無料です(組織内で共有)· 00:00 UTC にリセットされます。それ以降は従量課金です。

プレイグラウンド

入力
id
include_tag
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Polymarket Get market by id API

Returns the full record for one Polymarket market, including its prices, order book settings, fees, dates and status flags. It needs the numeric market id. You can set include_tag to ask for tag data as well.

Use cases

  • Show the current best bid, best ask and last trade price for a single prediction market.
  • Check whether a market is active, closed, archived or accepting orders before you place or display it.
  • Read the conditionId and clobTokenIds of a market to query its order book or trades.
  • Read the fee schedule and rewards settings for a market to estimate trading costs.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/markets-by-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": 559651}'

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

Parameters

NameTypeRequiredDescription
idintegerYesid
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
idThe market id as a string. It matches the id you sent in the request.
conditionIdThe condition id of the market, a 0x-prefixed hex string. The same value appears in clobRewards[].conditionId.
clobTokenIdsA JSON-encoded string that holds a list of token ids for the market outcomes. Parse it before use.
bestBid / bestAsk / lastTradePriceThe highest bid, the lowest ask and the last trade price for the market. Values are decimals such as 0.02.
liquidityLiquidity of the market, returned as a numeric string.
active / closed / archived / acceptingOrdersStatus flags that show whether the market is live, finished, archived or taking orders right now.
endDate / endDateIsoThe scheduled end of the market, as a full UTC timestamp and as a plain date.
descriptionThe resolution rules of the market in plain text.
feeSchedule.rate / feeSchedule.rebateRate / feeSchedule.takerOnlyFee settings for the market. takerOnly shows whether the fee applies only to takers.
clobRewards[].rewardsDailyRateThe daily rewards rate in a rewards entry for this market. Each entry also has startDate and endDate.

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

質問

FAQ

Polymarket Get market by id API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/polymarket/markets-by-id に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Polymarket Get market by id API の料金はいくらですか?

1回あたり $0.00044。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。

Polymarket Get market by id API はどのパラメータを受け付けますか?

必須: id (integer)。 任意: include_tag (boolean)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Polymarket Get market by id API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Polymarket の開発者アカウントまたは API key は必要ですか?

いいえ。Polymarket Get market by id は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Polymarket の API アクセスを別途申請する必要はありません。