# Prediction Markets Scraper — Kalshi, Polymarket, PredictIt (`yugenox/prediction-markets-scraper`) Actor

Odds from Kalshi, Polymarket, PredictIt and Manifold in one table: Yes/No prices, bid/ask, volume, liquidity, open interest, rules and close dates. Filter by keyword, category, status and volume; add order books, large Polymarket trades and cross-venue matches. No login.

- **URL**: https://apify.com/yugenox/prediction-markets-scraper.md
- **Developed by:** [Yugenox Corp](https://apify.com/yugenox) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 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.

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: Kalshi, Polymarket, PredictIt and Manifold odds

Get the odds of **Kalshi, Polymarket, PredictIt and Manifold** in **one clean table**: every market's question, the option it is about, the **Yes / No price** (the implied probability), **bid and ask**, last trade and 24-hour change, **volume, 24 h volume, liquidity, open interest**, category and tags, open and close dates, the **resolution rules** and the result of resolved markets. Search by keyword, filter by category, status and minimum volume, and add **order books**, **large Polymarket trades** and **cross-venue matches** (the same question on other venues, with the price gap). No login, no account, no API keys.

### What you get

| | |
|---|---|
| **Market** | Venue, market id, question, option (candidate, range, team), event and its title, links to the market and the event |
| **Odds** | Yes and No price (0–1 = probability), best bid and ask for Yes and No, last trade, price 24 hours ago, 24 h change, spread, every outcome with its price (multiple-choice markets too) |
| **Activity** | Total volume, 24 h volume, liquidity, open interest, number of traders (Manifold) |
| **Details** | Category and tags, market type, status (open / closed / resolved), created, open and close dates, resolution rules, resolution sources, result |
| **Order book** (optional) | Top 10 bid and ask levels (price and size) for Yes and No on Kalshi and Polymarket |
| **Cross-venue matches** (optional) | For each market, the most similar markets on the other venues, their price and the price gap |
| **Large trades** (optional) | The latest big Polymarket trades: market, side, outcome, price, shares, dollar value, time |

Every row has the same columns, whichever venue it comes from; a value the venue doesn't publish is `null`. Prices are always 0–1 (US$ per share, i.e. the probability).

### How to use it

1. Pick the **Venues** (all four by default).
2. Optionally type a **Search** keyword (`election`, `bitcoin`, `fed rates`, `super bowl` …) and **Categories** (`politics`, `crypto`, `sports`, `economics`, `nba` …).
3. Choose the **Status** (open, closed / resolved, or all), an optional **Minimum volume**, and **Max markets**.
4. Turn on the extras you need and run.

Without a search, each venue's markets come in that venue's own order: Polymarket and Manifold by the most traded in the last 24 hours, Kalshi and PredictIt as they list them. **Max markets** is shared fairly between the venues; a venue with fewer matching markets leaves its share to the others.

#### Input examples

The top markets on every venue (the default run):

```json
{
  "maxItems": 20
}
```

Election odds side by side, with cross-venue matches for arbitrage research:

```json
{
  "searchQuery": "house",
  "matchAcrossVenues": true,
  "maxItems": 200
}
```

Crypto markets on Kalshi and Polymarket with at least $100,000 traded, with order books:

```json
{
  "venues": ["kalshi", "polymarket"],
  "categories": ["crypto"],
  "minVolume": 100000,
  "includeOrderbook": true,
  "maxItems": 100
}
```

The latest Polymarket trades of $25,000 or more (whale watching):

```json
{
  "venues": ["polymarket"],
  "maxItems": 10,
  "includeLargeTrades": true,
  "largeTradeMinUsd": 25000,
  "maxTrades": 200
}
```

Recently resolved markets and their results:

```json
{
  "venues": ["kalshi", "polymarket", "manifold"],
  "status": "closed",
  "maxItems": 100
}
```

### Output example

```json
{
  "rowType": "market",
  "venue": "kalshi",
  "venueName": "Kalshi",
  "marketId": "KXNEXTNATOSECGEN-99-KKAL",
  "question": "Will Kaja Kallas be the next Secretary General of NATO?",
  "outcomeLabel": "Kaja Kallas",
  "eventId": "KXNEXTNATOSECGEN-99",
  "eventTitle": "Who will be the next Secretary General of NATO? — Before Jan 1, 2099",
  "url": "https://kalshi.com/markets/kxnextnatosecgen",
  "category": "Elections",
  "marketType": "binary",
  "status": "open",
  "yesPrice": 0.155,
  "noPrice": 0.845,
  "yesBid": 0.12,
  "yesAsk": 0.19,
  "noBid": 0.81,
  "noAsk": 0.88,
  "lastPrice": 0.21,
  "priceChange24h": 0,
  "spread": 0.07,
  "outcomes": [{ "name": "Yes", "price": 0.155 }, { "name": "No", "price": 0.845 }],
  "volume": 1936.64,
  "openInterest": 1174.5,
  "currency": "USD",
  "openTime": "2026-06-29T19:47:00.000Z",
  "closeTime": "2099-01-08T15:00:00.000Z",
  "rules": "If Kaja Kallas formally holds the position of Secretary General of NATO, and is the first such subject to do so after Issuance, then the market resolves to Yes. …",
  "resolutionSource": "North Atlantic Treaty Organization",
  "orderbook": null,
  "crossVenueMatches": null,
  "position": 3,
  "scrapedAt": "2026-10-29T13:59:39.303Z"
}
```

A Polymarket row looks the same, plus its tags (`["Politics", "Elections", "Israel", …]`), liquidity and 24 h volume: *"Will Benjamin Netanyahu be the next Prime Minister of Israel?"* — Yes 0.455, bid 0.45 / ask 0.46, 24 h change −0.02, volume $29.1M, 24 h volume $2.2M, liquidity $726K.

### Pricing

Pay only for what you get:

- **$1.20 per 1,000 markets** saved (any venue), cross-venue matches included;
- **$0.80 per 1,000 order books** attached ("Include order books" — one extra request per market);
- **$1.50 per 1,000 large trades** saved ("Include large Polymarket trades");
- **$0.002 per run** (start).

A run that finds nothing costs only the start. You never pay more than your run's maximum charge: the run stops at it, and nothing is saved that isn't paid for.

### Use cases

- **Arbitrage and odds comparison**: the same question on Kalshi, Polymarket, PredictIt and Manifold, with the price gap.
- **Trading research and backtests**: snapshot prices, spreads, volume and order books on a schedule.
- **Journalism and newsletters**: "what the markets say" about elections, the Fed, crypto or the Oscars, with links.
- **Dashboards and alerts**: feed a sheet or a database with the odds you follow; watch big trades.
- **Research**: how prediction markets price events over time, and how they resolve.

### Tips

- **Implied probability**: `yesPrice` is the mid-price when the bid–ask spread is 10¢ or less, otherwise the last trade (the same rule Polymarket uses for its displayed price). Bid, ask and last trade are always there too.
- **Grouped events** (who will win, which range): each option is its own row, with `outcomeLabel` = the option and `eventTitle` = the question. Manifold multiple-choice markets are one row with every answer in `outcomes`.
- **Kalshi volume** is counted in $1 contracts, the way Kalshi shows it. **Manifold** is play money (`currency: "MANA"`), so its volume is in mana.
- **PredictIt** publishes no volume and only open markets: a minimum volume or "Closed / resolved" leaves it out (the status message says so).
- **Cross-venue matches** compare question wording. They are candidates: always read both markets' rules before treating them as the same bet.
- Schedule the actor (every 5 minutes, hourly, daily) to build a price history.

### FAQ

**Do I need an account, an API key or a crypto wallet?** No. The actor reads the same public market data anyone can see on these sites without an account. It never logs in, places orders or touches a wallet.

**How fresh are the prices?** They are read live at the moment of the run (`scrapedAt` on every row). PredictIt refreshes its public data about once a minute.

**Why do I get fewer markets than Max markets?** Your filters matched fewer markets, or a venue was unavailable; the status message explains it per venue. A venue that refuses a run never stops the others.

**Which proxy should I use?** Keep the default (Apify Proxy, datacenter). It comes with every Apify plan, including the free one. If a venue keeps refusing datacenter IPs, the run switches to residential proxies when your account has them.

**Is it legal to scrape Kalshi, Polymarket, PredictIt and Manifold?** This Actor only collects publicly available data: market questions, prices, volumes and rules that anyone can see on these sites without an account. Collecting publicly available data is generally legal, but you're responsible for how you use it, and you must follow the sites' terms and the laws that apply to you (prediction-market trading itself is regulated differently from country to country). If you're unsure, check with a lawyer. More on this: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

**Does it access any private data?** No. It reads only public market data, follows each site's robots.txt, and collects nothing about people: for large trades it keeps the trade (market, side, outcome, price, size, time) and never the trader's wallet, name, profile or transaction; for Manifold it never keeps the market creator, and personal e-mails or phone numbers in descriptions are masked.

*This Actor is not affiliated with, endorsed by or sponsored by Kalshi, Polymarket, PredictIt or Manifold.*

# Actor input Schema

## `venues` (type: `array`):

Which prediction markets to read. Kalshi, Polymarket and PredictIt trade in US dollars; Manifold uses play money (mana). Max markets is shared fairly between the venues you pick.

## `searchQuery` (type: `string`):

Optional keyword, e.g. "election", "bitcoin", "fed rates", "super bowl", "pope". Uses each venue's own search (PredictIt: every word must appear in the market or contract name). Leave empty to get each venue's markets in its own order (Polymarket and Manifold: most traded in the last 24 hours first).

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

Optional: keep only markets in these categories — politics, elections, economics, finance, crypto, sports, tech, culture, climate, world, health — or any other word found in the venue's tags ("nba", "bitcoin", "fed", "ai"). Matched against Kalshi's category, Polymarket's and Manifold's tags, and PredictIt's market names (PredictIt has no categories).

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

Open markets (trading now), closed / resolved ones (with their result where the venue publishes it), or both. PredictIt only lists open markets.

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

Optional: keep only markets that traded at least this much in total (US dollars on Kalshi and Polymarket, mana on Manifold). PredictIt publishes no volume, so any minimum leaves its markets out. 0 = no minimum.

## `maxItems` (type: `integer`):

Maximum number of market rows for the whole run, shared fairly between the venues (a venue with fewer markets leaves its share to the others). 0 = everything.

## `includeOrderbook` (type: `boolean`):

Add the top 10 bid and ask levels (price and size, Yes and No side) to every Kalshi and Polymarket market. One extra request per market, charged as "Order book" (see Pricing). PredictIt and Manifold publish no order book.

## `matchAcrossVenues` (type: `boolean`):

For every market, list the most similar markets on the other venues collected in this run (question text similarity, with each one's price and the price gap). Useful for comparing odds and spotting arbitrage candidates — always check both markets' rules before trading. Rows are written once every venue has been read. No extra charge.

## `includeLargeTrades` (type: `boolean`):

Also save the latest large trades on Polymarket (side, outcome, price, shares, dollar value, time) as rows of type "trade". With a search or categories they are limited to the Polymarket markets found; otherwise they cover all of Polymarket. Who traded is never included.

## `largeTradeMinUsd` (type: `integer`):

Only trades worth at least this many dollars.

## `maxTrades` (type: `integer`):

Maximum number of trade rows, newest first. 0 = as many as the public trade feed goes back (about 3,000 large trades per set of markets, at most 10,000).

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

Keep the default (Apify Proxy, datacenter) — it comes with every Apify plan, including the free one. If a venue keeps refusing datacenter IPs, the run retries on residential proxies when your account has them.

## Actor input object example

```json
{
  "venues": [
    "kalshi",
    "polymarket",
    "predictit",
    "manifold"
  ],
  "status": "open",
  "minVolume": 0,
  "maxItems": 20,
  "includeOrderbook": false,
  "matchAcrossVenues": false,
  "includeLargeTrades": false,
  "largeTradeMinUsd": 10000,
  "maxTrades": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped market rows (and large-trade rows).

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, rows per venue, requests and proxy use.

# 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 = {
    "venues": [
        "kalshi",
        "polymarket",
        "predictit",
        "manifold"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/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 = {
    "venues": [
        "kalshi",
        "polymarket",
        "predictit",
        "manifold",
    ],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/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 '{
  "venues": [
    "kalshi",
    "polymarket",
    "predictit",
    "manifold"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/prediction-markets-scraper --silent --output-dataset

```

## MCP server setup

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