Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Polymarket Get market by slug

API दस्तावेज़
https://api.sandbase.ai/v1/api/polymarket/markets-slug

Get market by slug from Polymarket. Returns the official Polymarket API response unchanged.

मूल्य
$0.00044USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 1 वैकल्पिक

प्लेग्राउंड

इनपुट
slug
include_tag
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Polymarket Get market by slug API

Returns one Polymarket market as a JSON object, looked up by its URL slug. The response includes current prices, order book status, dates, fee settings, and the parent event. The only required input is slug.

Use cases

  • Show the current best bid, best ask and last trade price for a single prediction market.
  • Read the resolution rules in description and the endDate before you display or analyze a market.
  • Get the conditionId and clobTokenIds of a market so you can query order book and price APIs.
  • Pull the parent event's volume, liquidity and open interest to size up a market.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/markets-slug" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug": "xi-jinping-out-before-2027"}'

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

Parameters

NameTypeRequiredDescription
slugstringYesslug
include_tagbooleanNoinclude_tag

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/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…"
}

Response fields

FieldMeaning
id / conditionIdThe market's numeric ID and its condition ID (a hex string). Use conditionId to match the market in other Polymarket calls.
clobTokenIdsA JSON string holding the token IDs for the market's outcomes. Parse it before use.
bestBid / bestAsk / lastTradePriceCurrent best buy price, best sell price and last trade price. In this example they are 0.02, 0.021 and 0.02.
active / closed / archived / acceptingOrdersFlags that show whether the market is live, finished or hidden, and whether it takes orders now.
descriptionThe resolution rules in plain text. The response may cut long text.
endDate / endDateIsoWhen the market ends, as a full UTC timestamp and as a plain date.
competitiveA score between 0 and 1 for the market. The response gives no further definition.
feesEnabled / feeType / feeScheduleWhether fees apply, the fee category, and the fee rates. feeSchedule has rate, rebateRate, exponent and takerOnly.
clobRewards[].rewardsDailyRateThe daily rewards rate set for this market, with startDate and endDate for the program.
events[].title / volume / liquidity / openInterestThe parent event's title and its trading volume, liquidity and open interest. volume1wk and volume1mo give recent volume.

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 market by slug API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/polymarket/markets-slug पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Polymarket Get market by slug API की लागत कितनी है?

$0.00044 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Polymarket Get market by slug API कौन-से parameters स्वीकार करती है?

आवश्यक: slug (string)। वैकल्पिक: include_tag (boolean)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Polymarket Get market by slug API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Polymarket developer account या API key चाहिए?

नहीं। Polymarket Get market by slug SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Polymarket API access के लिए आवेदन करने की आवश्यकता नहीं है।