# Kalshi Scraper — Prediction Markets, Odds, Volume & Rules (`logiover/kalshi-scraper`) Actor

Extract CFTC-regulated Kalshi prediction market contracts, real-time Yes/No bid-ask odds, implied probabilities, trading volume, open interest, liquidity, and settlement rules across Politics, Economics, Crypto, AI, and Sports without an API key.

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

## Pricing

from $1.60 / 1,000 results

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

## Kalshi Scraper — Prediction Markets, Odds, Volume & Rules

> **Disclaimer:** This Actor is an independent data extraction tool and is not affiliated with, endorsed by, or sponsored by Kalshi Inc. All trademarks belong to their respective owners.

Extract CFTC-regulated Kalshi prediction market contracts, live Yes/No orderbook bid-ask prices, implied outcome probabilities, 24-hour and cumulative trading volume, open interest, top-of-book dollar liquidity, and full settlement rules at scale without RSA API key authentication. Built as a high-speed **Kalshi scraper** and **Kalshi API alternative**, this Actor lets you **scrape kalshi.com without API key** setup, filter across live and settled event contracts, and **export Kalshi to CSV, Excel, JSON**, JSONL, or Parquet — 100% **AI agent & MCP ready**.

Whether you run cross-venue prediction market arbitrage (comparing Kalshi vs. Polymarket, CME FedWatch, or sportsbooks), train macroeconomic and geopolitical forecasting models, build real-time probability dashboards, backtest historical calibration across resolved contracts, or power autonomous AI research agents, this Actor delivers flat, deduplicated, zero-empty-column contract records (`ticker`, `eventTicker`, `seriesTicker`, `title`, `eventTitle`, `subtitle`, `category`, `status`, `yesBid`, `yesAsk`, `noBid`, `noAsk`, `lastPrice`, `spread`, `impliedProbabilityPct`, `volume`, `volume24h`, `openInterest`, `liquidity`, `openTime`, `closeTime`, `expirationTime`, `result`, `rulesPrimary`, and `marketUrl`) in seconds.

***

### At a Glance

| Capability | Specification |
| :--- | :--- |
| **Target Platform** | `kalshi.com` (CFTC-regulated US Designated Contract Market — Events, Markets, and Series) |
| **Contract Lifecycles** | `"open"` (live tradable markets) · `"closed"` (trading halted, awaiting resolution) · `"settled"` (resolved historical contracts) · `"all"` (combined sweep) |
| **Filtering & Targeting** | `categories` · `searchQueries` · `eventTickers` · `seriesTickers` · `marketTickers` (or URLs) · `minVolume` · `minOpenInterest` · `excludeMultivariateParlays` |
| **Measured Throughput** | **12,500 unique deduplicated contracts in 47.4 seconds** · **40 default contracts in 3.0 seconds** (2026-11-17 live Apify runs) |
| **Field Completeness** | **100.0% across all 32 output fields** (`0` empty columns, `0` duplicate tickers) |
| **Authentication Needed** | None — no Kalshi account, API key ID, or RSA-PSS request signing required |
| **Pricing Model** | Pay Per Event (`apify-default-dataset-item`): **$2.50 / 1,000 results** (FREE) down to **$1.60 / 1,000 results** (GOLD–DIAMOND) |
| **Export Formats** | JSON, JSONL, CSV, Excel (`.xlsx`), XML, HTML Table, RSS via Apify Dataset API |
| **AI & Automation Ready** | Official Apify MCP Server (`logiover/kalshi-scraper`), LangChain, CrewAI, n8n, Make, Zapier |

***

### Key Features & Extraction Modes

#### 1. Full Lifecycle Coverage (`open`, `closed`, `settled`, `all`)

- **Live Tradable Markets (`status: "open"`):** Capture current Yes/No best bid and ask quotes (`yesBid`, `yesAsk`, `noBid`, `noAsk`), bid-ask `spread`, `lastPrice`, `previousPrice`, real-time `impliedProbabilityPct`, `volume24h`, `openInterest`, and top-of-book `liquidity`.
- **Historical & Resolved Contracts (`status: "settled"` or `"closed"`):** Pull thousands of finalized contracts with verified resolution outcomes (`result`: `"yes"`, `"no"`, `"scalar"`) and exact `openTime` / `closeTime` / `expirationTime` timestamps for quantitative backtesting and Brier-score calibration studies.
- **Unified Full-Exchange Sweep (`status: "all"`):** Automatically sweeps open, settled, and closed event cursors in a single run with strict `ticker`-level deduplication.

