# Polymarket & Kalshi Prediction Markets Scraper — Odds, Volume (`chorelet/prediction-markets-scraper`) Actor

Live odds from Polymarket and Kalshi in one schema: probability, bid/ask, last trade, volume (24h/total), liquidity, open interest, price changes, close dates, categories and rules. Keyword, tag, category, status and volume filters. CSV/JSON export and API.

- **URL**: https://apify.com/chorelet/prediction-markets-scraper.md
- **Developed by:** [Chorelet](https://apify.com/chorelet) (community)
- **Categories:** Business, News, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 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 Prediction Markets Scraper — Odds, Volume

Live odds from the two largest prediction markets in **one schema**: every market with its probability, best bid and ask, last trade, 24h and total volume, liquidity, open interest, price changes, opening and closing dates, category, tags and resolution rules. Filter by keywords, status, Polymarket tags, Kalshi categories and minimum volume; sort by 24h volume, total volume, liquidity, newest or ending soon. JSON, CSV, Excel or API.

Both platforms are read through their public APIs — exact numbers, no scraping of HTML, no account.

### Why this Actor

- Polymarket and Kalshi in one schema — compare the same question across exchanges
- Probability, bid/ask, last trade, 24h and total volume, liquidity, open interest, price momentum
- Keyword, status, tag/category and minimum-volume filters; sort by activity or closing date
- Public APIs only: exact numbers, no account
- Checked every day by an automated run

### Sample output

One item of the dataset (long values shortened):

```json
{
  "platform": "polymarket",
  "question": "Will United Russia (ER) gain the most seats in the next Russian parliamentary election?",
  "probability": 98.5,
  "bestBid": 0.984,
  "bestAsk": 0.985,
  "volume": 22661356.810269985,
  "volume24h": 6645262.841870003,
  "liquidity": 700340.29758,
  "endDate": "2026-09-30T00:00:00Z",
  "url": "https://polymarket.com/event/which-party-will-gain-most-seats-in-russian-parliamentary-election/will-united-russia-er-gain-the-most-seats…"
}
```

### What you get

| Field | Description |
|---|---|
| `platform`, `eventId`, `eventTitle`, `eventUrl`, `marketId`, `question`, `url` | Where and what |
| `outcomes[]`, `yesPrice`, `noPrice`, `probability` | Current prices (0–1) and the Yes probability in % |
| `bestBid`, `bestAsk`, `lastTradePrice`, `spread` | Order book top |
| `volume`, `volume24h`, `volume1w`, `liquidity`, `openInterest` | Activity |
| `priceChange1h`, `priceChange1d`, `priceChange1w`, `priceChange1m` | Momentum (Polymarket all four; Kalshi 1d) |
| `startDate`, `endDate`, `status`, `resolved` | Lifecycle |
| `category`, `tags`, `image`, `description`, `resolutionSource`, `commentCount`, `negRisk` | Context |

A per-platform summary is saved as `SUMMARY`.

### Input

- **Platforms** — Polymarket, Kalshi or both. **Keywords** — any-match filter. **Status** — active, closed or all.
- **Sort** and **Max markets per platform**, **Minimum total volume**.
- **Polymarket tag slugs** (`politics`, `crypto`, `sports`…) and **Kalshi categories** (Politics, Economics, Financials, Companies, Science and Technology…).

### Limits and notes

- Polymarket prices are the mid/last values from its Gamma API; Kalshi prices are in dollars (0–1). Both change constantly — schedule the Actor for time series.
- Keyword filtering happens after the sorted fetch, so rare keywords may need a higher limit or a tag/category filter.
- Public data only; the Actor stores nothing beyond the dataset of your run.

### Input example

```json
{
  "platforms": [
    "polymarket",
    "kalshi"
  ],
  "status": "active",
  "sort": "volume24h",
  "maxMarketsPerPlatform": 200,
  "minVolume": 0
}
```

### How much does it cost?

Pay per market — no subscription, no minimum, no charge for platform usage.

| Volume | Price |
|---|---|
| 1,000 markets | $2.00 |
| 10,000 markets | $20.00 |
| 100,000 markets | $200.00 |

The Apify **free plan includes $5 of usage every month** — about 2,500 markets with this Actor, no card needed. Nothing else is charged: platform usage is included in the price, and Apify Bronze, Silver and Gold subscribers get 10%, 20% and 30% off these prices.

### Use it from code, n8n, Make, Zapier or an AI agent

Run the Actor and download the dataset in one call (JSON by default; add `&format=csv` or `xlsx`):

```bash
curl -X POST "https://api.apify.com/v2/acts/chorelet~prediction-markets-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"platforms": ["polymarket", "kalshi"], "status": "active", "sort": "volume24h", "maxMarketsPerPlatform": 200, "minVolume": 0}'
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("chorelet/prediction-markets-scraper").call(run_input={"platforms": ["polymarket", "kalshi"], "status": "active", "sort": "volume24h", "maxMarketsPerPlatform": 200, "minVolume": 0})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

- **n8n, Make, Zapier** — use the Apify node/module: run the Actor, then "get dataset items".
- **Google Sheets, Slack, webhooks** — add an integration on the run's *Integrations* tab.
- **AI agents** — the Actor is available as a tool through the Apify MCP server; the dataset schema describes every field for the model.
- **Schedules** — run it hourly, daily or weekly from the *Schedules* tab.

### FAQ

**Are prices real-time?**

They are read at run time from each exchange's public API — schedule the Actor for a time series or alerts.

**Can I search for a topic?**

Yes — `keywords` matches question, event title, tags, category and rules; `polymarketTags` and `kalshiCategories` narrow further.

**How are Kalshi prices expressed?**

As probabilities 0–1 (`yesPrice`) and percentages (`probability`), the same as Polymarket, so rows are directly comparable.

**Can I get resolved markets?**

Yes — `status: closed` (or `all`) returns settled markets with their final prices.

**What does a run cost?**

$2 per 1,000 markets. The free plan's $5 a month covers about 2,500 markets.

### Support

Questions, missing fields or a source that changed? Open an issue on the *Issues* tab or write to support@chorelet.app — problems are usually fixed within a day, and the Actor is checked every morning by an automated test run. If the Actor saved you time, a short review on its Store page helps other people find it.

# Actor input Schema

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

Which exchanges to read.

## `keywords` (type: `array`):

Keep only markets whose question, event title, tags, category or rules contain any of these (case-insensitive), e.g. `bitcoin`, `fed`, `election`. Empty = all.

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

Open markets, resolved/closed markets, or both.

## `sort` (type: `string`):

Order in which markets are taken before the limit applies.

## `maxMarketsPerPlatform` (type: `integer`):

After keyword and volume filters.

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

Skip thin markets. 0 = no filter.

## `polymarketTags` (type: `array`):

Restrict Polymarket to tags such as `politics`, `crypto`, `sports`, `business`, `science`, `pop-culture` (slugs as in polymarket.com URLs).

## `kalshiCategories` (type: `array`):

Restrict Kalshi to categories: Politics, Economics, Financials, Companies, Science and Technology, Climate and Weather, Sports, Entertainment, Health, World, Social, Elections.

## Actor input object example

```json
{
  "platforms": [
    "polymarket",
    "kalshi"
  ],
  "keywords": [],
  "status": "active",
  "sort": "volume24h",
  "maxMarketsPerPlatform": 200,
  "minVolume": 0
}
```

# Actor output Schema

## `markets` (type: `string`):

All markets — items of the default dataset. Use ?format=csv or xlsx on this URL for spreadsheets.

## `summary` (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"
    ],
    "keywords": [],
    "maxMarketsPerPlatform": 200,
    "minVolume": 0
};

// Run the Actor and wait for it to finish
const run = await client.actor("chorelet/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",
    ],
    "keywords": [],
    "maxMarketsPerPlatform": 200,
    "minVolume": 0,
}

# Run the Actor and wait for it to finish
run = client.actor("chorelet/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"
  ],
  "keywords": [],
  "maxMarketsPerPlatform": 200,
  "minVolume": 0
}' |
apify call chorelet/prediction-markets-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,chorelet/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/HoCb2POkxNy1dOdVA/builds/G0I80NzBJhCfIxzpl/openapi.json
