# Kalshi Markets Scraper (`mrbridge/kalshi-markets-scraper`) Actor

Scrape Kalshi prediction markets into clean rows: question, probability, bid, ask, volume, open interest, status, close time and link. Pick by category, series or ticker, add price history, export to JSON, CSV or Excel. No API key needed.

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

## Pricing

from $0.60 / 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.
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 Markets Scraper

Collect prediction markets from Kalshi, one row per market, ready for JSON, CSV or Excel. The Actor reads the public Kalshi API without an account or API key. You can also add the price history of each market.

The Console prefill selects the `Crypto` category and sets `maxItems` to 20. It returns 20 open crypto markets, including the sample question "BNB price up in next 15 mins?" You can instead enter one event ticker to follow one event.

### What is Kalshi Markets Scraper?

A Kalshi market is a yes or no question. Its price, in dollars per contract from 0 to 1, reads as the probability given to "yes".

Select markets by category, series, event ticker or market ticker. You can also collect every market. There are 14 category choices, status and text filters, and duplicate markets are removed.

Column names follow a fixed prediction-market layout, documented in the Output section.

#### What data can I extract with it?

Each row contains the question, outcome, both sides with prices, probability, best bid, best ask and last price. It also includes volume, 24-hour volume, open interest, status and resolution.

Open, close and resolution times appear alongside the category, tags, event-page link and scrape time. The row also includes the series ticker, settlement sources, strike date and market subtitle.

#### How can I use the results?

- Track the probability of an event over time.
- Collect closed and settled markets to study how prices predicted outcomes. Set `status` to `closed`, `settled` or `all`.
- Compare the rows with other prediction-market data in one table.
- Feed the results into a dashboard or research notebook.

### How to use it

1. Choose categories, series, events or named markets. Leave the selectors empty to collect every market.
2. Set the status and text filters, the row cap, and whether to include price history.
3. Run the Actor, then read or export the default dataset as JSON, CSV or Excel.

### Input

| Field | Meaning | Default |
|---|---|---|
| `categories` | Kalshi categories (14 choices, from `Business` to `Sports`). The series of each category are read, then their events | empty (every market) |
| `seriesTickers` | Series to collect, for example `KXHIGHNY`. Up to 100 | empty |
| `eventTickers` | Events to collect, for example `KXHIGHNY-26OCT30`. Up to 100. Returned whatever their status | empty |
| `marketTickers` | Markets to collect, for example `KXHIGHNY-26OCT30-T69`. Up to 100. Returned whatever their status | empty |
| `status` | `open`, `closed`, `settled` or `all`. Filters the listings only | `open` |
| `searchTerms` | Keep markets whose question or event title contains one of the terms, any case | empty |
| `maxItems` | Hard cap on market rows returned and billed, 1 to 10000 | 100 |
| `includeHistory` | Add the price history of each market | `false` |
| `historyInterval` | Size of one price point, `1h` or `1d` | `1d` |
| `historyDays` | Days of history, 1 to 365 | 30 |

The Console prefill looks like this:

```json
{
  "categories": [
    "Crypto"
  ],
  "maxItems": 20
}
```

When you use several selectors, their markets are combined and duplicates are removed. The `status` field filters listings only. A named event or market is returned whatever its status. With `marketTickers`, `searchTerms` tests `question` only.

Each selector accepts up to 100 tickers. Tickers are uppercased, deduplicated and sorted. They can contain letters, digits, dot, underscore and hyphen.

Invalid input ends the run successfully with one `BAD_INPUT` row in the `errors` dataset. That row lists every problem, and no market row is delivered. This input check does not set `stoppedBy`. The `OUTPUT` record is still written, and `errorsByKind` includes the `BAD_INPUT` row.

### Output

| Field | Type | Meaning |
|---|---|---|
| `venue` | string | Always `kalshi` |
| `marketId` | string | Kalshi market ticker, the key of the row |
| `eventId` | string or null | Ticker of the event the market belongs to |
| `eventTitle` | string or null | Title of that event |
| `question` | string or null | The market's own question |
| `outcome` | string or null | The side that `probability` prices, `Yes` on Kalshi |
| `outcomes` | array | `Yes` at p and `No` at 1 - p, objects `{ label, price }`. `[]` when absent |
| `probability` | number or null | 0 to 1. Midpoint of bid and ask when both exist and the spread is at most 0.10, else the last trade, else the midpoint however wide. Null when the book has one side only and the market never traded |
| `bestBid`, `bestAsk`, `lastPrice` | number or null | Dollars per contract, 0 to 1 |
| `volume`, `volume24h` | number or null | In contracts, see `volumeUnit` |
| `volumeUnit` | string | Always `contracts` |
| `liquidity` | null | Always null, Kalshi does not serve it |
| `openInterest` | number or null | In contracts |
| `status` | string or null | `open`, `closed` or `resolved` |
| `statusRaw` | string or null | The status as Kalshi writes it |
| `resolution` | string or null | `Yes` or `No` once resolved |
| `openTime`, `closeTime`, `resolvedAt` | string or null | ISO 8601 in UTC |
| `category` | string or null | Kalshi category, taken at the level of the series |
| `tags` | array | Kalshi tag names. `[]` when absent |
| `moneyType` | string | Always `real` |
| `url` | string or null | Kalshi event page that lists this market |
| `history` | array or null | Price history, see below |
| `scrapedAt` | string | Time the row was built, ISO 8601 in UTC |
| `seriesTicker` | string or null | Ticker of the series |
| `settlementSources` | array | Sources the market settles on, objects `{ name, url }` |
| `strikeDate` | string or null | Strike date of the event, ISO 8601 in UTC |
| `marketSubtitle` | string or null | The yes side in short |

