idintegerобязательно
id
https://api.sandbase.ai/v1/api/polymarket/markets-by-idGet market by id from Polymarket. Returns the official Polymarket API response unchanged.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
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.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
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 в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
idintegerобязательноid
include_tagbooleaninclude_tag
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Polymarket Get market by idЭтот 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 |
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/polymarket/markets-by-id, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.00044 за вызов. Каждой организации предоставляется 100 бесплатных вызовов в сутки по UTC, общих для всех подходящих API SandBase, включая этот; после этого каждый вызов тарифицируется по этой цене и списывается с баланса SandBase. Подписка не требуется.
Обязательные: id (integer). Необязательные: include_tag (boolean). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Polymarket Get market by id работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Polymarket.