# Prediction Markets Scraper — Kalshi, Polymarket & Manifold (`fabrikit/prediction-markets-scraper`) Actor

Prediction market odds from Kalshi, Polymarket and Manifold in one table: implied probability, bid/ask, 24h change, volume, liquidity, open interest, close date, result and rules per contract. Search words, topics or direct links; no login or key. From US$1.40 per 1,000 contracts.

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

## Pricing

from $1.40 / 1,000 prediction market contract 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

Prediction Markets Scraper extracts live odds from Kalshi, Polymarket and Manifold into one flat table: for every tradable contract you get the implied probability, best bid and ask, last price, 24-hour change, volume, liquidity, open interest, close date, result and the resolution rules. Search by words ("fed decision", "bitcoin", "senate"), pick a topic (politics, economics, crypto, weather, sports...), or paste market links and Kalshi tickers. It reads the platforms' public JSON APIs: no browser, no login, no API key and no proxy.

### What you get

One row per contract, with the same columns for all three platforms:

| Field | Example |
|---|---|
| `platform`, `marketId`, `question`, `outcome` | kalshi, KXFEDDECISION-26OCT-H0, Will the Federal Reserve Hike rates by 0bps…?, Fed maintains rate |
| `eventId`, `eventTitle`, `eventSubtitle`, `seriesId`, `seriesTitle` | KXFEDDECISION-26OCT, Fed decision in Oct 2026?, On Oct 28, 2026, KXFEDDECISION, Fed meeting |
| `category`, `tags`, `marketType`, `status` | Economics, \[Fed], binary, open |
| `probability` | 0.885 (bid/ask midpoint; last trade when the spread is wider than 10 cents; 1 or 0 once resolved) |
| `yesBid`, `yesAsk`, `noBid`, `noAsk`, `lastPrice`, `previousPrice`, `priceChange24h`, `spread` | 0.88, 0.89, 0.11, 0.12, 0.89, 0.87, 0.02, 0.01 |
| `outcomes` | \[{"name":"Yes","price":0.635},{"name":"No","price":0.365}] (Polymarket, Manifold binary) |
| `volume`, `volume24h`, `liquidity`, `openInterest`, `volumeUnit`, `currency` | 6034954.88, 181168.17, null, 2106538.3, contracts, USD |
| `traders` | unique traders (Manifold) |
| `openTime`, `closeTime`, `createdAt`, `updatedAt`, `resolvedAt` | ISO 8601 dates |
| `result`, `rules`, `resolutionSource` | yes / no / winning outcome, full rules text, Federal Reserve |
| `url`, `conditionId`, `clobTokenIds`, `negRisk`, `imageUrl` | market page; Polymarket ids for its order book API |

Units are kept honest: Kalshi volume and open interest are counted in contracts (each pays US$1), Polymarket volume and liquidity are in USDC, and Manifold uses play money (`MANA`). Prices are always 0–1.

A `SUMMARY` record in the key-value store lists, per platform, the events read, rows saved, rows skipped by the status filter, requests made and any problems.

### Use cases

- **Event-driven trading and research**: track how the market prices a Fed decision, an election or a CPI print, and log the probability every hour with a schedule.
- **Cross-platform comparison**: the same question often trades on Kalshi and Polymarket at different prices; one table makes the gaps easy to spot.
- **Weather and climate desks**: daily temperature markets (Kalshi series such as `KXHIGHNY`, Polymarket weather tag) with every price bucket.
- **Newsrooms and newsletters**: "markets give 88% to no change" style numbers with a link to the source market.
- **Backtesting and model calibration**: collect resolved contracts (`status: resolved`) with their final result and the rules they settled on.
- **AI agents**: give an assistant current forecast probabilities as structured data.

### How to use

1. Choose the **platforms** (Kalshi and Polymarket by default; Manifold optional).
2. Optionally type **search words** or choose a **topic**. Leave both empty to get the markets trending right now.
3. Or paste **market links / Kalshi tickers**: `KXHIGHNY` (series), `KXFEDDECISION-26OCT` (event), `KXFEDDECISION-26OCT-H0` (market), `https://polymarket.com/event/<slug>`, `https://manifold.markets/<user>/<slug>`.
4. Set **max contracts**. Large events (price ladders, election fields, player props) can hold 100+ contracts; **max contracts per event** keeps only the most traded ones so you see more events.