#### 2. Multi-Dimensional Targeting & Noise Elimination

- **Category Filtering (`categories`):** Filter directly by Kalshi's taxonomy — `"Elections"`, `"Politics"`, `"Economics"`, `"Financials"`, `"Crypto"`, `"Science and Technology"`, `"Climate and Weather"`, `"Companies"`, `"Culture"`, `"Sports"`, `"World"`, `"Health"`.
- **Keyword Discovery (`searchQueries`):** Match terms such as `"Fed"`, `"CPI"`, `"tariff"`, `"Bitcoin"`, `"GPT"`, `"recession"`, or `"Supreme Court"` across contract titles, event titles, outcome subtitles, tickers, and primary settlement rules.
- **Exact Series, Event, or Contract Pinpointing:** Query entire recurring macro series (`seriesTickers: ["KXFED", "KXCPI"]`), multi-outcome events (`eventTickers: ["KXNEXTNATOSECGEN-99"]`), or individual contract tickers and `kalshi.com/markets/...` URLs (`marketTickers`).
- **Clean Standalone Markets by Default (`excludeMultivariateParlays: true`):** Automatically filters out synthetic user-generated multi-leg parlay combinations (`KXMVE*`) so your dataset contains clean, liquid, primary event contracts.

#### 3. Normalized Fixed-Point Dollar & Probability Math

- Parses Kalshi's latest fixed-point `_dollars` (`0.0000`–`1.0000`) and `_fp` fractional contract volume fields cleanly into standard floating-point numbers.
- Computes `impliedProbabilityPct` (`0`–`100%`) from `lastPrice` when traded, with automatic bid-ask midpoint fallback `((yesBid + yesAsk) / 2) * 100` on newly listed active orderbooks that have live resting quotes (`yesBid: 0.94, yesAsk: 0.99 -> impliedProbabilityPct: 96.5%`) prior to their first trade print.

***

### 12 High-Impact Quantitative, AI & Business Use Cases

1. **Cross-Exchange Prediction Market Arbitrage:** Continuously compare Kalshi `yesAsk` / `noAsk` prices against Polymarket, ForecastEx, Betfair, and traditional derivatives to spot risk-free or positive-EV mispricings.
2. **Macroeconomic & Fed Rate Monitoring:** Track `Economics` and `Financials` series (FOMC rate decisions, CPI inflation prints, Nonfarm Payrolls, GDP growth, Treasury yields) alongside Wall Street consensus estimates.
3. **AI Agent Ground-Truth Probability Tooling (MCP):** Give Claude, GPT, or custom research agents live CFTC-regulated market probabilities via MCP whenever executives ask *"What odds are prediction markets assigning to a rate cut next month?"*
4. **Election & Geopolitical Forecasting Dashboards:** Feed real-time `Elections`, `Politics`, and `World` contract odds (`impliedProbabilityPct`, `volume24h`, `openInterest`) into BI dashboards, newsrooms, and Substack/newsletter charts.
5. **Historical Calibration & Alpha Backtesting:** Export `10,000+` `settled` contracts to Python/Pandas or R to evaluate implied probability calibration at 30d, 7d, and 24h before `closeTime`.
6. **Corporate & Tech Event Risk Hedging:** Monitor `Companies` and `Science and Technology` markets covering AI model releases, CEO transitions, M\&A approvals, antitrust rulings, and rocket launches.
7. **Crypto Derivatives Sentiment Signals:** Combine Kalshi `Crypto` strike ladders (BTC, ETH, SOL price thresholds by date) with spot/perp funding rates to measure retail vs. regulated US positioning.
8. **Climate, Hurricane & Weather Risk Analytics:** Pull `Climate and Weather` temperature, precipitation, and storm landfall contracts for insurance, agriculture, and energy trading desks.
9. **Rulebook & Settlement Dispute Analysis:** Extract `rulesPrimary`, `canCloseEarly`, `mutuallyExclusive`, and `expirationTime` across thousands of contracts to audit resolution wording before deploying capital.
10. **Liquidity & Orderbook Microstructure Screening:** Use `minVolume`, `minOpenInterest`, `spread`, and `liquidity` to screen strictly for deep, tight-spread markets suitable for automated market making.
11. **Media, Entertainment & Cultural Trend Tracking:** Track `Culture` awards (Oscars, Grammys, Emmys), box-office openings, and streaming milestones with live market-implied probabilities.
12. **Automated Slack / Discord / Telegram Alerting:** Schedule hourly Apify runs connected to n8n, Make, or Zapier to alert your team whenever an event's `impliedProbabilityPct` moves >10% or `volume24h` spikes.

