Polymarket API

Polymarket 市场 API

按关键词或按活跃度排序,发现 Polymarket 预测市场(问题、结果价格、交易量、流动性和截止日期),以标准化 JSON 返回。

US$5.28/千条结果,按请求付费,无需订阅。

Polymarket | Prediction markets
polymarket.com/markets?_q=election
PolymarketSearch polymarkets…Go to polymarket.us
TrendingCombosPerpsBreakingNew|PoliticsSportsCryptoEsportsTech

Elections predictions & odds · 1,854 polymarkets

🗳️

Politics · 2028 US Presidential Election

Will the Democratic nominee win the 2028 US presidential election?

$48M Vol.$3.9M Liq.3120

52%

34%

11%

Search events…

Sort by

Trending

Liquidity

Volume

Newest

Ending Soon

Competitive

ActiveResolvedAll
API 返回的内容items[0]
{
"id": "0x4f2a9b1c7d8e",
"url": "https://polymarket.com/event/us-2028-presidential-election-winner",
"title": "Will the Democratic nominee win the 2028 US presidential election?",
"eventTitle": "2028 US Presidential Election",
"status": "active",
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/2028-election.png",
"volumeUsd": 48250000,
"volume24hUsd": 1620000,
... 还有 19 个字段
}
可用率
100.00%
30d · 15 次调用
请求数
15
30d · 按周,近 12 周
响应时间
5.9s
中位数 · 30d

调用方式

一个请求获取 Polymarket 市场

import os, requests

res = requests.post(
    "https://api.getanyapi.com/v1/run/polymarket.markets",
    headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"},
    json={
        "query": "election",
        "limit": 10,
        "sortBy": "volume_24hr",
        "status": "active"
    },
)
print(res.json())
打开于
获取免费密钥
示例响应

这个示例展示了 35 个字段中的 34 个。查看全部字段

{
  "found": true,
  "data": {
    "items": [
      {
        "id": "0x4f2a9b1c7d8e",
        "url": "https://polymarket.com/event/us-2028-presidential-election-winner",
        "title": "Will the Democratic nominee win the 2028 US presidential election?",
        "eventTitle": "2028 US Presidential Election",
        "status": "active",
        "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/2028-election.png",
        "volumeUsd": 48250000,
        "volume24hUsd": 1620000,
        "liquidityUsd": 3900000,
        "endsUtc": 1862092800,
        "outcomes": [
          {
            "name": "Yes",
            "price": 0.52
          },
          {
            "name": "No",
            "price": 0.48
          }
        ],
        "eventId": "evt_2028-election",
        "slug": "us-2028-presidential-election-winner",
        "description": "This market resolves Yes if the Democratic Party nominee wins the 2028 United States presidential election.",
        "conditionId": "0x9c81f0b4d2a3e5f7",
        "startsUtc": 1735689600,
        "createdUtc": 1735689600,
        "updatedUtc": 1758844800,
        "lastTradePrice": 0.52,
        "bestBid": 0.51,
        "bestAsk": 0.53,
        "spread": 0.02,
        "openInterestUsd": 2100000,
        "volume1wUsd": 5400000,
        "volume1mUsd": 18900000,
        "commentCount": 3120,
        "tags": [
          {
            "name": "Politics",
            "slug": "politics"
          },
          {
            "name": "Elections",
            "slug": "elections"
          }
        ]
      },
      {
        "id": "0x7b3e1a9f0c2d",
        "url": "https://polymarket.com/event/argentina-presidential-election-2027",
        "title": "Will the incumbent party win Argentina's 2027 presidential election?",
        "eventTitle": "Argentina 2027 Presidential Election",
        "status": "active",
        "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/argentina-2027.png",
        "volumeUsd": 6120000,
        "volume24hUsd": 210000,
        "liquidityUsd": 480000,
        "endsUtc": 1793404800,
        "outcomes": [
          {
            "name": "Yes",
            "price": 0.34
          },
          {
            "name": "No",
            "price": 0.66
          }
        ],
        "eventId": "evt_argentina-2027",
        "slug": "argentina-presidential-election-2027",
        "description": "This market resolves Yes if the incumbent governing party's candidate wins the 2027 Argentine presidential election.",
        "conditionId": "0x2d5f8a1b3c9e7d",
        "startsUtc": 1746057600,
        "createdUtc": 1746057600,
        "updatedUtc": 1758758400,
        "lastTradePrice": 0.34,
        "bestBid": 0.33,
        "bestAsk": 0.35,
        "spread": 0.02,
        "openInterestUsd": 340000,
        "volume1wUsd": 890000,
        "volume1mUsd": 2400000,
        "commentCount": 412,
        "tags": [
          {
            "name": "Politics",
            "slug": "politics"
          },
          {
            "name": "World",
            "slug": "world"
          }
        ]
      },
      {
        "id": "0x1a9c4d7e2b8f",
        "url": "https://polymarket.com/event/uk-general-election-date-2026",
        "title": "Will the UK hold a general election before July 2026?",
        "eventTitle": "UK Politics",
        "status": "active",
        "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/uk-election-date.png",
        "volumeUsd": 2340000,
        "volume24hUsd": 95000,
        "liquidityUsd": 210000,
        "endsUtc": 1783036800,
        "outcomes": [
          {
            "name": "Yes",
            "price": 0.11
          },
          {
            "name": "No",
            "price": 0.89
          }
        ],
        "eventId": "evt_uk-election-date",
        "slug": "uk-general-election-date-2026",
        "description": "This market resolves Yes if a UK general election is called and held before July 1, 2026.",
        "conditionId": "0x8e2c9d4a1f7b3c",
        "startsUtc": 1751328000,
        "createdUtc": 1751328000,
        "updatedUtc": 1758672000,
        "lastTradePrice": 0.11,
        "bestBid": 0.1,
        "bestAsk": 0.12,
        "spread": 0.02,
        "openInterestUsd": 128000,
        "volume1wUsd": 210000,
        "volume1mUsd": 640000,
        "commentCount": 187,
        "tags": [
          {
            "name": "Politics",
            "slug": "politics"
          }
        ]
      }
    ]
  }
}

