Sand AISand AI MAGI-2ตอนนี้ MAGI-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 / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 2 ไม่บังคับ
100 คำขอฟรี / วันคำขอ 100 ครั้งแรกต่อวันฟรี (ใช้ร่วมกันภายในองค์กร) · รีเซ็ตเวลา 00:00 UTC จากนั้นคิดค่าบริการตามจำนวนคำขอ

Playground

อินพุต
id
include_chat
include_template
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Polymarket Get event by id API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/polymarket/events-by-id โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Polymarket Get event by id API ราคาเท่าไร?

$0.00044 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน

Polymarket Get event by id API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: id (integer). ตัวเลือก: include_chat (boolean) และ include_template (boolean). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Polymarket Get event by id API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Polymarket ไหม?

ไม่จำเป็น Polymarket Get event by id ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Polymarket API แยกต่างหาก