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

Polymarket Get event by id

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

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

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

プレイグラウンド

入力
id
include_chat
include_template
出力準備完了

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

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

API README

Polymarket Get event by id API

Returns one Polymarket event by its numeric id. The response includes the event details, its markets, the series it belongs to, and its tags. You can also set include_chat and include_template to add extra data.

Use cases

  • Load the title, dates, resolution source and status of a single Polymarket event after you found its id in a list.
  • Read the markets inside an event to get each market's condition ID, CLOB token IDs and last trade price.
  • Check whether an event is closed and when it closed.
  • Find which series and tags an event belongs to, for grouping sports events.

Request

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

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

Parameters

NameTypeRequiredDescription
idintegerYesid
include_chatbooleanNoinclude_chat
include_templatebooleanNoinclude_template

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/Event.json",
  "active": true,
  "archived": false,
  "category": "Sports",
  "closed": true,
  "closedTime": "2022-07-27T14:40:02.074Z",
  "commentCount": 8128,
  "competitive": 0,
  "createdAt": "2022-07-27T14:40:02.074Z",
  "creationDate": "2021-12-04T00:00:00Z",
  "cyom": false,
  "deploying": false
}

Response fields

FieldMeaning
id / slug / tickerIdentifiers for the event. id is a numeric string, and slug and ticker are text names you can use in URLs and lookups.
active / closed / archivedStatus flags for the event. In this example the event is closed and still marked active.
startDate / endDate / closedTimeISO 8601 timestamps for when the event starts, ends and was closed.
description / resolutionSourceThe resolution rules in plain text and the URL of the source used to settle the event.
category / seriesSlugThe event category, such as Sports, and the slug of the series it belongs to.
commentCountThe number of comments on the event.
markets[].id / markets[].conditionIdThe market's Polymarket id and its on-chain condition ID.
markets[].clobTokenIdsA JSON-encoded string that lists the CLOB token IDs for the market's outcomes.
markets[].bestBid / markets[].bestAsk / markets[].lastTradePriceThe best bid, best ask and last trade price of the market.
series[].title / series[].recurrenceThe name of the series and how often it recurs, such as daily.

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 event by id API はどのように使いますか?

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

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

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

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

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

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

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

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

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