完整的参数与响应参考:这个接口的每个字段、类型和示例。

参考

一个请求,一种响应结构。

你发送的每个字段和收到的每个字段,都附有真实示例。

最近验证于 2026-11-14 · 可用率和延迟按 30d 统计

请求体

JSON,POST 到这个接口。

  • querystring

    election

    市场搜索词(例如 election、bitcoin、super bowl)。

  • limitinteger

    3

    Maximum number of results to return (10-25, default 25). You are billed per result returned, so a lower limit costs less.

  • sortByenum

    返回结果前,发现的市场按什么排序(例如 volume_24hr 表示近期势头)。

  • statusenum

    返回 "active" 市场以获取当前价格和交易量,或返回 "resolved" 市场以获取历史结果。

你发送。 一个简短的 JSON 请求体。显示的值只是示例,请换成你自己的。

响应

JSON,每个字段一个示例值。

each itemdata.items[]

Prediction-market records: market question, outcomes with current prices, volume, liquidity, and end date. Populated whenever the provider has data for the entity.

  • bestAsknumber

    0.53

    Best ask currently on the order book (0 to 1).

  • bestBidnumber

    0.51

    Best bid currently on the order book (0 to 1).

  • commentCountinteger

    3120

    Number of comments on the event.

  • conditionIdstring

    0x9c81f0b4d2a3e5f7

    On-chain condition identifier for the market.

  • createdUtcnumber

    1735689600

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When the market was created.

  • descriptionstring

    This market resolves Yes if the Democratic Party nominee wins the 2028 United States presidential election.

    Resolution rules for the market.

  • endsUtcnumber

    1862092800

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When the market resolves/ends.

  • eventIdstring

    evt_2028-election

    Identifier of the parent event grouping this market.

  • eventTitlestring

    2028 US Presidential Election

    Title of the parent event grouping this market.

  • idstring

    0x4f2a9b1c7d8e

    Polymarket market identifier. Populated whenever the provider has data for the entity.

  • imagestring

    https://polymarket-upload.s3.us-east-2.amazonaws.com/2028-election.png

    Event image URL.

  • lastTradePricenumber

    0.52

    Price of the most recent trade (0 to 1).

  • liquidityUsdnumber

    3900000

    Available liquidity in USD.

  • openInterestUsdnumber

    2100000

    Open interest in USD.

  • slugstring

    us-2028-presidential-election-winner

    URL slug of the market.

  • spreadnumber

    0.02

    Difference between the best ask and the best bid.

  • startsUtcnumber

    1735689600

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When trading opened.

  • statusstring

    active

    Market status, e.g. active or closed.

  • titlestring

    Will the Democratic nominee win the 2028 US presidential election?

    The market question. Populated whenever the provider has data for the entity.

  • updatedUtcnumber

    1758844800

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. When the market was last updated.

  • urlstring

    https://polymarket.com/event/us-2028-presidential-election-winner

    Polymarket URL for the market event. Populated whenever the provider has data for the entity.

  • volume1mUsdnumber

    18900000

    Traded volume in USD over the past month.

  • volume1wUsdnumber

    5400000

    Traded volume in USD over the past week.

  • volume24hUsdnumber

    1620000

    Traded volume in USD over the past 24 hours.

  • volumeUsdnumber

    48250000

    Total traded volume in USD.

