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

Live Kalshi and Polymarket odds in one table: probability, bid/ask, 24h change, volume, liquidity, close time. Filter by keyword or category. Monitor mode outputs only new markets and markets whose odds moved N points since the last run. No login.

- **URL**: https://apify.com/rjmacarthy/prediction-markets-scraper.md
- **Developed by:** [rj](https://apify.com/rjmacarthy) (community)
- **Categories:** News, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 market scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Prediction Markets Scraper & Odds Monitor (Kalshi + Polymarket)

Get live odds from **Kalshi and Polymarket in one normalized table**: implied probability, bid/ask, 24-hour change, volume, liquidity / open interest and close time for every market. Search by keyword ("bitcoin", "fed", "2028 presidential") or category (Politics, Sports, Economics, Crypto...) and sort by 24h volume, total volume, liquidity or closing date. What sets it apart is **monitor mode**: schedule it and each run outputs only **new markets and markets whose probability moved by at least N points** since the previous run, with the previous probability alongside. That makes it an odds-alert feed rather than a full dump. A scheduled run where nothing moved costs only the start fee. Both platforms' APIs are public, so there is no login, no API key and no browser. If one platform is down you still get the other.

### What data can you get?

| Field | Example | Notes |
|---|---|---|
| platform | kalshi | kalshi or polymarket |
| eventTitle | Fed decision in December? | The question group |
| question | Will the Federal Reserve Hike rates by 25bps...? | The individual market |
| outcome | Hike 25bps | The Yes side's label: a candidate, team or price band |
| probability | 0.925 | Implied Yes probability, 0–1 |
| yesPrice / noPrice | 0.93 / 0.08 | Cost of one Yes / No share right now (USD) |
| bestBid / bestAsk / spread | 0.92 / 0.93 / 0.01 | Yes order book |
| change24h | 3 | Points moved in 24 hours |
| volume / volume24h | 1,203,000 / 279,438 | Lifetime and 24-hour volume |
| liquidity | 120,000 | Polymarket only |
| openInterest | 838,330 | Kalshi only |
| category / tags | Economics / \[Fed] | Kalshi category; Polymarket's top-level tag |
| closeTime / status | 2026-12-09T18:59:00Z / active | |
| url | kalshi.com/markets/... | Market page |
| changeType / previousProbability | moved_up / 0.865 | Monitor modes only |

### Use cases

- **Odds alerts:** schedule `changes` mode every 15 minutes and send moved markets to Slack, email or a webhook.
- **Cross-platform comparison:** the same event (Fed decision, presidential nominee, Super Bowl) priced on Kalshi and Polymarket side by side.
- **Research and journalism:** daily snapshots of election, economy or crypto odds in a spreadsheet.
- **Trading and quant work:** the most active markets right now with order-book spread and 24h volume, ready for a model.
- **New-market discovery:** `new` mode flags markets on your topic that weren't in the previous run's results.

### How to use

1. Pick the platforms (both by default).
2. Optionally enter a keyword and/or categories.
3. Choose the sort order and how many markets you want per platform.
4. Click Start. For alerts, set **Monitor mode** to `changes` and add a schedule.

Most active markets right now (the prefill):

```json
{"platforms":["kalshi","polymarket"],"maxMarkets":8,"sortBy":"volume24h","monitorMode":"all"}
```

Bitcoin price odds on both platforms:

```json
{"platforms":["kalshi","polymarket"],"query":"bitcoin","maxMarkets":10,"sortBy":"volume24h"}
```

Alert when an economics market (Fed, CPI, gas prices) moves by 3 points or more. Run it on a schedule:

```json
{"categories":["Economics"],"maxMarkets":50,"monitorMode":"changes","minMovePct":3,"stateKey":"econ-alerts"}
```

### Output example

A real row (Polymarket, trimmed from a local run):

```json
{
  "id": "polymarket:6919847",
  "platform": "polymarket",
  "marketId": "6919847",
  "eventId": "1353337",
  "eventTitle": "Next CEO of NVIDIA?",
  "question": "Will there be no new be CEO of NVIDIA by December 31, 2028?",
  "outcome": "Jensen Huang (No Change)",
  "category": "Business",
  "tags": [
    "NVDA",
    "NVIDIA",
    "Culture",
    "Big Tech",
    "Business",
    "Jensen Huang",
    "NVIDIA Earnings"
  ],
  "yesPrice": 0.118,
  "noPrice": 0.884,
  "probability": 0.117,
  "bestBid": 0.116,
  "bestAsk": 0.118,
  "spread": 0.002,
  "change24h": 3.05,
  "volume": 3447666.6177020003,
  "volume24h": 1034562.916023,
  "liquidity": 272236.86904,
  "openInterest": null,
  "closeTime": "2029-01-01T04:59:00.000Z",
  "status": "active",
  "url": "https://polymarket.com/event/next-ceo-of-nvidia",
  "scrapedAt": "2026-11-18T12:31:14.026Z",
  "changeType": null,
  "previousProbability": null
}
```

### Monitor mode: only new markets and odds moves

- `all` (default): every matching market.
- `new`: only markets this monitor has not seen in earlier runs. These are new to the set it scans (your keyword, categories and sort), not necessarily newly listed.
- `changes`: new markets **plus** markets whose Yes probability moved at least **Minimum move** points (whole points, default 5) since the previous run. Each row gets `changeType` (`new`, `moved_up`, `moved_down`) and `previousProbability`.

The monitor remembers every market it fetched, not only the ones it output. A market that drops out of the top N and comes back is therefore not reported as "new" again. The first run of a monitor outputs its markets as `new` and becomes the baseline. Use a different **Monitor name** for each separate alert (e.g. `fed-odds`, `election-alerts`). If your maximum cost per run stops the output early, the rows that were not output are reported on the next run. Polymarket's API caches responses for up to 5 minutes, so schedule monitors no more often than every 5 minutes.

### Pricing

Pay per event:

| Event | Price |
|---|---|
| `market`: one market row output | **$0.0015** |
| Actor start | $0.00005 |

- 1,000 markets ≈ **$1.50**. The prefill (16 markets) ≈ $0.024.
- A scheduled `changes` run where 4 markets moved costs $0.006. A run where nothing moved costs only the $0.00005 start fee.
- Set "Maximum cost per run" and the Actor stops cleanly at your budget.

### Tips and limits

- **Probability rule:** the bid/ask midpoint when the spread is at most 10 points, otherwise the last trade. This is how Polymarket displays odds. An empty order book gives `null`, never a fake 50%.
- **Kalshi sorting:** Kalshi's API doesn't sort by 24h volume. The Actor reads Kalshi's trending / volume / closing search order (the one kalshi.com uses), over-fetches about 3× your limit, adds 24h volume and open interest from Kalshi's v2 API, then sorts. So "top by 24h volume" means the top among the markets scanned, not a full-exchange ranking. If Kalshi's search endpoint changes, the Actor falls back to Kalshi's documented events list (no ordering) and logs a warning.
- **Liquidity:** Kalshi publishes no liquidity figure (`liquidity` is null there), so `sortBy: liquidity` sorts Kalshi markets by open interest.
- **Multi-outcome events** (elections, "what price will Bitcoin hit") are one row per outcome. Long-shot outcomes priced at 0.1¢ can carry big 24h volume. Use **Minimum total volume** or a keyword to narrow them down.
- Kalshi multivariate combo markets (`KXMVE...`) are skipped unless you turn on **Include Kalshi combo markets**.
- **Keywords:** every word must appear in the event title, question or outcome. Kalshi's search is fuzzy (a search for "bitcoin" also returns Ethereum), and the Actor removes those non-matches.
- `maxMarkets: 0` means no limit, capped at 1,000 per platform.

### FAQ

**Is it legal?** It reads only public market data from Kalshi's and Polymarket's public, keyless APIs: the same data their websites show to everyone. It collects no personal data. You are responsible for using the data in line with each platform's terms and your local law. This Actor does not place trades.

**Do I need an API key or account?** No.

**Do I need a proxy?** No. If you add one, only Apify datacenter proxy is supported. Residential proxy settings fall back to datacenter proxy with a warning.

**Why do Kalshi and Polymarket prices differ for the same event?** They are separate exchanges with separate traders and fees. The gap is often the interesting signal.

**What if one platform is down?** You still get the other platform's rows, and the run summary says which platform failed. The run fails only if both platforms fail.

### Integrations

Use the results from the Apify API (JSON, CSV, Excel), or connect the Actor to Make, Zapier, n8n, Google Sheets, Slack, webhooks, or any AI agent through the Apify MCP server. A scheduled `changes` run plus a webhook gives you a ready-made odds alert.

### Changelog

- **0.1** (Nov 2026): first release. Kalshi and Polymarket, keyword/category filters, four sort orders, `new`/`changes` monitor, combo-market filter, fail-soft per platform.

### More scrapers by the same developer

- [Google News Scraper: Articles, Publisher URLs & Full Text](https://apify.com/rjmacarthy/google-news-scraper)
- [Sports Scores MCP Server - Scores, Odds, Standings & Injuries](https://apify.com/rjmacarthy/sports-scores-mcp-server)
- [AI Visibility Tracker: ChatGPT, Perplexity, Gemini, Claude](https://apify.com/rjmacarthy/ai-search-visibility-tracker)
- [Airbnb Search Scraper & Price Monitor](https://apify.com/rjmacarthy/airbnb-search-scraper)
- [Apple App Store Scraper: Apps, Search & Reviews](https://apify.com/rjmacarthy/app-store-scraper)
- [AutoScout24 Scraper - Used Car Listings & Prices (Europe)](https://apify.com/rjmacarthy/autoscout24-scraper)

Browse all my Actors on [my Apify Store profile](https://apify.com/rjmacarthy).

### Support

Found a bug or need a field? Open an issue on the Issues tab with your input and the run link.

# Actor input Schema

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

Which prediction markets to read. Both are public and keyless.

## `query` (type: `string`):

Optional. Only markets whose event title, question or outcome contains every word, e.g. 'bitcoin', 'fed rate', 'super bowl'. Leave empty for the most active markets overall.

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

Optional, e.g. Politics, Sports, Economics, Crypto, Elections, Financials, Weather, or narrower names like NBA or Tennis. Matched case-insensitively against Kalshi's category/tags and Polymarket's tags. A market matching any one is kept.

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

Which markets come first (and which are kept when 'Max markets per platform' cuts the list). Kalshi publishes no liquidity figure, so 'liquidity' sorts Kalshi by open interest.

## `maxMarkets` (type: `integer`):

Maximum rows output per platform (each row is one market / outcome). 0 = no limit (capped at 1,000 per platform).

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

Skip markets whose lifetime volume is below this (USD on Polymarket, contracts of $1 on Kalshi). 0 = keep all.

## `includeClosed` (type: `boolean`):

Also output markets that have closed or resolved. Off by default: only markets you can still trade.

## `includeCombos` (type: `boolean`):

Kalshi multivariate combo markets (KXMVE... tickers, parlays) are skipped by default because they are thin and very numerous.

## `monitorMode` (type: `string`):

For scheduled runs. 'all' outputs every matching market. 'new' outputs only markets not seen in earlier runs. 'changes' outputs new markets plus markets whose Yes probability moved at least 'Minimum move' points since the previous run, with changeType (new, moved_up, moved_down) and previousProbability. The first monitor run outputs everything as 'new' and becomes the baseline. You only pay for rows output, so a run where nothing moved costs just the start fee.

## `minMovePct` (type: `integer`):

For monitor mode 'changes': report a market when its Yes probability moved by at least this many points (5 = e.g. 40% -> 45%).

## `stateKey` (type: `string`):

Name for the monitor's memory. Runs with the same name compare against each other; use a different name for each separate monitor (e.g. 'fed-odds', 'election-alerts').

## `proxyConfiguration` (type: `object`):

Not needed: both APIs are public. Apify datacenter proxy only: residential proxies are not supported and fall back to datacenter proxy with a warning.

## Actor input object example

```json
{
  "platforms": [
    "kalshi",
    "polymarket"
  ],
  "sortBy": "volume24h",
  "maxMarkets": 8,
  "minVolume": 0,
  "includeClosed": false,
  "includeCombos": false,
  "monitorMode": "all",
  "minMovePct": 5,
  "stateKey": "default",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One row per market: platform, question, outcome, probability, prices, 24h change, volume and URL.

## `marketsFull` (type: `string`):

Every field, including tags, bid/ask, open interest, liquidity and monitor change type.

## `summary` (type: `string`):

Per-platform status, counts, request statistics and warnings.

# 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": [
        "kalshi",
        "polymarket"
    ],
    "sortBy": "volume24h",
    "maxMarkets": 8,
    "monitorMode": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("rjmacarthy/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": [
        "kalshi",
        "polymarket",
    ],
    "sortBy": "volume24h",
    "maxMarkets": 8,
    "monitorMode": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("rjmacarthy/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": [
    "kalshi",
    "polymarket"
  ],
  "sortBy": "volume24h",
  "maxMarkets": 8,
  "monitorMode": "all"
}' |
apify call rjmacarthy/prediction-markets-scraper --silent --output-dataset

```

## MCP server setup

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