# Polymarket & Kalshi Scraper - Prediction Markets Odds (`scrolahdata/prediction-markets-scraper`) Actor

Polymarket and Kalshi scraper: prediction markets odds, prices, probabilities, volume, liquidity, open interest, results and price history. Politics, crypto, sports, economics, election odds. $1 per 1,000 markets. Polymarket odds, Kalshi odds.

- **URL**: https://apify.com/scrolahdata/prediction-markets-scraper.md
- **Developed by:** [Leping Gong](https://apify.com/scrolahdata) (community)
- **Categories:** News, Automation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 83.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 markets

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Polymarket & Kalshi Scraper — Prediction Markets Odds, Volume & Price History

Scrape **prediction markets** from **Polymarket** and **Kalshi** into one clean table: every market's **odds / implied probability**, bid and ask, 24h price change, **volume, liquidity, open interest**, close date, **resolution result** and optional **price history**.

- 🔎 **Search** — any topic: `bitcoin`, `fed rate`, `election`, `nba`, `ai` ... on both platforms at once
- 🗂️ **Categories** — politics, elections, crypto, sports, economics, finance, tech, AI, companies, geopolitics, culture, climate, health, science
- 📈 **Top markets** — sorted by 24h volume, total volume, liquidity, newest or ending soon
- 🔗 **URLs** — Polymarket event pages and category pages, Kalshi market / series pages
- ✅ **Resolved markets** — closed / settled markets with the winning outcome, for backtests and calibration studies
- 🕒 **Price history** — probability time series for the last day, week, month or since launch

**$1 per 1,000 markets.** With price history $3 per 1,000.

### Use cases

- **Election odds & political forecasting** — track Polymarket and Kalshi election odds side by side
- **Trading & arbitrage research** — compare prices for the same question across both platforms, spot spreads and fast movers (`change1d`)
- **Crypto, Fed and macro sentiment** — what the market prices for bitcoin targets, rate decisions, CPI and recessions
- **Sports betting research** — championship and game odds as probabilities
- **Data science & backtests** — resolved markets with results and full price history
- **News, newsletters & dashboards** — "the market says 62%" charts in Google Sheets, Looker Studio or Slack
- **AI agents** — live probabilities for assistants and forecasting bots via MCP

### Input

Top markets on both platforms (default):

```json
{ "platforms": ["polymarket", "kalshi"], "sortBy": "volume24h", "maxEvents": 20 }
```

Fed rate odds with a week of price history:

```json
{
  "searchTerms": ["fed"],
  "priceHistory": "1w"
}
```

Resolved crypto markets with their results:

```json
{ "categories": ["crypto"], "status": "closed", "sortBy": "volume" }
```

Specific events:

```json
{ "urls": ["https://polymarket.com/event/nba-2027-champion", "https://kalshi.com/markets/kxnvdaceo"] }
```

Options: `status` (open, closed, all), `maxEvents`, `maxMarketsPerEvent` (multi-outcome events like "who will win" have one market per option), `minVolume`.

### Output

One row per market (each option of a multi-outcome event is a market):

```json
{
  "platform": "polymarket",
  "eventTitle": "Fed Decision in December?",
  "question": "Will the Fed increase interest rates by 25 bps after the December 2026 meeting?",
  "outcome": "25 bps increase",
  "yesPrice": 0.915,
  "noPrice": 0.085,
  "bestBid": 0.91,
  "bestAsk": 0.92,
  "change1d": 0.02,
  "volume": 4812339.5,
  "volume24h": 512004.1,
  "liquidity": 210331.8,
  "endDate": "2026-12-10T12:00:00Z",
  "status": "open",
  "result": null,
  "rules": "This market will resolve to ...",
  "marketUrl": "https://polymarket.com/event/fed-decision-in-december/...",
  "priceHistory": [{ "time": "2026-11-12T13:00:00Z", "price": 0.87 }]
}
```

`yesPrice` is the implied probability (0.915 = 91.5%). Polymarket volume is in USD; Kalshi volume and open interest are in contracts. Kalshi rows also have `openInterest`; Polymarket rows have `change1h` / `change1w` / `change1m` and comment count. Export to JSON, CSV or Excel. The *Markets* table view shows platform, event, outcome, probability, 24h change, volume, close date and link.

### Pricing

- **Market** — $1 per 1,000 rows
- **Market with price history** — $3 per 1,000 rows

Markets below `minVolume` and errors are free. Discounts for Apify Silver, Gold and higher plans.

### Integrations & API

- **Schedules** — run every hour or every few minutes to track odds over time
- **Google Sheets, Zapier, Make, n8n, Slack, webhooks** — alert when a probability moves
- **API** — Python, Node.js or any language via the Apify API / `apify-client`
- **AI agents (MCP)** — use it from Claude, ChatGPT or Cursor through the Apify MCP server

### FAQ

**Do I need a Polymarket or Kalshi account?** No. Only public market data is read — no login, wallet or API key.

**Can it place trades?** No. It is read-only market data.

**Why do Polymarket and Kalshi volumes differ so much?** Polymarket reports USD volume, Kalshi reports number of contracts (each pays $1).

### More from ScrolahData

- [Google News Scraper](https://apify.com/scrolahdata/google-news-scraper) — the news behind the odds
- [Google Trends Scraper](https://apify.com/scrolahdata/google-trends-scraper) — search interest vs. market probability
- [ESPN Scraper](https://apify.com/scrolahdata/espn-sports-scraper) — live scores and standings for sports markets
- [Hacker News Scraper](https://apify.com/scrolahdata/hacker-news-scraper)
- [Telegram Channel Scraper](https://apify.com/scrolahdata/telegram-channel-scraper)

# Actor input Schema

## `platforms` (type: `array`):

Polymarket, Kalshi or both.

## `searchTerms` (type: `array`):

Optional keywords, e.g. bitcoin, fed rate, election, nba. Empty = top markets.

## `categories` (type: `array`):

Optional: politics, elections, crypto, sports, economics, finance, tech, AI, companies, geopolitics, culture, climate, health, science.

## `urls` (type: `array`):

Polymarket event URLs (polymarket.com/event/...), Polymarket category pages (polymarket.com/crypto) or Kalshi market / series URLs (kalshi.com/markets/...).

## `status` (type: `string`):

open = trading now, closed = resolved / settled markets with the result, all = both.

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

Which events come first (for top / category lists).

## `maxEvents` (type: `integer`):

Events per platform for each search term, category or URL.

## `maxMarketsPerEvent` (type: `integer`):

Multi-outcome events (e.g. who wins, price ranges) have many markets; the most traded come first.

## `minVolume` (type: `integer`):

Skip markets with lower total volume (USD on Polymarket, contracts on Kalshi). Skipped markets are free.

## `priceHistory` (type: `string`):

Add the probability / price time series for each market: last day, week, month or since launch. Charged as market with history.

## Actor input object example

```json
{
  "platforms": [
    "polymarket",
    "kalshi"
  ],
  "searchTerms": [],
  "status": "open",
  "sortBy": "volume24h",
  "maxEvents": 20,
  "maxMarketsPerEvent": 20,
  "minVolume": 0,
  "priceHistory": "none"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "platforms": [
        "polymarket",
        "kalshi"
    ],
    "searchTerms": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrolahdata/prediction-markets-scraper").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 = {
    "platforms": [
        "polymarket",
        "kalshi",
    ],
    "searchTerms": [],
}

# Run the Actor and wait for it to finish
run = client.actor("scrolahdata/prediction-markets-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "platforms": [
    "polymarket",
    "kalshi"
  ],
  "searchTerms": []
}' |
apify call scrolahdata/prediction-markets-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrolahdata/prediction-markets-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1imW9RehcmkbbEuRK/builds/p0ES0rAaM1yPlww5c/openapi.json