Example input:

```json
{
    "platforms": ["kalshi", "polymarket"],
    "searchTerms": ["fed decision"],
    "status": "open",
    "sortBy": "trending",
    "maxMarketsPerEvent": 5,
    "maxItems": 100
}
```

`maxItems` is shared between platforms and search words; room one platform cannot fill goes to the others. `status` can be `open`, `resolved` or `all`; `sortBy` can be `trending`, `volume24h`, `liquidity`, `newest` or `closingSoon`.

### Output example

```json
{
    "platform": "kalshi",
    "marketId": "KXFEDDECISION-26OCT-H0",
    "question": "Will the Federal Reserve Hike rates by 0bps at their October 2026 meeting?",
    "outcome": "Fed maintains rate",
    "eventId": "KXFEDDECISION-26OCT",
    "eventTitle": "Fed decision in Oct 2026?",
    "eventSubtitle": "On Oct 28, 2026",
    "seriesId": "KXFEDDECISION",
    "seriesTitle": "Fed meeting",
    "category": "Economics",
    "tags": ["Fed"],
    "marketType": "binary",
    "status": "open",
    "probability": 0.885,
    "yesBid": 0.88,
    "yesAsk": 0.89,
    "noBid": 0.11,
    "noAsk": 0.12,
    "lastPrice": 0.89,
    "previousPrice": 0.87,
    "priceChange24h": 0.02,
    "spread": 0.01,
    "volume": 6034954.88,
    "volume24h": 181168.17,
    "openInterest": 2106538.3,
    "volumeUnit": "contracts",
    "currency": "USD",
    "openTime": "2025-09-29T14:00:00.000Z",
    "closeTime": "2026-10-28T17:59:00.000Z",
    "result": null,
    "rules": "If the Federal Reserve does a Hike of 0bps on October 28, 2026, then the market resolves to Yes.",
    "resolutionSource": "Federal Reserve",
    "url": "https://kalshi.com/markets/kxfeddecision/fed-meeting/kxfeddecision-26oct",
    "scrapedAt": "2026-10-21T13:27:41.512Z"
}
```

Polymarket rows add `outcomes`, `liquidity`, `conditionId`, `clobTokenIds` and `negRisk`; Manifold multiple-choice markets give one row per answer.

### Pricing

Pay per event: **US$1.40 per 1,000 contracts** saved (US$0.0014 each), plus Apify's standard run-start event (US$0.00005). Platform compute is included.

- The default run (30 contracts) costs about US$0.04.
- 1,000 contracts = US$1.40; 10,000 contracts = US$14.
- An hourly snapshot of 50 contracts for a month (≈36,000 rows) ≈ US$50.

Set a maximum cost per run in Apify; the Actor stops cleanly when it is reached.

### How it compares

