Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Polymarket Get event by id

Dokumentasi API
https://api.sandbase.ai/v1/api/polymarket/events-by-id

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

Harga
$0.00044USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 2 opsional
100 panggilan gratis / hari100 panggilan pertama per hari gratis (dibagi per organisasi) · Direset pada 00:00 UTC. Setelah itu, bayar per panggilan.

Playground

Input
id
include_chat
include_template
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Polymarket$0.00044 per panggilanJSON
Polymarket$0.012 per panggilanJSON
Polymarket$0.012 per panggilanJSON
Polymarket$0.012 per panggilanJSON
Polymarket$0.012 per panggilanJSON
Polymarket$0.012 per panggilanJSON

Pertanyaan

FAQ

Bagaimana cara menggunakan API Polymarket Get event by id?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/polymarket/events-by-id dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Polymarket Get event by id?

$0.00044 per panggilan. Setiap organisasi mendapat 100 panggilan gratis per hari UTC, dibagi di seluruh API SandBase yang memenuhi syarat termasuk yang ini; setelah itu setiap panggilan ditagihkan dengan harga ini dari saldo SandBase Anda. Tidak ada langganan.

Parameter apa yang diterima API Polymarket Get event by id?

Wajib: id (integer). Opsional: include_chat (boolean) dan include_template (boolean). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Polymarket Get event by id?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Polymarket?

Tidak. Polymarket Get event by id berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Polymarket secara terpisah.