***

### Copy-Paste JSON Input Recipes

#### Recipe 1: Top Live Open Prediction Markets Across All Categories

```json
{
  "status": "open",
  "excludeMultivariateParlays": true,
  "maxResults": 200,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 2: High-Liquidity Macro, Economics & Fed Markets (`minVolume` + `categories`)

```json
{
  "status": "open",
  "categories": [
    "Economics",
    "Financials"
  ],
  "minVolume": 1000,
  "excludeMultivariateParlays": true,
  "maxResults": 500,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 3: Keyword Search Across AI, Tech & Crypto Markets

```json
{
  "status": "open",
  "searchQueries": [
    "OpenAI",
    "Bitcoin",
    "NVIDIA",
    "Mars",
    "artificial intelligence"
  ],
  "excludeMultivariateParlays": true,
  "maxResults": 300,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 4: Full-Scale Exchange Dump — 12,500+ Open, Settled & Closed Contracts

```json
{
  "status": "all",
  "excludeMultivariateParlays": true,
  "maxResults": 12500,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 5: Resolved Historical Contracts for Quantitative Backtesting (`status: "settled"`)

```json
{
  "status": "settled",
  "categories": [
    "Politics",
    "Elections",
    "Economics"
  ],
  "excludeMultivariateParlays": true,
  "maxResults": 5000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 6: Pinpoint Specific Event Tickers (All Mutually Exclusive Candidate Contracts)

```json
{
  "eventTickers": [
    "KXNEXTNATOSECGEN-99",
    "KXELONMARS-99"
  ],
  "excludeMultivariateParlays": true,
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 7: Track Entire Recurring Macro / Crypto Series (`seriesTickers`)

```json
{
  "seriesTickers": [
    "KXELONMARS",
    "KXNEXTNATOSECGEN"
  ],
  "status": "all",
  "maxResults": 500,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 8: Direct Kalshi Market URLs or Individual Contract Tickers (`marketTickers`)

```json
{
  "marketTickers": [
    "KXELONMARS-99",
    "https://kalshi.com/markets/kxnextnatosecgen/kxnextnatosecgen-99"
  ],
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

***

### Full Input Reference

| Parameter | Type | Default | Prefill | Description |
| :--- | :--- | :--- | :--- | :--- |
| `status` | `string` (`open` | `closed` | `settled` | `all`) | `"open"` | `"open"` | Contract lifecycle filter. `"all"` sweeps open, settled, and closed markets in sequence. |
| `categories` | `array<string>` | `[]` | `[]` | Case-insensitive category filter (`Elections`, `Politics`, `Economics`, `Financials`, `Crypto`, `Science and Technology`, `Climate and Weather`, `Companies`, `Culture`, `Sports`, `World`, `Health`). |
| `searchQueries` | `array<string>` | `[]` | `[]` | Case-insensitive keyword substrings matched against `ticker`, `eventTicker`, `seriesTicker`, `title`, `eventTitle`, `subtitle`, `category`, and `rulesPrimary`. |
| `eventTickers` | `array<string>` | `[]` | `[]` | Exact Kalshi event tickers (e.g., `KXNEXTNATOSECGEN-99`) to extract all nested outcome contracts from. |
| `seriesTickers` | `array<string>` | `[]` | `[]` | Kalshi recurring series tickers (e.g., `KXELONMARS`) to paginate all events and contracts for. |
| `marketTickers` | `array<string>` | `[]` | `[]` | Individual Kalshi contract tickers or `https://kalshi.com/markets/...` URLs. |
| `minVolume` | `integer` (`>= 0`) | `0` | `0` | Minimum cumulative contract volume required to include a market. |
| `minOpenInterest` | `integer` (`>= 0`) | `0` | `0` | Minimum active open interest required to include a market. |
| `excludeMultivariateParlays` | `boolean` | `true` | `true` | Excludes synthetic multi-leg user parlay contracts (`KXMVE*`) so results contain primary event markets. |
| `maxResults` | `integer` (`1`–`100000`) | `200` | `40` | Maximum number of unique deduplicated Kalshi contract rows to output. |
| `proxyConfiguration` | `object` | `{ "useApifyProxy": true }` | `{ "useApifyProxy": true }` | Apify Proxy configuration for consistent global connectivity to Kalshi endpoints. |

***

### Complete Data Dictionary & Measured Fill Rates (32 Fields)

Fill rates below were measured directly on live Apify platform runs on **2026-11-17** across both `XuXu3nvUke8ljd2qH` (`40` open rows) and `Kcmpab7MA7ClN2ZDL` (**`12,500` unique deduplicated rows**):

| Field | Type | Measured Fill Rate | Description |
| :--- | :--- | :--- | :--- |
| `id` | `string` | **100.0%** | Primary unique record identifier (canonical Kalshi contract `ticker`). |
| `ticker` | `string` | **100.0%** | Unique Kalshi market contract ticker (e.g., `"KXELONMARS-99"`). |
| `eventTicker` | `string` | **100.0%** | Parent event identifier grouping related outcomes (e.g., `"KXNEXTNATOSECGEN-99"`). |
| `seriesTicker` | `string` | **100.0%** | Recurring series family ticker (e.g., `"KXNEXTNATOSECGEN"`). |
| `title` | `string` | **100.0%** | Specific binary/scalar contract question title. |
| `eventTitle` | `string` | **100.0%** | Parent event headline question. |
| `subtitle` | `string` | **100.0%** | Specific candidate, strike threshold, or date outcome label (e.g., `"Klaus Iohannis"`, `"Mars"`). |
| `category` | `string` | **100.0%** | Kalshi market category (e.g., `"Science and Technology"`, `"Elections"`, `"Economics"`, `"Crypto"`). |
| `status` | `string` | **100.0%** | Exchange contract status (`"active"`, `"closed"`, `"determined"`, `"finalized"`, `"settled"`). |
| `marketType` | `string` | **100.0%** | Contract payout structure (`"binary"` or `"scalar"`). |
| `yesBid` | `number` | **100.0%** | Best resting Yes bid price in USD (`0.00`–`1.00`, e.g., `0.10` = 10¢). |
| `yesAsk` | `number` | **100.0%** | Best resting Yes ask/offer price in USD (`0.00`–`1.00`, e.g., `0.12` = 12¢). |
| `noBid` | `number` | **100.0%** | Best resting No bid price in USD (`0.00`–`1.00`, e.g., `0.88` = 88¢). |
| `noAsk` | `number` | **100.0%** | Best resting No ask/offer price in USD (`0.00`–`1.00`, e.g., `0.90` = 90¢). |
| `lastPrice` | `number` | **100.0%** | Most recent matched trade Yes price in USD (`0.00`–`1.00`). |
| `previousPrice` | `number` | **100.0%** | Prior 24-hour reference Yes trade price in USD (`0.00`–`1.00`). |
| `spread` | `number` | **100.0%** | Current Yes bid-ask spread in USD (`yesAsk - yesBid`, e.g., `0.02`). |
| `impliedProbabilityPct` | `number` | **100.0%** | Market-implied Yes probability percentage (`0`–`100`, derived from `lastPrice` or live bid-ask midpoint). |
| `volume` | `number` | **100.0%** | Cumulative lifetime contracts traded on this market (fractional-precision supported). |
| `volume24h` | `number` | **100.0%** | Contracts traded over the trailing 24 hours. |
| `openInterest` | `number` | **100.0%** | Active outstanding contracts currently held open. |
| `liquidity` | `number` | **100.0%** | Estimated top-of-book resting dollar liquidity across best bid and ask quotes. |
| `notionalValue` | `number` | **100.0%** | Settlement payout value per winning contract in USD (typically `1` = `$1.00`). |
| `mutuallyExclusive` | `boolean` | **100.0%** | `true` if at most one contract in `eventTicker` can resolve to `"yes"`. |
| `canCloseEarly` | `boolean` | **100.0%** | `true` if the contract can close and settle immediately once the underlying event occurs. |
| `openTime` | `string` | **100.0%** | ISO-8601 UTC timestamp when trading opened on the contract. |
| `closeTime` | `string` | **100.0%** | ISO-8601 UTC scheduled trading close timestamp. |
| `expirationTime` | `string` | **100.0%** | ISO-8601 UTC scheduled contract expiration / settlement deadline. |
| `result` | `string` | **100.0%** | Official resolution outcome (`"yes"`, `"no"`, `"scalar"`), or `"pending"` while unsettled. |
| `rulesPrimary` | `string` | **100.0%** | Complete CFTC-filed primary resolution rule text governing how the contract settles. |
| `marketUrl` | `string` | **100.0%** | Direct public web URL on `kalshi.com` (`https://kalshi.com/markets/<series>/<event>`). |
| `scrapedAt` | `string` | **100.0%** | ISO-8601 UTC timestamp when the contract snapshot was captured. |

***

### Real Live Output Samples (Unmasked)

#### Sample 1: Active Science & Technology Contract (Live Run `XuXu3nvUke8ljd2qH`)

```json
{
  "id": "KXELONMARS-99",
  "ticker": "KXELONMARS-99",
  "eventTicker": "KXELONMARS-99",
  "seriesTicker": "KXELONMARS",
  "title": "Will Elon Musk visit Mars before Aug 1, 2099?",
  "eventTitle": "Will Elon Musk visit Mars in his lifetime?",
  "subtitle": "Mars",
  "category": "Science and Technology",
  "status": "active",
  "marketType": "binary",
  "yesBid": 0.1,
  "yesAsk": 0.12,
  "noBid": 0.88,
  "noAsk": 0.9,
  "lastPrice": 0.11,
  "previousPrice": 0.1,
  "spread": 0.02,
  "impliedProbabilityPct": 11,
  "volume": 127565.58,
  "volume24h": 1.88,
  "openInterest": 40087.78,
  "liquidity": 83.45,
  "notionalValue": 1,
  "mutuallyExclusive": false,
  "canCloseEarly": true,
  "openTime": "2025-08-28T20:45:00Z",
  "closeTime": "2099-08-01T04:59:00Z",
  "expirationTime": "2099-08-08T15:00:00Z",
  "result": "pending",
  "rulesPrimary": "If Elon Musk visits Mars before the earlier of his death or Aug 1, 2099, then the market resolves to Yes.",
  "marketUrl": "https://kalshi.com/markets/kxelonmars/kxelonmars-99",
  "scrapedAt": "2026-11-17T11:22:14.919Z"
}
```

#### Sample 2: Mutually Exclusive Election Candidate Contract (Live Run `XuXu3nvUke8ljd2qH`)

```json
{
  "id": "KXNEXTNATOSECGEN-99-KKAL",
  "ticker": "KXNEXTNATOSECGEN-99-KKAL",
  "eventTicker": "KXNEXTNATOSECGEN-99",
  "seriesTicker": "KXNEXTNATOSECGEN",
  "title": "Will Kaja Kallas be the next Secretary General of NATO?",
  "eventTitle": "Who will be the next Secretary General of NATO?",
  "subtitle": "Kaja Kallas",
  "category": "Elections",
  "status": "active",
  "marketType": "binary",
  "yesBid": 0.12,
  "yesAsk": 0.2,
  "noBid": 0.8,
  "noAsk": 0.88,
  "lastPrice": 0.13,
  "previousPrice": 0.13,
  "spread": 0.08,
  "impliedProbabilityPct": 13,
  "volume": 1962.46,
  "volume24h": 0,
  "openInterest": 612,
  "liquidity": 18.4,
  "notionalValue": 1,
  "mutuallyExclusive": true,
  "canCloseEarly": true,
  "openTime": "2026-06-29T19:47:00Z",
  "closeTime": "2099-01-08T15:00:00Z",
  "expirationTime": "2099-01-08T15:00:00Z",
  "result": "pending",
  "rulesPrimary": "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.",
  "marketUrl": "https://kalshi.com/markets/kxnextnatosecgen/kxnextnatosecgen-99",
  "scrapedAt": "2026-11-17T11:22:14.919Z"
}
```

***

### Measured Performance & Scale Proof (2026-11-17)

All benchmarks below were executed live on Apify cloud infrastructure on **2026-11-17** using standard 1,024 MB containers:

| Benchmark Profile | Apify Run ID | Lifecycle Scope | Deduplicated Rows | Duration | Peak RAM | Empty Columns | Status |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| **Default Prefill QC Run** | `XuXu3nvUke8ljd2qH` | `"open"` | **40 contracts** | **3.0s** | 47 MB | `0` (`100.0%` fill on all 32 cols) | `SUCCEEDED` |
| **High-Volume Scale Benchmark** | `Kcmpab7MA7ClN2ZDL` | `"all"` | **12,500 contracts** | **47.4s** (~264 rows/sec) | 132 MB | `0` (`100.0%` fill on all 32 cols) | `SUCCEEDED` |
| **Max-Cost Budget Guard Proof** | `N14bcdzXSaHKE8qCE` | `"open"` | **22 contracts** | **2.5s** (graceful cap stop) | 62 MB | `0` (`100.0%` fill on all 32 cols) | `SUCCEEDED` |

***

### Pricing — What You Pay (Pay Per Event)

This Actor uses transparent **Pay Per Event (`PAY_PER_EVENT`)** pricing on `apify-default-dataset-item`. You pay strictly per unique Kalshi market contract delivered — **zero monthly rental fees** and automatic tier discounts based on your Apify Store plan:

| Apify Store Plan Tier | Price per 1,000 Results | Price per Single Result | 10,000 Results Total |
| :--- | :--- | :--- | :--- |
| **FREE** | **$2.50 / 1k** | `$0.002500` | `$25.00` |
| **BRONZE** | **$2.20 / 1k** | `$0.002200` | `$22.00` |
| **SILVER** | **$1.90 / 1k** | `$0.001900` | `$19.00` |
| **GOLD** | **$1.60 / 1k** | `$0.001600` | `$16.00` |
| **PLATINUM** | **$1.60 / 1k** | `$0.001600` | `$16.00` |
| **DIAMOND** | **$1.60 / 1k** | `$0.001600` | `$16.00` |

#### Setting a Hard "Maximum Cost per Run" Budget Cap

Every run supports strict dollar ceiling enforcement:

1. In Apify Console under **Run options -> Maximum cost per run**, enter any USD limit (for example, `$0.05`, `$0.50`, or `$5.00`), or pass `?maxTotalChargeUsd=0.50` via the Apify API.
2. The Actor's built-in charging guard queries remaining event capacity before every dataset push, slices the final batch to stay strictly inside your limit, writes `SUMMARY` to the Key-Value Store, and finishes `SUCCEEDED` (never `ABORTED`) with every collected contract saved cleanly.

***

### AI Agent & Official Apify MCP Server Integration

Expose live CFTC-regulated Kalshi market odds directly to **Claude Desktop**, **Cursor**, **Windsurf**, **VS Code Copilot**, or custom MCP agents via the official Apify MCP Server:

```text
https://mcp.apify.com?tools=logiover/kalshi-scraper
```

#### `claude_desktop_config.json` / `.cursor/mcp.json`

```json
{
  "mcpServers": {
    "kalshi-scraper": {
      "url": "https://mcp.apify.com?tools=logiover/kalshi-scraper",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

Example agent prompt: *"Use `kalshi-scraper` to fetch all open Economics and Financials contracts with `minVolume: 500`, rank them by `volume24h`, and summarize the implied probabilities for upcoming Fed rate decisions."*

***

### API & Workflow Integration Examples

#### Node.js (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('logiover/kalshi-scraper').call({
    status: 'open',
    categories: ['Economics', 'Crypto'],
    minVolume: 500,
    maxResults: 250,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Fetched ${items.length} Kalshi contracts. Top contract:`, items[0]?.ticker, `${items[0]?.impliedProbabilityPct}%`);
```

#### Python (`apify-client` + Pandas Quantitative Analysis)

```python
import os
import pandas as pd
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("logiover/kalshi-scraper").call(
    run_input={
        "status": "open",
        "excludeMultivariateParlays": True,
        "maxResults": 2000,
    }
)

df = pd.DataFrame(client.dataset(run["defaultDatasetId"]).iterate_items())
print(df[["ticker", "category", "impliedProbabilityPct", "spread", "volume", "openInterest"]].head(10))
```

#### cURL (Synchronous JSON Feed + Max-Charge Cap)

```bash
curl -X POST "https://api.apify.com/v2/acts/logiover~kalshi-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN&maxTotalChargeUsd=0.25" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "open",
    "searchQueries": ["Bitcoin", "Fed"],
    "maxResults": 100
  }'
```

#### n8n / Make / Zapier Automation

- **n8n:** Schedule Trigger (every 15 mins) -> **Apify: Run Actor (`logiover/kalshi-scraper`)** -> **IF** node (`impliedProbabilityPct > 75 && volume24h > 1000`) -> Slack / Telegram / Postgres upsert.
- **Make:** **Apify -> Run an Actor** (`Run synchronously = Yes`) -> **Apify -> Get Dataset Items** -> Google Sheets / Airtable live odds tracker.
- **Zapier:** Schedule by Zapier -> **Apify: Run Actor (`logiover/kalshi-scraper`)** -> Digest by Zapier / Email daily market briefing.

***

### Troubleshooting & Support

- **0 results when combining narrow filters:** If you combine strict `categories`, `searchQueries`, and high `minVolume` / `minOpenInterest` thresholds simultaneously, fewer markets may match. Try relaxing `minVolume` to `0` or leaving `categories` empty when testing niche `searchQueries`.
- **Geo-restricted direct connections:** Kalshi restricts direct traffic from certain non-US residential regions; keep `proxyConfiguration: { "useApifyProxy": true }` enabled (the default) so requests route cleanly in ~3 seconds.
- **Understanding `yesBid` / `yesAsk` units:** All contract prices (`yesBid`, `yesAsk`, `noBid`, `noAsk`, `lastPrice`, `previousPrice`, `spread`) are normalized to **USD (`$0.00`–`$1.00`)** per `$1.00` notional payout (`0.12` = `12¢` = `12%` raw payout odds).
- **Issues & Feature Requests:** Need orderbook depth levels, candlestick history, or custom series filters? Open an issue on the [Actor Issues tab](https://apify.com/logiover/kalshi-scraper/issues) for rapid support. Enjoying the speed and clean schema? A quick review on the [Actor Reviews tab](https://apify.com/logiover/kalshi-scraper/reviews) is hugely appreciated!

***

### Frequently Asked Questions (FAQ)

#### Do I need a Kalshi account, API key, or RSA private key to run this Actor?

No. Kalshi's authenticated trading endpoints require RSA-PSS request signing, but this Actor extracts public exchange market, event, and series data without requiring any Kalshi login, API key, or cryptographic signing setup.

#### What units are `yesBid`, `yesAsk`, `noBid`, `noAsk`, and `lastPrice` reported in?

All price fields are reported in **USD (`0.00` to `1.00`)** on a standard `$1.00` binary contract (`notionalValue: 1`). For example, `yesBid: 0.64` means 64 cents (`$0.64`), and `spread: 0.02` means a 2-cent bid-ask spread.

#### How is `impliedProbabilityPct` calculated when `lastPrice` is `0`?

When a contract has a matched trade (`lastPrice > 0`), `impliedProbabilityPct` equals `lastPrice * 100` (e.g., `$0.11 -> 11%`). On newly listed contracts that have active market-maker quotes (`yesBid` and `yesAsk`) but zero matched trades yet, `impliedProbabilityPct` automatically uses the live bid-ask midpoint `((yesBid + yesAsk) / 2) * 100` so probability analytics remain accurate.

#### What does `excludeMultivariateParlays` do and why is it `true` by default?

Kalshi lists thousands of auto-generated multi-leg sports/cross-category combo parlays (`KXMVE*` tickers) that often have `0` volume and 10-leg conditional strikes. Keeping `excludeMultivariateParlays: true` filters those out automatically so your dataset contains clean, standalone prediction market contracts. Set it to `false` if you specifically want parlay combo contracts included.

#### Can I scrape historical resolved Kalshi markets for backtesting?

Yes! Set `"status": "settled"` to extract resolved historical contracts complete with their verified `result` (`"yes"`, `"no"`, `"scalar"`), `openTime`, `closeTime`, `volume`, and `rulesPrimary`, or set `"status": "all"` to pull open, closed, and settled contracts together.

#### What values appear in the `result` field for open markets?

While a contract is still live or awaiting final determination, `result` is `"pending"` (guaranteeing zero null/empty values in strict downstream pipelines). Once settled by Kalshi's exchange determination, `result` contains the official outcome (`"yes"`, `"no"`, or `"scalar"`).

#### How fast can this Kalshi scraper pull 10,000+ contracts?

In our verified **2026-11-17** live Apify run (`Kcmpab7MA7ClN2ZDL`), the Actor extracted **12,500 unique deduplicated Kalshi contracts in 47.4 seconds** across 28 paginated event batches using 132 MB of RAM. Default 40-contract runs complete in **3.0 seconds**.

#### What categories exist on Kalshi?

Common Kalshi event categories include `Elections`, `Politics`, `Economics`, `Financials`, `Crypto`, `Science and Technology`, `Climate and Weather`, `Companies`, `Culture`, `Sports`, `World`, and `Health`. The `categories` input matches case-insensitively.

#### How do I fetch all candidate contracts inside a single multi-outcome Kalshi event?

Pass the event ticker (such as `"KXNEXTNATOSECGEN-99"`) in `eventTickers`, or paste the `https://kalshi.com/markets/...` URL into `marketTickers`. Every candidate contract inside that event will be returned with `mutuallyExclusive: true` so you can compare the full probability distribution.

#### How is `liquidity` computed on each contract?

When Kalshi's endpoint exposes explicit `liquidity_dollars`, that figure is used directly; otherwise, the Actor calculates real top-of-book resting dollar liquidity from the best Yes bid size (`yes_bid_size_fp * yesBid`) plus best Yes ask/No bid size (`yes_ask_size_fp * (1 - yesAsk)`).

#### Are duplicate contracts possible when `"status": "all"` or multiple filters are used?

No. Every contract is deduplicated synchronously in memory by its unique exchange `ticker` (`id`) prior to dataset emission — verified at **0 duplicates across 12,500 rows** on Apify.

#### Can I export Kalshi odds and rules directly to Excel, CSV, or BigQuery?

Yes. Every dataset generated by the Actor has a flat 32-column tabular structure (zero deeply nested objects) that exports cleanly to CSV, Excel (`.xlsx`), JSON, JSONL, or Parquet via Apify Console or REST API.

#### How does the "Maximum cost per run" budget limit work?

Setting **Maximum cost per run** (for example, `$0.05` or `$2.00`) activates the runtime charging guard, which checks remaining event allowance before every push, trims the final batch to fit cleanly within your dollar limit, writes `SUMMARY` to Key-Value Store, and exits `SUCCEEDED`.

#### Can I connect `kalshi-scraper` to Claude Desktop, Cursor, or OpenAI Agents via MCP?

Yes. Add `https://mcp.apify.com?tools=logiover/kalshi-scraper` with your Apify API token to your MCP configuration to give your AI assistant live prediction market search and probability lookup.

#### Can I filter strictly for liquid markets with real trading activity?

Yes. Set `minVolume` (for example, `1000` contracts) and/or `minOpenInterest` (for example, `250` contracts) to filter out thinly traded or brand-new strikes automatically during extraction.

#### Where is run telemetry stored after completion?

Every run writes a structured `SUMMARY` JSON object to the default Key-Value Store containing `outcome`, `status`, `maxResults`, `rowsPushed`, `pagesFetched`, `contractsEvaluated`, `duplicatesSkipped`, `filteredOut`, `durationMs`, and `completedAt`.

# Changelog

This Actor's version history is a separate document: https://apify.com/logiover/kalshi-scraper/changelog.md

# Actor input Schema

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

Filter contracts by lifecycle status: 'open' (live tradable markets), 'closed' (awaiting settlement), 'settled' (resolved historical markets), or 'all' (sweeps open, closed, and settled).

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

Optional Kalshi event categories to filter by (e.g. 'Politics', 'Economics', 'Financials', 'Crypto', 'Science and Technology', 'Climate and Weather', 'Companies', 'Culture', 'Sports', 'World', 'Health'). Leave empty for all categories.

## `searchQueries` (type: `array`):

Optional keywords matched against contract titles, subtitles, tickers, event titles, and primary settlement rules (e.g. 'Fed', 'inflation', 'Bitcoin', 'OpenAI', 'election').

## `eventTickers` (type: `array`):

Optional specific Kalshi event tickers to fetch (e.g. 'KXELONMARS-99', 'KXFEDDECISION-26DEC').

## `seriesTickers` (type: `array`):

Optional specific Kalshi series tickers to fetch all events/contracts for (e.g. 'KXFED', 'KXCPI', 'KXBTC').

## `marketTickers` (type: `array`):

Optional individual Kalshi contract tickers or kalshi.com/markets/... URLs.

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

Optional minimum cumulative contract volume filter.

## `minOpenInterest` (type: `integer`):

Optional minimum active open interest filter.

## `excludeMultivariateParlays` (type: `boolean`):

Exclude auto-generated user parlay combo contracts (KXMVE\*) to keep clean standalone prediction markets.

## `maxResults` (type: `integer`):

Maximum number of unique Kalshi prediction market contracts to extract.

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

Proxy settings for requests.

## Actor input object example

```json
{
  "status": "open",
  "minVolume": 0,
  "minOpenInterest": 0,
  "excludeMultivariateParlays": true,
  "maxResults": 40,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "status": "open",
    "maxResults": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/kalshi-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 = {
    "status": "open",
    "maxResults": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("logiover/kalshi-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 '{
  "status": "open",
  "maxResults": 40
}' |
apify call logiover/kalshi-scraper --silent --output-dataset

```

## MCP server setup

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