Polymarket API

Polymarket Markets API

Discover Polymarket prediction markets (question, outcome prices, volume, liquidity, and end dates) by keyword or sorted by activity, as normalized JSON.

$5.28/1k results, pay per request, no subscription.

What the API returneditems[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 more fields
}
Uptime
100.00%
30d · 5 calls
Requests
7
30d · weekly, last 12 wks
Response
5.8s
median · 30d

Call it

Get Polymarket markets in one request

import os, requests

res = requests.post(
    "https://api.getanyapi.com/v1/run/polymarket.markets",
    headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"},
    json={
        "query": ""
    },
)
print(res.json())
Open in
Get a free key
Sample response

This sample shows 34 of 35 fields. See every field

{
  "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"
          }
        ]
      }
    ]
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 · uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • querystring

    election

    Search term for markets (e.g. 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

    How discovered markets are ordered before results are returned (e.g. volume_24hr for recent momentum).

  • statusenum

    Return "active" markets for current prices and volume, or "resolved" markets for historical outcomes.

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

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.

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the Polymarket Markets API

The AnyAPI Polymarket Markets API returns Polymarket markets data as normalized JSON from one POST call to /v1/run/polymarket.markets. Discover Polymarket prediction markets (question, outcome prices, volume, liquidity, and end dates) by keyword or sorted by activity, as normalized JSON. AnyAPI returns one normalized schema whichever source serves it. It costs $5.28 per 1,000 results, and never more than $0.132 for a single request, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Polymarket markets calls through AnyAPI succeeded, with a median response time of 5.8 seconds across 5 measured calls.

It costs $5.28 per 1,000 results, and never more than $0.132 for a single request, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Discover Polymarket prediction markets (question, outcome prices, volume, liquidity, and end dates) by keyword or sorted by activity, as normalized JSON. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 100.0% of Polymarket markets calls through AnyAPI succeeded, with a median response time of 5.8 seconds across 5 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required.

Send a POST request to https://api.getanyapi.com/v1/run/polymarket.markets with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.