Market rows go to the default dataset. Problems go to the `errors` dataset and are never billed. The `OUTPUT` record summarizes the run, and the available views are `overview` and `history`.

The `url` field identifies the Kalshi event page that lists the market. Its middle part can differ from the address bar while opening the same page.

Every field is always present. A field is `null` when Kalshi gives no value, while `outcomes` and `tags` use `[]` when absent.

This sample row came from a fixture captured on 2026-10-30:

```json
{
  "venue": "kalshi",
  "marketId": "KXBNB15M-26OCT301045-45",
  "eventId": "KXBNB15M-26OCT301045",
  "eventTitle": "BNB 15 min · $694.47 target",
  "question": "BNB price up in next 15 mins?",
  "outcome": "Yes",
  "outcomes": [
    {
      "label": "Yes",
      "price": 0.9815
    },
    {
      "label": "No",
      "price": 0.0185
    }
  ],
  "probability": 0.9815,
  "bestBid": 0.977,
  "bestAsk": 0.986,
  "lastPrice": 0.98,
  "volume": 21223.9,
  "volume24h": 17172.86,
  "volumeUnit": "contracts",
  "liquidity": null,
  "openInterest": 5795.66,
  "status": "open",
  "statusRaw": "active",
  "resolution": null,
  "openTime": "2026-10-30T14:30:00.000Z",
  "closeTime": "2026-10-30T14:45:00.000Z",
  "resolvedAt": null,
  "category": "Crypto",
  "tags": [
    "Crypto",
    "BNB",
    "15 min"
  ],
  "moneyType": "real",
  "url": "https://kalshi.com/markets/kxbnb15m/bnb-15-min/kxbnb15m-26oct301045",
  "history": null,
  "scrapedAt": "2026-10-30T12:00:00.000Z",
  "seriesTicker": "KXBNB15M",
  "settlementSources": [
    {
      "name": "CF Benchmarks",
      "url": "https://www.cfbenchmarks.com/"
    }
  ],
  "strikeDate": "2026-10-30T14:45:00.000Z",
  "marketSubtitle": "Target Price: $694.47"
}
```

### Price history

The `history` column contains `{ t, price }` objects sorted by `t`. Set `historyInterval` to `1h` or `1d`, and `historyDays` to a value from 1 to 365 days. History holds prices only, with no volume or open interest.

A row with a non-empty history is billed one extra `market-history` event. An empty list is not billed.

Two cases give `history` a value of `null`. The first is when history was not requested. The second is when the history of that market could not be read.

If a candlestick response cannot be parsed, `history` is `null` and a `SCHEMA_CHANGED` row appears in the `errors` dataset. Its `itemId` names the ticker, or the tickers of the batch. The market row is still delivered and billed as a `market` only.

History also adds requests. For 1 000 open markets over 30 days, it requires 10 candlestick requests with `1d`, or 77 with `1h`.

### Run it from code

Through the Apify API, send a POST request to the Actor's runs endpoint. After the run, read its rows as JSON from the dataset items endpoint.

