idintegerआवश्यक
id
https://api.sandbase.ai/v1/api/polymarket/markets-by-idGet market by id from Polymarket. Returns the official Polymarket API response unchanged.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
idintegerआवश्यकid
include_tagbooleaninclude_tag
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| 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 |
प्रश्न
https://api.sandbase.ai/v1/api/polymarket/markets-by-id पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.00044 प्रति call। हर organization को प्रति UTC day 100 निःशुल्क calls मिलती हैं, जो इस सहित योग्य SandBase APIs के बीच साझा होती हैं; उसके बाद हर call का बिल आपकी SandBase balance से इस कीमत पर लिया जाता है। कोई subscription नहीं है।
आवश्यक: id (integer)। वैकल्पिक: include_tag (boolean)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Polymarket Get market by id SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Polymarket API access के लिए आवेदन करने की आवश्यकता नहीं है।