Most prediction-market Actors in the Store cover one platform, often one slice of it (only Kalshi weather, only Polymarket events). This one covers the two large real-money exchanges plus Manifold with one schema, so cross-platform work needs no glue code. What it does not do: it takes a snapshot of current prices (plus the platform's own 24-hour change), not full price history; it does not return order-book depth or individual trades; and it does not place orders. Kalshi does not publish a liquidity figure in its API, so `liquidity` is empty for Kalshi rows.

### Integrations

Use the results through the Apify API (JSON, CSV, Excel), schedule runs, or connect them to **n8n**, **Make**, **Zapier**, Google Sheets and webhooks. AI agents can call the Actor through the Apify MCP server to fetch current probabilities on demand.

Related Actors from the same author: [Sports Betting Odds Scraper](https://apify.com/fabrikit/sports-odds-scraper) (DraftKings lines per game, the Actor this one is built on), [Yahoo Finance Scraper](https://apify.com/fabrikit/yahoo-finance-scraper) and [CoinMarketCap Scraper](https://apify.com/fabrikit/coinmarketcap-scraper).

### FAQ

**Is it legal?** The Actor reads public market data from the platforms' own public APIs, without logging in. It does not collect personal data: Manifold creator names, avatars and user ids and Polymarket wallet addresses are left out. Check each platform's terms for your use case.

**Do I need a proxy?** No. If a platform ever blocks requests, the Actor switches header profiles and then Apify datacenter proxy on its own.

**How fresh is the data?** Prices are read at run time. Schedule the Actor (every 5–60 minutes) for a time series.

**Why are some probabilities 0.01 or 0.99?** Far-out-of-the-money contracts trade at the minimum tick. Use `volume24h` or `maxMarketsPerEvent` to focus on active contracts.

**Is Manifold real money?** No, it uses play money (mana). It is included because its community forecasts cover questions the exchanges do not list.

**Limits?** Up to 50,000 contracts per run; 20 search words per run.

### Changelog

- 0.1 (October 2026): first release. Kalshi, Polymarket and Manifold; search, topics, status and sort filters, direct links and Kalshi tickers, contracts-per-event limit.

### En español

Prediction Markets Scraper extrae las cuotas de los mercados de predicción Kalshi, Polymarket y Manifold en una sola tabla: por cada contrato, la probabilidad implícita, el mejor bid y ask, el último precio, el cambio en 24 horas, el volumen, la liquidez, el interés abierto, la fecha de cierre, el resultado y las reglas de resolución. Puedes buscar por palabras, elegir un tema (política, economía, cripto, clima, deportes...) o pegar enlaces y tickers de Kalshi. Usa las API públicas de cada plataforma, sin navegador, sin login y sin proxy. Precio: US$1,40 por cada 1.000 contratos (más el evento estándar de inicio de Apify, US$0,00005).

# Actor input Schema

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

Prediction markets to search. Kalshi (CFTC-regulated, US dollars) and Polymarket (USDC) are real-money exchanges; Manifold uses play money (mana) and has many user-created questions.

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

Optional. Words to look for in market questions, e.g. `fed decision`, `bitcoin`, `senate`, `highest temperature`. Each one runs the platform's own search; maxItems is shared between them. Leave empty to list the top markets (by the sort below).

## `topic` (type: `string`):

Optional. Narrows the results to one topic, mapped to each platform's own category (Kalshi category, Polymarket tag, Manifold topic). A platform without that topic is skipped and noted in the log.

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

`open` = still trading; `resolved` = settled, with the winning side in `result`; `all` = no filter. Applies to searches, topics and Kalshi series links; links to a single event or market always return all of its contracts.

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

Order in which each platform returns events. `trending` uses Kalshi's trending order, Polymarket's 24-hour volume and Manifold's relevance score. Search words on Polymarket are always ranked by its own relevance.

## `marketUrls` (type: `array`):

Optional. Exact markets to fetch: kalshi.com/markets/... links, Kalshi tickers (series `KXHIGHNY`, event `KXFEDDECISION-26OCT` or market `KXFEDDECISION-26OCT-H0`), polymarket.com/event/... links and manifold.markets/... links. When only links are given, no search is run.

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

Many events hold dozens of contracts (price strikes, player props, candidates). Set e.g. 5 to keep only the 5 most traded contracts of each event and see more events. 0 = all contracts.

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

Maximum number of rows (contracts) to save in total. It is shared out between the platforms you picked; room a platform does not use goes to the next one.

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

Not needed: the three APIs are public. If a platform ever blocks the run, the Actor switches header profiles and then Apify datacenter proxy on its own; choose a proxy here only to force one.

## Actor input object example

```json
{
  "platforms": [
    "kalshi",
    "polymarket"
  ],
  "status": "open",
  "sortBy": "trending",
  "maxMarketsPerEvent": 0,
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `contracts` (type: `string`):

One row per contract: implied probability, bid/ask, volume, liquidity, close date, result and rules

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

Per-platform counts, requests and any problems met during the run

# 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"
    ],
    "maxItems": 30,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fabrikit/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",
    ],
    "maxItems": 30,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("fabrikit/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"
  ],
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call fabrikit/prediction-markets-scraper --silent --output-dataset

```

## MCP server setup

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