You can also use the official [Apify API client for Python](https://docs.apify.com/api/client/python/docs) to access the Apify REST API. Install it with `pip install apify-client`. The client can start an Actor, wait for it to finish, and list the items of its default dataset. It provides sync and async interfaces.

Readers searching for Kalshi API documentation can use these routes to get Kalshi market rows from this Actor in code. This Actor is not a Kalshi API, and this page is not Kalshi's documentation.

### Limits

- Each selector accepts up to 100 tickers. They are uppercased, deduplicated and sorted, and can contain letters, digits, dot, underscore and hyphen.
- `status` filters listings only. A named event or market is returned whatever its status.
- With `marketTickers`, `searchTerms` tests `question` only.
- `probability` is the bid-ask midpoint when the spread is 0.10 or less. Otherwise it uses the last trade, then the midpoint however wide. It is `null` with a one-sided book and no trade.
- `liquidity` is always `null`. Volumes and open interest are measured in contracts.
- Category and tags come at the level of the series.
- Requests are at least 500 ms apart. A 429 response is retried after 5, 15 and 30 s. A run makes at most 1 500 requests.
- Each named event costs one request. Market tickers use one request per batch of 20.
- After a reboot, `marketsCharged` can count one row too many. The billed events are the reference.
- Each run is a snapshot.

### Billing

Each delivered row is billed one `market` event. A non-empty history adds one `market-history` event for that row.

Errors, duplicates, filtered-out listings and empty histories are never billed. Current prices are listed on the Pricing tab.

A moved or restarted run resumes its work. A market already returned is neither returned nor billed again.

### Run summary and early stops

The `OUTPUT` record summarizes the run with counters including `marketsCharged` and `errorsByKind`.

The `stoppedBy` field keeps only the first reason. Its 8 possible values are:

- `null`: all the requested work was done.
- `maxItems`: the row cap was reached.
- `chargeLimit`: the maximum charge set for the run was reached.
- `deadline`: the run reached its internal time limit.
- `circuitOpen`: too many blocked responses occurred in a row.
- `pageBudget`: the request budget of the run was spent.
- `badInput`: Kalshi refused the first request as invalid. This is separate from the Actor's input check.
- `fetchFailed`: the last walk ended on a page that could not be fetched. `failedWalks` lists the first 20 failed walks.

The `errors` dataset uses 8 error kinds. An unknown ticker produces one `NOT_FOUND` row per ticker.

A failed multi-ticker request produces one row with `itemId` set to `A,B`. The `details.itemIds` field contains the ticker list.

### Frequently asked questions

#### Why did I get fewer markets than `maxItems`?

`maxItems` is a hard cap, not a guaranteed row count. Filters, duplicate removal, unknown tickers and early stops can reduce the result. Check `stoppedBy`, the `OUTPUT` record and the `errors` dataset.

#### Why is `probability` empty?

It is `null` when the book has only one side and the market has never traded. Otherwise, the Actor uses the bid-ask midpoint, last trade or wide-spread midpoint in that order.

#### Can I use this Actor through MCP?

Yes. Any Apify Actor can be called from an MCP client through the Apify MCP server. See the [Apify MCP documentation](https://docs.apify.com/platform/integrations/mcp) for the setup.

#### Need real-time interactive access?

For live questions from an AI assistant, such as the latest news and prediction market signals, use the [Latest News MCP Server](https://apify.com/mrbridge/latest-news-mcp-server). This Actor is built for batch runs and datasets.

#### Your feedback

We're always working on improving the performance of our Actors. So if you've got any technical feedback for Kalshi Markets Scraper or simply found a bug, please create an issue on the Actor's [Issues tab](https://apify.com/mrbridge/kalshi-markets-scraper/issues).

An honest review helps the next users decide. You can also bookmark this Actor, and use the Issues tab for bugs or other problems.

More free tools, scrapers, MCP servers and data studies from the same team: [mr-bridge.com](https://mr-bridge.com).

### Related Actors

- [polymarket-markets-scraper](https://apify.com/mrbridge/polymarket-markets-scraper) is a separate MrBridge Actor for prediction markets from Polymarket.
- [kalshi-weather-markets-scraper](https://apify.com/mrbridge/kalshi-weather-markets-scraper) is a separate MrBridge Actor for weather markets from Kalshi.

### Legal & responsible use

The Actor reads the public Kalshi API. Kalshi has its own terms of use, which may restrict automated access or commercial reuse. Check those terms and the law that applies to you. You remain responsible for your use of the data.

Prices are information, not financial advice.

MrBridge is not affiliated with or endorsed by Kalshi. The Kalshi name only identifies the data source.

# Changelog

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

# Actor input Schema

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

Kalshi categories. The series of each category are read, then their events. Leave empty to scan every market.

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

Series to collect, for example KXHIGHNY. Uppercase letters, digits, dot, underscore and hyphen. Up to 100.

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

Events to collect, for example KXHIGHNY-26OCT30. Up to 100. An event is returned whatever its status.

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

Markets to collect, for example KXHIGHNY-26OCT30-T69. Up to 100. A market is returned whatever its status.

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

Status filter of the event listings. It also applies to every market of a listed event. It filters listings only: a market or event named in event tickers or market tickers is returned whatever its status.

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

Keep the markets whose question or event title contains one of these terms (any case). A local filter, applied before the maximum is counted. With market tickers it only tests the question, because the event title is not known at that point.

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

Hard cap on the market rows returned and billed, from 1 to 10000. The run stops once that many rows are delivered.

## `includeHistory` (type: `boolean`):

Fill the history column with the price of the market over time. A row whose history is not empty is billed one extra market-history event. A row with no price points (history is an empty list) is not billed. Without this option, or when the history cannot be read, history is null.

## `historyInterval` (type: `string`):

Size of one price point. Hourly points need about 7 times more requests than daily points over the same period (for 1 000 open markets over 30 days: 77 candlestick requests hourly, 10 daily). Used only when price history is on.

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

How many days back the history goes, from 1 to 365. Used only when price history is on.

## Actor input object example

```json
{
  "categories": [
    "Crypto"
  ],
  "seriesTickers": [],
  "eventTickers": [],
  "marketTickers": [],
  "status": "open",
  "searchTerms": [],
  "maxItems": 20,
  "includeHistory": false,
  "historyInterval": "1d",
  "historyDays": 30
}
```

# Actor output Schema

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

Direct link to all dataset items produced by the run.

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

Direct link to the OUTPUT record: requests made, markets read, returned and billed, errors by kind and the reason of an early stop.

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

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

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

```

## MCP server setup

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