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

Extract live Kalshi prediction-market data: election odds, politics, economics, crypto, sports and weather markets with prices, volume, open interest, close times and optional order books. Filter by series, event, category or keyword. No login needed.

- **URL**: https://apify.com/literate\_universe/kalshi-markets-scraper.md
- **Developed by:** [John Rutherford](https://apify.com/literate_universe) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 66.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 market rows

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Kalshi Markets Scraper

Pull live **Kalshi prediction-market data** into a clean dataset: prices, volume, open interest, close times, resolution rules and (optionally) the live order book. No login, no API key.

Use it to track odds on politics, economics, crypto, sports, weather and more; to feed dashboards, alerts, research or trading models; or to export Kalshi markets to CSV / Excel / JSON in one click.

### What you get

One row per market:

| Field | Meaning |
|---|---|
| `ticker`, `event_ticker`, `series_ticker` | Kalshi identifiers |
| `title`, `subtitle`, `event_title`, `category` | Human-readable question, the specific leg, and Kalshi category |
| `yes_bid`, `yes_ask`, `no_bid`, `no_ask`, `last_price` | Prices in dollars (0 to 1) |
| `yes_bid_size`, `yes_ask_size` | Contracts resting at best bid / ask |
| `volume`, `volume_24h`, `open_interest`, `liquidity_usd` | Activity |
| `open_time`, `close_time`, `expiration_time` | Timing |
| `strike_type`, `floor_strike`, `cap_strike` | Threshold for numeric markets (price above X, temperature between Y and Z) |
| `rules_primary`, `result`, `status` | Resolution text, settled result, market status |
| `orderbook` | `{ yes: [...], no: [...] }` with `price` and `size` per level, when enabled |

Sample row:

```json
{
  "ticker": "KXBTCPRICE-85000-26OCT02",
  "event_title": "When will Bitcoin cross $85k again?",
  "subtitle": "By Oct 2, 2026",
  "category": "Crypto",
  "yes_bid": 0.39,
  "yes_ask": 0.42,
  "last_price": 0.4,
  "volume_24h": 3112.66,
  "open_interest": 15210,
  "close_time": "2026-10-02T14:00:00Z"
}
```

### Input

| Option | What it does |
|---|---|
| **Market status** | `open` (default), `closed` or `settled` |
| **Series ticker** | Only one series, e.g. `KXBTCD` (Bitcoin hourly), `KXHIGHNY` (NYC high temp), `KXNBAGAME` |
| **Event ticker** | Only one event, e.g. `KXBTCD-26SEP0913` |
| **Specific market tickers** | Fetch exactly these markets |
| **Category** | `Politics`, `Economics`, `Crypto`, `Sports`, `Financials`, `World`, `Entertainment`, `Climate and Weather` |
| **Keyword filter** | Keep markets whose title mentions this text |
| **Min 24h volume / Min open interest** | Skip dead markets |
| **Exclude multivariate** | Drops Kalshi's auto-generated parlay combinations (on by default; there are tens of thousands and they are rarely wanted) |
| **Include order book** | Adds the live book per market (one extra request each, charged separately) |
| **Max markets** | Stop after N rows |

Leave every filter empty to get every open market on Kalshi (roughly 100k rows, a couple of minutes).

### Pricing

Pay per event: one small charge per market row, plus one per order book when enabled. Set **Max markets** to cap spend. Filtering happens before charging, so you only pay for rows you receive.

### Notes and limits

- Reads Kalshi's public trade API. Data is delayed only by the request itself, not by a cache.
- Prices are in dollars per contract (a 0.42 YES ask means 42 cents, paying $1 if YES).
- Order-book depth is capped at 100 levels per side.
- This Actor does not place orders and never needs your Kalshi credentials.

### Related

- Polymarket vs Kalshi Matched Markets: same question on both venues, with the price gap.

# Actor input Schema

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

Which markets to fetch.

## `seriesTicker` (type: `string`):

Only markets in this series, e.g. KXBTCD, KXHIGHNY, KXNBAGAME. Leave empty for all series.

## `eventTicker` (type: `string`):

Only markets in this event, e.g. KXBTCD-26SEP0913.

## `tickers` (type: `array`):

Fetch exactly these market tickers (ignores other filters except order book).

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

Filter by Kalshi category, e.g. Politics, Economics, Crypto, Sports, Climate and Weather, Entertainment, Financials, World. Case-insensitive.

## `searchQuery` (type: `string`):

Keep only markets whose title, subtitle or event title contains this text (case-insensitive).

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

Skip markets with less 24-hour volume than this.

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

Skip markets with less open interest than this.

## `excludeMultivariate` (type: `boolean`):

Kalshi auto-generates thousands of cross-category parlay combinations (KXMVE...). They are excluded by default.

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

Fetch the live order book for every returned market (one extra request per market, charged as a separate event).

## `orderbookDepth` (type: `integer`):

Price levels per side when order book is included.

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

Stop after this many markets.

## Actor input object example

```json
{
  "status": "open",
  "minVolume24h": 0,
  "minOpenInterest": 0,
  "excludeMultivariate": true,
  "includeOrderbook": false,
  "orderbookDepth": 5,
  "maxItems": 500
}
```

# Actor output Schema

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

All scraped market rows as JSON. Append ?format=csv for CSV.

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

Counts of markets scanned and pushed plus the filters used.

# 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 = {
    "seriesTicker": ""
};

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

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

```

## MCP server setup

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