# Kalshi Scraper: Prediction Market Odds & Prices (`tidyharvest/kalshi-scraper`) Actor

Live Kalshi odds by keyword, category, series, event or ticker: YES/NO bid/ask, implied probability, 24h/total volume, open interest, close time, status and result, optional candlestick history and a free order book. No key or account. $0.90 per 1,000 markets.

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

## Pricing

from $0.70 / 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.
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 Market Odds & Prices

Get **live Kalshi odds** for any topic. Find prediction markets by **keyword, category, series, event, market ticker or URL**, filter by **open / closed / settled, volume, open interest and close date**, and get clean rows with **YES/NO bid and ask, last price, implied probability, 24h and total volume, open interest, open/close/expiration times, status, result, rules and URL**. Optional **price history** (candlesticks) and a free **order-book snapshot**. **$0.90 per 1,000 markets** (less on paid plans), no API key, no login, no Kalshi account.

The numbers are Kalshi's own public market data, so they match kalshi.com. Read-only: it never trades.

Also want Polymarket? See the sibling [Polymarket Scraper](https://apify.com/tidyharvest/polymarket-scraper): same filters and output style, so you can compare odds across both exchanges.

### What you can do with it

- **Track odds on what you care about:** Fed decisions, CPI and jobs reports, elections, Bitcoin and S\&P ranges, weather, sports, company and AI events. Run it hourly or daily and chart probabilities over time.
- **Find the busiest markets:** sort the whole exchange (or one category) by 24h volume or open interest, or list what closes this week.
- **Research and backtesting:** pull settled markets with their result and full candlestick history to study how well the crowd forecast.
- **Arbitrage and cross-market checks:** compare Kalshi prices with Polymarket, sportsbooks or your own model; the order book shows real bid/ask depth.
- **Feeds for dashboards, newsletters, bots and AI agents:** one tidy JSON row per market, ready for Sheets, a database or an LLM.

### How to use it

1. Type **search keywords** (e.g. `fed`, `bitcoin`, `elon musk`), pick a **category**, or paste **series / event / market tickers or kalshi.com URLs**. Leave all empty to browse the whole exchange.
2. Pick **status** (open, closed, settled, all), **sort**, and optional minimum volume / open interest and close-date range.
3. Turn on **price history** or the **order book** if you need them, then click **Start**. Download JSON, CSV or Excel, or connect to Sheets, Zapier or an API.

### Input

| Field | What it does |
|---|---|
| `searchQueries` | Keyword searches. Matches Kalshi series and event titles; every word must appear (`fed` also matches "Federal"). One per line. |
| `category` | Kalshi category: `Politics`, `Elections`, `Economics`, `Financials`, `Crypto`, `Companies`, `Sports`, `Entertainment`, `Climate and Weather`, `Science and Technology`, `World`... |
| `seriesTickers` | Series such as `KXFED`, `KXBTCD`, `KXHIGHNY`: the markets of the series' events. |
| `eventTickers` | Events such as `KXFED-26OCT`: every market (strike) in the event. |
| `marketTickers` | Market tickers (`KXFED-26OCT-T4.00`) or `https://kalshi.com/markets/...` URLs. Event and series tickers work here too. Returns any status unless `status` is set. |
| `status` | `open` (default), `closed` (trading stopped), `settled` (paid out) or `all`. |
| `sortBy` | `volume24h` (default), `volume`, `openInterest`, `closingSoon`, `newest`. |
| `minVolume` / `minVolume24h` / `minOpenInterest` | Minimums in contracts (one contract pays $1 if it wins). |
| `closeDateFrom` / `closeDateTo` | Window on the market's close time. |
| `excludeKeywords` | Drop markets mentioning these words (before billing), e.g. `15 min`. |
| `includePriceHistory` | Adds `priceHistory` candlesticks. Period `historyPeriod` (`minute`, `hour`, `day`), window `historyDays` (default 7), cap `maxHistoryPointsPerMarket` (default 200). |
| `includeOrderBook` | Adds a live order-book snapshot to each open market (`orderBookDepth` levels, default 10). Free. |
| `maxItems` | Cap on markets per run (default 50, up to 10,000). Also caps your cost. |

Example:

```json
{ "searchQueries": ["fed"], "status": "open", "sortBy": "volume", "minOpenInterest": 1000, "includePriceHistory": true, "historyPeriod": "day", "historyDays": 30, "maxItems": 20 }
```

### Output

One item per market:

```json
{
  "ticker": "KXFED-26OCT-T4.00",
  "title": "Will the upper bound of the federal funds rate be above 4.00% following the Fed's Oct 28, 2026 meeting?",
  "subtitle": "Above 4.00%", "noSubtitle": "Above 4.00%",
  "eventTicker": "KXFED-26OCT", "eventTitle": "Fed funds rate after Oct 2026 meeting?", "eventSubtitle": "On Oct 28, 2026",
  "seriesTicker": "KXFED", "category": "Economics",
  "url": "https://kalshi.com/markets/kxfed",
  "marketType": "binary", "status": "active", "result": null, "settlementValue": null,
  "yesBid": 0.26, "yesAsk": 0.28, "noBid": 0.72, "noAsk": 0.74,
  "lastPrice": 0.27, "midPrice": 0.27, "impliedProbabilityPct": 27.0, "spread": 0.02,
  "previousDayPrice": 0.24, "priceChange24h": 0.03,
  "yesBidSize": 28.0, "yesAskSize": 99.0,
  "volume": 230670.16, "volume24h": 2633.51, "openInterest": 74501.95, "liquidity": null, "notionalValue": 1.0,
  "openTime": "2026-08-01T14:00:00Z", "closeTime": "2026-10-28T17:55:00Z",
  "expectedExpirationTime": "2026-10-28T18:00:00Z", "expirationTime": "2026-11-04T15:00:00Z", "latestExpirationTime": "2026-11-04T15:00:00Z",
  "settlementTime": null, "createdTime": "2026-08-01T13:50:00Z", "canCloseEarly": false, "strikeType": "greater",
  "rulesPrimary": "If the upper bound of the federal funds rate is above 4.00% following the Fed's Oct 28, 2026 meeting, then the market resolves to Yes.",
  "rulesSecondary": "...",
  "settlementSources": ["https://www.federalreserve.gov/monetarypolicy/fomccalendars.htm"],
  "mutuallyExclusive": false,
  "priceHistory": [
    {"t": "2026-10-15T04:00:00Z", "open": 0.21, "high": 0.52, "low": 0.18, "close": 0.24, "mean": 0.4151,
     "yesBidClose": 0.23, "yesAskClose": 0.24, "volume": 15475.67, "openInterest": 74501.95}
  ],
  "orderBook": {
    "yesBids": [{"price": 0.26, "size": 28.0}], "yesAsks": [{"price": 0.28, "size": 99.0}], "noBids": [{"price": 0.72, "size": 99.0}],
    "yesBidDepthTotal": 9120.4, "noBidDepthTotal": 15020.7
  },
  "scrapedAt": "2026-10-15T23:12:09Z",
  "source": "Kalshi",
  "input": "KXFED"
}
```

- Prices are in dollars per contract (0 to 1), which is also the implied probability. `impliedProbabilityPct` uses the last trade, or the bid/ask midpoint if the market has never traded.
- `status` is Kalshi's own value: `active` (open), `closed` / `determined` (trading over, result pending or known), `finalized` / `settled` (paid out). `result` is `yes` or `no` once determined.
- Multi-outcome events (e.g. "Fed funds rate after the October meeting") are returned as one market per strike or candidate, each with its `subtitle` and shared `eventTitle`.
- Kalshi's order book only lists bids; a NO bid at p is a YES ask at 1 - p, so `yesAsks` are derived from the NO side.

### Pricing

Pay per result, with lower prices on paid Apify plans:

| Event | Free plan | Bronze | Silver | Gold and up |
|---|---|---|---|---|
| Market (`market-scraped`) | $0.90 / 1,000 | $0.85 / 1,000 | $0.80 / 1,000 | $0.70 / 1,000 |
| Price point (`price-point`, one candlestick, only with price history on) | $0.15 / 1,000 | $0.14 / 1,000 | $0.12 / 1,000 | $0.10 / 1,000 |

No start fee. Order-book snapshots are **free**. Filters and `maxItems` apply before you are charged. Example: 100 open markets with 7 days of hourly candles (~168 each) on the free plan is about $0.09 + $2.52; switch to daily candles and it drops to about $0.09 + $0.11. A run that finds nothing fails instead of silently returning an empty dataset.

### Limits and notes

- Data is Kalshi's public market data, read through its documented, keyless Trade API v2. Kalshi meters reads per client; this actor makes requests one at a time with a pause and backs off when asked, staying well under the published limits.
- Kalshi has no keyword-search API, so a search scans the titles of all open events (~15,000, about 20 seconds) plus matching series (most-traded first). Searches for closed/settled markets use matching series only.
- Browsing with no keyword or ticker scans every open market (100,000+) to sort them, which takes a couple of minutes; a keyword, category or ticker is much faster.
- Combo (multivariate) markets are not included. Markets settled before Kalshi's historical cutoff may be missing from settled searches.
- `volume`, `volume24h` and `openInterest` are in contracts. Kalshi no longer publishes a separate liquidity figure for most markets (`liquidity` is then null); use the order book for depth.
- `url` points to the series page on kalshi.com, which lists its events and markets.
- This actor reads market data only. It does not place trades or read anyone's account or positions.

Data source: Kalshi's public market data. This actor is not affiliated with or endorsed by Kalshi. Nothing here is financial advice.

### Related actors

Other actors from the same publisher that pair well with this one:

- [Polymarket Scraper](https://apify.com/tidyharvest/polymarket-scraper): Polymarket odds, volume and liquidity.

### Feedback and requests

We welcome feedback: a field or option you wish this had, a change to how it works, or a scraper you would like us to build.
Open an issue in the **Issues** tab of this page and tell us what you need. We read every one, and we build the requests that
come up most. If this actor works well for you, a short review helps other people find it.

# Actor input Schema

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

Find markets by keyword (e.g. `fed`, `bitcoin`, `election`, `elon musk`). Matches Kalshi series and event titles; every word must appear. One search per line. Leave empty (and the ticker fields empty) to browse the whole exchange.

## `category` (type: `string`):

Only markets in this Kalshi category. Narrows keyword searches and browsing.

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

Kalshi series, e.g. `KXFED` (Fed funds rate), `KXBTCD` (Bitcoin daily), `KXHIGHNY` (NYC high temperature). Returns the markets of the series' events.

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

Kalshi events, e.g. `KXFED-26OCT`. Returns every market (strike/outcome) in the event. Returned open or settled, like market tickers.

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

Specific markets (`KXFED-26OCT-T4.00`) or `https://kalshi.com/markets/...` URLs. Event and series tickers work here too. Markets and events given here are returned open or settled (Status `closed`/`settled` narrows them).

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

Which markets to return.

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

Order of results.

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

Skip markets with fewer contracts traded in total (one contract pays $1).

## `minVolume24h` (type: `integer`):

Skip markets with fewer contracts traded in the last 24 hours.

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

Skip markets with fewer outstanding contracts.

## `closeDateFrom` (type: `string`):

Only markets whose trading closes on or after this date (YYYY-MM-DD).

## `closeDateTo` (type: `string`):

Only markets whose trading closes on or before this date (YYYY-MM-DD).

## `excludeKeywords` (type: `array`):

Drop markets whose title, event or rules mention any of these (applied before billing). E.g. `15 min` to skip 15-minute crypto markets.

## `includePriceHistory` (type: `boolean`):

Add candlesticks (open/high/low/close price, bid/ask, volume, open interest) to each market. Billed per candlestick (see Pricing).

## `historyPeriod` (type: `string`):

Length of each candlestick.

## `historyDays` (type: `integer`):

How many days back the history goes.

## `maxHistoryPointsPerMarket` (type: `integer`):

Keep only the most recent N candlesticks per market. Caps the price-point cost.

## `includeOrderBook` (type: `boolean`):

Add a live order-book snapshot (YES bids, YES asks, NO bids, total depth) to each open market. No extra charge.

## `orderBookDepth` (type: `integer`):

How many price levels to keep per side.

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

Cap on markets per run (shared across searches/tickers). Also caps your cost.

## Actor input object example

```json
{
  "searchQueries": [
    "fed"
  ],
  "status": "open",
  "sortBy": "volume24h",
  "includePriceHistory": false,
  "historyPeriod": "hour",
  "historyDays": 7,
  "maxHistoryPointsPerMarket": 200,
  "includeOrderBook": false,
  "orderBookDepth": 10,
  "maxItems": 20
}
```

# Actor output Schema

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

Kalshi prediction markets with yes/no bid/ask, last price, implied probability, volume, open interest, close times, status and result, one item per market.

# 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 = {
    "searchQueries": [
        "fed"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("tidyharvest/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 = {
    "searchQueries": ["fed"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("tidyharvest/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 '{
  "searchQueries": [
    "fed"
  ],
  "maxItems": 20
}' |
apify call tidyharvest/kalshi-scraper --silent --output-dataset

```

## MCP server setup

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