# Polymarket Odds Tracker API - Prediction Market Prices (`gochujang/polymarket-odds-tracker`) Actor

Track real-time prediction market odds on Polymarket — elections, crypto, sports, AI, macro events. Filter by tag (crypto/politics/sports/ai), volume, end date. Returns outcomes with implied probability + bid/ask spread.

- **URL**: https://apify.com/gochujang/polymarket-odds-tracker.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** Developer tools, Automation, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Polymarket Odds Tracker

> Track real-time **prediction market odds** on Polymarket — elections, crypto, sports, AI, macro events. Filter by tag, volume, end date. No API key required.

---

### What It Does

Polymarket is the largest on-chain prediction market — billions in volume across politics, crypto, sports, and macro events. This Actor extracts live market data:

- Question + description
- All outcomes with current prices (implied probability)
- Best bid / best ask + spread
- Volume (total + 24h) + liquidity
- End date + days remaining
- Tags and category

Filterable by tag (crypto, politics, sports, ai, etc), min volume, sortable by volume / liquidity / end date.

---

### Why This Matters

Prediction markets are **the best-aggregated probability source** for upcoming events. A 70¢ price on "Will Fed cut in March?" reflects the wisdom of capitalized traders, not pundits.

- **Macro traders** — Fed rate decisions, CPI ranges, recession probability
- **Crypto traders** — BTC price targets, ETF approvals, token launches
- **News/political** — election odds with sub-week granularity
- **AI/tech** — AGI timelines, GPT release dates, company outcomes

The official Polymarket UI is great for browsing; this Actor turns it into a programmatic data feed for dashboards, alerts, and bots.

---

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `tags` | string[] | `[]` | Filter by tag (`crypto`, `politics`, `sports`, `ai`). Empty = all |
| `minVolumeUsd` | integer | `10000` | Min market volume |
| `activeOnly` | boolean | `true` | Skip closed/resolved markets |
| `sortBy` | string | `volume_desc` | `volume_desc`, `liquidity_desc`, `end_date_asc`, `created_desc` |
| `limit` | integer | `50` | Max results (1–500) |

