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

Collect Kalshi prediction markets: prices, volume, open interest, rules, close times and category. Filter by status, series, event, category or keyword. Pay per market.

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

## Pricing

from $2.00 / 1,000 kalshi 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.

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 as clean rows: prices, volume, open interest, rules text, close times and category. Filter by status, series, event, category or keyword. You pay per market delivered.

The data comes from the public Kalshi market data interface. No account and no API key are needed.

### What you get

For each market the actor returns one row with:

- Identity: market ticker, event ticker, series ticker, series title, category, title, subtitle, Yes and No labels
- Prices: Yes and No bid and ask, last price, previous price. Every price is given in dollars and in cents.
- Activity: volume, volume in the last 24 hours, open interest, contracts at the top bid and ask
- Times: open, close, expiration, expected expiration, event time, created and updated (ISO 8601)
- Rules: primary and secondary rules text, early close condition, strike details
- Settlement fields for settled markets: result, settlement value, settlement time
- Order book (optional): all bid levels for Yes and No, with price and quantity
- Links: series page on kalshi.com

All numbers are real numbers, not text. A field the source does not send for a market is null.

### Pricing

You pay per market delivered, plus a small fee for each run.

| Event | Name | Price |
|---|---|---|
| Run start (charged once, together with the first delivered row) | `actor-start` | $0.001 per run |
| One market row | `market-result` | $0.002 per market ($2.00 per 1,000) |

A run that finds nothing is not charged. The order book option has no extra charge. If you set a maximum cost for the run, the actor stops cleanly once the next row would go over it.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `status` | text | `open` | `open`, `unopened`, `closed` or `settled` |
| `seriesTickers` | list | empty | Series to collect, for example `KXNBAPTS` |
| `eventTickers` | list | empty | Events to collect, for example `KXNBAPTS-26NOV06OKCMEM` |
| `category` | text | empty | Keep only markets in this series category, for example `Sports` or `Economics` |
| `search` | text | empty | Keep only markets whose title, subtitle, ticker or series title contains this text |
| `maxResults` | number | 50 | Maximum markets in total, up to 100000 |
| `pageSize` | number | 200 | Markets per page, 1 to 1000 |
| `includeMultivariate` | true/false | false | Include the auto-generated multi-leg combo markets (tickers starting with `KXMVE`) |
| `includeOrderbook` | true/false | false | Add the order book to every market (one extra request each) |

How the filters work:

- With no series or event, the actor lists all markets with the chosen status. Combo markets are left out unless you switch them on, because they make up a large share of the open list.
- With several series and event tickers, `maxResults` is split evenly across them. A ticker with fewer markets than its share delivers fewer.
- The source has no category or keyword filter on its market list. Those two filters are applied while paging, up to 60 pages per ticker, so a rare keyword on the full list can return few rows. Combine them with series tickers to keep the search narrow.
- Number fields also accept numbers written as text, for example `"7"`.

#### Example: two series

```json
{
  "status": "open",
  "seriesTickers": ["KXNBAPTS", "KXNBAREB"],
  "maxResults": 150
}
```

#### Example: one event with order books

```json
{
  "eventTickers": ["KXNBAPTS-26NOV06OKCMEM"],
  "maxResults": 20,
  "includeOrderbook": true
}
```

#### Example: settled markets by keyword

```json
{
  "status": "settled",
  "search": "inflation",
  "category": "Economics",
  "maxResults": 100
}
```

### Output sample

```json
{
  "ticker": "KXNBAPTS-26NOV06OKCMEM-MEMZEDEY14-15",
  "event_ticker": "KXNBAPTS-26NOV06OKCMEM",
  "series_ticker": "KXNBAPTS",
  "series_title": "NBA Player Points",
  "series_url": "https://kalshi.com/markets/kxnbapts",
  "url": null,
  "category": "Sports",
  "title": "Zach Edey: 15+ points",
  "yes_sub_title": "Zach Edey: 15+",
  "status": "active",
  "yes_bid": 0.09,
  "yes_ask": 0.13,
  "no_bid": 0.87,
  "no_ask": 0.91,
  "yes_bid_cents": 9,
  "yes_ask_cents": 13,
  "last_price": 0.15,
  "volume": 125.84,
  "volume_24h": 125.84,
  "open_interest": 125.84,
  "close_time": "2026-11-09T01:00:00Z",
  "expiration_time": "2026-11-09T01:00:00Z",
  "rules_primary": "If Zach Edey records 15+ points in the Oklahoma City vs Memphis Pro Basketball game ... then the market resolves to Yes.",
  "floor_strike": 14.5,
  "orderbook": null
}
```

The real row has more fields. See the Output tab for the full list.

### FAQ

**Do I need a Kalshi account or API key?**
No. The actor reads public market data only.

**Why is `url` always null?**
The market page address on kalshi.com contains a title slug that the source does not provide, so a reliable link cannot be built. `series_url` links to the series page.

**Why is `liquidity` empty?**
The source no longer sends a liquidity value for most markets. The field is filled when the source sends it.

**What do the price fields mean?**
Prices are the cost of one contract in dollars (0 to 1), which is also its implied probability. The `_cents` fields hold the same prices in cents.

**How current is the data?**
Each row is a snapshot taken when the run reads it. `updated_time` is the time Kalshi last changed the market, and `scraped_at` is the time of the snapshot.

**Why did I get fewer rows than `maxResults`?**
Your filters matched fewer markets, or the maximum cost you set for the run was reached. The run status message says which.

**How fast is it?**
The actor waits at least 0.3 seconds between requests to stay well inside the source's limits. A page of 200 markets takes about a second. Order books add about 0.4 seconds per market.

**Can a run be restarted safely?**
Yes. Progress is saved after every page. A restarted run continues where it stopped and does not deliver or charge the same rows twice.

**Is this affiliated with Kalshi?**
No. This is an independent tool that reads public data.

# Actor input Schema

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

Which markets to list: open (trading now), unopened (not yet open), closed (trading ended, not settled) or settled.

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

Optional. Series to collect, for example KXNBAPTS. One listing per ticker. maxResults is split evenly across all tickers. Leave empty to list all markets.

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

Optional. Events to collect, for example KXNBAPTS-26NOV06OKCMEM. Can be combined with series tickers.

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

Optional. Keep only markets whose series category matches, for example Sports, Politics, Economics, Crypto, Financials. The source has no category filter on its market list, so this filter is applied while paging and may scan several pages. Use series or event tickers for a narrow search.

## `search` (type: `string`):

Optional. Keep only markets whose title, subtitle, ticker or series title contains this text (not case sensitive). Applied while paging, so rare words may scan several pages.

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

Maximum number of markets in total (all tickers together). Default 50.

## `pageSize` (type: `integer`):

Markets requested per page (1 to 1000). Larger pages need fewer requests. Default 200.

## `includeMultivariate` (type: `boolean`):

Kalshi lists a very large number of auto-generated multi-leg combo markets (tickers starting with KXMVE). They are left out by default when no series or event is given. Switch on to include them.

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

Add the full order book (all bid levels) to each market. One extra request per market, so the run is slower (about 0.4 seconds per market). No extra charge.

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

Keep the default.

## Actor input object example

```json
{
  "status": "open",
  "maxResults": 50,
  "pageSize": 200,
  "includeMultivariate": false,
  "includeOrderbook": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Prediction market rows from Kalshi

# 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 = {
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

# Run the Actor and wait for it to finish
run = client.actor("nanodata/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 '{
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nanodata/kalshi-markets-scraper --silent --output-dataset

```

## MCP server setup

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