idintegererforderlich
id
https://api.sandbase.ai/v1/api/polymarket/markets-by-idGet market by id from Polymarket. Returns the official Polymarket API response unchanged.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
conditionId and clobTokenIds of a market to query its order book or trades.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.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | id |
include_tag | boolean | No | include_tag |
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…"
}
| Field | Meaning |
|---|---|
id | The market id as a string. It matches the id you sent in the request. |
conditionId | The condition id of the market, a 0x-prefixed hex string. The same value appears in clobRewards[].conditionId. |
clobTokenIds | A JSON-encoded string that holds a list of token ids for the market outcomes. Parse it before use. |
bestBid / bestAsk / lastTradePrice | The highest bid, the lowest ask and the last trade price for the market. Values are decimals such as 0.02. |
liquidity | Liquidity of the market, returned as a numeric string. |
active / closed / archived / acceptingOrders | Status flags that show whether the market is live, finished, archived or taking orders right now. |
endDate / endDateIso | The scheduled end of the market, as a full UTC timestamp and as a plain date. |
description | The resolution rules of the market in plain text. |
feeSchedule.rate / feeSchedule.rebateRate / feeSchedule.takerOnly | Fee settings for the market. takerOnly shows whether the fee applies only to takers. |
clobRewards[].rewardsDailyRate | The daily rewards rate in a rewards entry for this market. Each entry also has startDate and endDate. |
createdAt use ISO 8601 UTC format. endDateIso is a date only.clobTokenIds to Polymarket Get order book to see the live order book.$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
idintegererforderlichid
include_tagbooleaninclude_tag
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Polymarket Get market by idDiese API Polymarket | $0.00044 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/polymarket/markets-by-id mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.00044 pro Aufruf. Jede Organisation erhält 100 kostenlose Aufrufe pro UTC-Tag, gemeinsam über alle berechtigten SandBase APIs einschließlich dieser hier; danach wird jeder Aufruf zu diesem Preis von Ihrem SandBase-Guthaben abgerechnet. Es gibt kein Abo.
Erforderlich: id (integer). Optional: include_tag (boolean). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Polymarket Get market by id läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Polymarket API beantragen.