#### Example: Top crypto markets
```json
{"tags": ["crypto"], "minVolumeUsd": 100000, "sortBy": "volume_desc"}
````

#### Example: Soon-expiring high-liquidity markets

```json
{"sortBy": "end_date_asc", "minVolumeUsd": 500000, "limit": 20}
```

***

### Output

```json
{
  "id": "0x...",
  "slug": "will-btc-hit-100k-by-end-of-march-2026",
  "question": "Will BTC hit $100K by end of March 2026?",
  "category": "Crypto",
  "tags": ["Crypto", "Bitcoin"],
  "active": true,
  "end_date": "2026-03-31T23:59:00Z",
  "days_until_end": 124.5,
  "volume_usd": 4250000,
  "volume_24h_usd": 82000,
  "liquidity_usd": 850000,
  "best_bid": 0.34,
  "best_ask": 0.36,
  "spread": 0.02,
  "outcomes": [
    {"name": "Yes", "price": 0.35, "implied_pct": 35.0},
    {"name": "No",  "price": 0.65, "implied_pct": 65.0}
  ],
  "leading_outcome": {"name": "No", "price": 0.65, "implied_pct": 65.0},
  "polymarket_url": "https://polymarket.com/event/..."
}
```

***

### Pricing

- **$0.001 per market returned**

Examples:

- Top 50 crypto markets: **$0.05**
- Full sweep 500 markets: **$0.50**

***

### Data Source

[Polymarket Gamma API](https://gamma-api.polymarket.com) — official public endpoint, no auth.

***

### Related Actors

- **[Crypto ETF Flow Tracker](https://apify.com/gochujang/crypto-etf-flow-tracker)** — Institutional flow context for ETF-approval predictions.
- **[Smart Money Wallet Tracker](https://apify.com/gochujang/smart-money-tracker)** — On-chain positioning vs prediction-market odds.
- **[Bitcoin Mempool Analytics](https://apify.com/gochujang/bitcoin-mempool-analytics)** — Real-time BTC network state.

***

### Feedback

[Leave a review on Apify Store](https://apify.com/gochujang/polymarket-odds-tracker#reviews)

# Actor input Schema

## `tags` (type: `array`):

Filter markets by tag (e.g., crypto, politics, sports, ai). Empty = all tags.

## `minVolumeUsd` (type: `integer`):

Only return markets with total volume above this. Filters out tiny markets.

## `activeOnly` (type: `boolean`):

Skip closed/resolved markets.

## `sortBy` (type: `string`):

Sort order for results.

## `limit` (type: `integer`):

Max markets to return.

## `minDaysUntilEnd` (type: `number`):

Skip markets ending sooner than N days (filter out near-resolution noise). 0 = no filter.

## `maxDaysUntilEnd` (type: `number`):

Skip markets ending later than N days. 0 = no filter.

## `category` (type: `string`):

Case-insensitive substring match against category. Empty = no filter.

## `binaryMarketsOnly` (type: `boolean`):

Only return markets with exactly 2 outcomes (Yes/No format).

## Actor input object example

```json
{
  "tags": [
    "crypto",
    "politics"
  ],
  "minVolumeUsd": 10000,
  "activeOnly": true,
  "sortBy": "volume_desc",
  "limit": 50,
  "minDaysUntilEnd": 0,
  "maxDaysUntilEnd": 0,
  "category": "",
  "binaryMarketsOnly": false
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tags": [
        "crypto",
        "politics"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/polymarket-odds-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tags": [
        "crypto",
        "politics",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gochujang/polymarket-odds-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tags": [
    "crypto",
    "politics"
  ]
}' |
apify call gochujang/polymarket-odds-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=gochujang/polymarket-odds-tracker",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Polymarket Odds Tracker API - Prediction Market Prices",
        "description": "Track real-time prediction market odds on Polymarket — elections, crypto, sports, AI, macro events. Filter by tag (crypto/politics/sports/ai), volume, end date. Returns outcomes with implied probability + bid/ask spread.",
        "version": "0.1",
        "x-build-id": "L6Nr87xIUh8rPc1J5"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/gochujang~polymarket-odds-tracker/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-gochujang-polymarket-odds-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/gochujang~polymarket-odds-tracker/runs": {
            "post": {
                "operationId": "runs-sync-gochujang-polymarket-odds-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/gochujang~polymarket-odds-tracker/run-sync": {
            "post": {
                "operationId": "run-sync-gochujang-polymarket-odds-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "tags": {
                        "title": "Tags filter",
                        "type": "array",
                        "description": "Filter markets by tag (e.g., crypto, politics, sports, ai). Empty = all tags.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "minVolumeUsd": {
                        "title": "Min Volume (USD)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return markets with total volume above this. Filters out tiny markets.",
                        "default": 10000
                    },
                    "activeOnly": {
                        "title": "Active markets only",
                        "type": "boolean",
                        "description": "Skip closed/resolved markets.",
                        "default": true
                    },
                    "sortBy": {
                        "title": "Sort By",
                        "enum": [
                            "volume_desc",
                            "liquidity_desc",
                            "end_date_asc",
                            "created_desc"
                        ],
                        "type": "string",
                        "description": "Sort order for results.",
                        "default": "volume_desc"
                    },
                    "limit": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Max markets to return.",
                        "default": 50
                    },
                    "minDaysUntilEnd": {
                        "title": "Min Days Until End",
                        "minimum": 0,
                        "type": "number",
                        "description": "Skip markets ending sooner than N days (filter out near-resolution noise). 0 = no filter.",
                        "default": 0
                    },
                    "maxDaysUntilEnd": {
                        "title": "Max Days Until End",
                        "minimum": 0,
                        "type": "number",
                        "description": "Skip markets ending later than N days. 0 = no filter.",
                        "default": 0
                    },
                    "category": {
                        "title": "Category Filter",
                        "type": "string",
                        "description": "Case-insensitive substring match against category. Empty = no filter.",
                        "default": ""
                    },
                    "binaryMarketsOnly": {
                        "title": "Binary Markets Only (Yes/No)",
                        "type": "boolean",
                        "description": "Only return markets with exactly 2 outcomes (Yes/No format).",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