each outcomedata.items[].outcomes[]

Market outcomes with their current implied prices.

  • namestring

    Yes

    Outcome label, e.g. Yes or No.

  • pricenumber

    0.52

    Current implied probability price for the outcome (0 to 1).

each tagdata.items[].tags[]

Polymarket topic tags for the event.

  • namestring

    Politics

    Tag label, e.g. Politics.

  • slugstring

    politics

    Tag slug.

top level
  • foundboolean

    true

    True when at least one market record was returned.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

你收到。 字段有名称、有类型,无论哪个数据源响应,结构都一样。

常见问题

关于 Polymarket 市场 API

AnyAPI 的 Polymarket 市场 API 只需一次 POST 请求 /v1/run/polymarket.markets,就以统一格式的 JSON 返回 Polymarket 数据。按关键词或按活跃度排序,发现 Polymarket 预测市场(问题、结果价格、交易量、流动性和截止日期),以标准化 JSON 返回。无论哪个数据源提供服务,AnyAPI 都返回同一套统一的 schema。费用:每千条结果 US$5.28,单次请求最多 US$0.132,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Polymarket 市场 API 调用中有 100.0% 成功,响应时间中位数为 5.9 秒,共测量 15 次调用。

费用:每千条结果 US$5.28,单次请求最多 US$0.132,以美元计价,无需订阅,也没有每月最低消费。你只需为一个美元钱包充值,每次调用从中扣费。部分由钱包付费的失败请求会产生处理费用,我们按成本原价转嫁,不加价;错误响应会显示收取的金额。

按关键词或按活跃度排序,发现 Polymarket 预测市场(问题、结果价格、交易量、流动性和截止日期),以标准化 JSON 返回。响应是统一格式的 JSON,外层结构与每个 AnyAPI 接口相同,所以解析另一个接口只需换一个 URL,别的都不用改。

过去 30 天,通过 AnyAPI 发起的 Polymarket 市场 API 调用中有 100.0% 成功,响应时间中位数为 5.9 秒,共测量 15 次调用。这些是 AnyAPI 对经过网关的流量的自有测量,持续重新计算,并非公开承诺的服务等级目标。

可以。新的 AnyAPI 账户自带 US$0.10 免费余额,无需绑卡。

向 https://api.getanyapi.com/v1/run/polymarket.markets 发送 POST 请求,在 “Authorization: Bearer” 请求头中放入你的 AnyAPI 密钥,并以 JSON 请求体传入参数。同一个密钥和同一个钱包适用于所有 AnyAPI 接口。

不需要。你向一个预付费的 AnyAPI 余额充值美元,每个请求从中扣费。没有月度套餐,也没有最低消费,同一个余额可用于所有 AnyAPI 接口。

有。TypeScript 用 npm 安装 @getanyapi/sdk,Python 用 pip 安装 getanyapi。两者都用同一个密钥调用所有 AnyAPI 接口,任何 HTTP 客户端也都可以。

可以。智能体可以连接 https://api.getanyapi.com/mcp 上的 AnyAPI MCP 服务器,或者向 https://api.getanyapi.com/agent/signup 发送一次无需认证的 POST 来创建自己的免费试用密钥,再通过 HTTP 调用这个接口。