# Kalshi Prediction Markets Scraper — CFTC Regulated Odds, Spr (`spotless_studios/kalshi-markets-scraper`) Actor

Extract CFTC-regulated prediction markets and event contracts from Kalshi. Captures YES/NO bid and ask prices, implied probabilities, bid-ask spreads, 24h and total contract volume, open interest, settlement sources, and expiration rules.

- **URL**: https://apify.com/spotless_studios/kalshi-markets-scraper.md
- **Developed by:** [Spotless Studios](https://apify.com/spotless_studios) (community)
- **Categories:** AI
- **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 contract extracteds

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 Prediction Markets & Event Contracts Scraper

Extract regulated CFTC event contracts from **[Kalshi](https://kalshi.com)** via the official Kalshi v2 Trade API. Captures event & market tickers, category, YES/NO bid and ask prices, last price, 24h price change, implied probability %, bid-ask spread, 24h & total volume, open interest, expiration timestamps, and official settlement rules.

Built for **quantitative researchers**, **cross-exchange arbitrageurs (Kalshi vs. Polymarket)**, **macro traders**, and **event-driven news desks**.

***

### What Does This Scraper Extract?

| Field | Type | Description |
|---|---|---|
| `ticker` | `string` | Unique Kalshi contract ticker (e.g. `"KXFED-26JUN-T4.25"`) |
| `eventTicker` | `string` | Parent event ticker |
| `seriesTicker` | `string` | Series ticker (`"KXFED"`) |
| `category` | `string` | Market category (`Economics`, `Politics`, `Financials`, `Climate`, `Tech`) |
| `eventTitle` | `string` | Event headline |
| `marketTitle` | `string` | Specific contract title |
| `yesBid` | `number \| null` | Current YES bid in dollars (`0.00`–`1.00`) |
| `yesAsk` | `number \| null` | Current YES ask in dollars (`0.00`–`1.00`) |
| `noBid` | `number \| null` | Current NO bid in dollars (`0.00`–`1.00`) |
| `noAsk` | `number \| null` | Current NO ask in dollars (`0.00`–`1.00`) |
| `lastPrice` | `number \| null` | Last traded price in dollars |
| `previousPrice` | `number \| null` | Prior 24h price in dollars |
| `priceDelta` | `number \| null` | 24h price change in dollars |
| `impliedProbabilityPct` | `number \| null` | Implied YES probability (`0`–`100%`) |
| `spreadDollars` | `number \| null` | Bid-ask spread (`yesAsk - yesBid`) |
| `volume24h` | `number \| null` | 24-hour contract volume |
| `volumeTotal` | `number \| null` | Total cumulative contract volume |
| `openInterest` | `number \| null` | Active open interest |
| `rulesPrimary` | `string \| null` | Full CFTC contract resolution rules |
| `settlementSources` | `object[]` | Authoritative settlement agencies & URLs |
| `marketUrl` | `string` | Direct Kalshi market URL |
| `scrapedAt` | `string` | ISO-8601 extraction timestamp |

***

### Input Example

```json
{
  "searchQuery": "cpi",
  "category": "Economics",
  "status": "open",
  "minVolume": 1000,
  "minOpenInterest": 500,
  "maxResults": 50
}
```

***

### Output Example

```json
{
  "ticker": "KXCPI-26OCT-T0.3",
  "eventTicker": "KXCPI-26OCT",
  "seriesTicker": "KXCPI",
  "category": "Economics",
  "eventTitle": "US CPI Monthly Inflation",
  "marketTitle": "CPI rises more than 0.3% in October",
  "yesBid": 0.41,
  "yesAsk": 0.43,
  "noBid": 0.57,
  "noAsk": 0.59,
  "lastPrice": 0.42,
  "previousPrice": 0.38,
  "priceDelta": 0.04,
  "impliedProbabilityPct": 42,
  "spreadDollars": 0.02,
  "volume24h": 18450,
  "volumeTotal": 245900,
  "openInterest": 112300,
  "status": "active",
  "rulesPrimary": "If the Bureau of Labor Statistics reports seasonally adjusted CPI-U above 0.3%...",
  "settlementSources": [
    {
      "name": "Bureau of Labor Statistics",
      "url": "https://www.bls.gov/cpi/"
    }
  ],
  "marketUrl": "https://kalshi.com/markets/kxcpi",
  "scrapedAt": "2026-10-27T14:00:00.000Z"
}
```

***

### More from Spotless Studios

**[All actors on Apify](https://apify.com/spotless_studios)** · Support: spotless.studios.info@gmail.com

| Actor | Best for |
|-------|----------|
| [SLED Government Bids](https://apify.com/spotless_studios/sled-procurement-scraper) | Daily US gov RFP / bid alerts |
| [Webflow Experts](https://apify.com/spotless_studios/webflow-experts-scraper) | Webflow agency & freelancer leads |
| [Stripe Partners](https://apify.com/spotless_studios/stripe-partners-scraper) | Stripe implementation partner lists |
| [UK Planning Applications](https://apify.com/spotless_studios/uk-planning-applications-scraper) | UK planning leads + agent contacts |
| [Product Hunt](https://apify.com/spotless_studios/product-hunt-scraper) | Every PH launch + makers / websites |
| [Duunitori Jobs](https://apify.com/spotless_studios/duunitori-jobs-scraper) | Finland job listings |
| [Clutch Agencies](https://apify.com/spotless_studios/clutch-agencies-scraper) | Clutch agency prospecting |
| [Skool Communities](https://apify.com/spotless_studios/skool-communities-scraper) | Skool community & creator leads |

# Actor input Schema

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

Filter Kalshi events and markets by keyword (e.g. "Fed", "Inflation", "Bitcoin", "AI", "Mars", "GDP").

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

Filter by Kalshi event category (e.g. "Economics", "Financials", "Politics", "Science and Technology", "Climate and Weather"). Leave empty for all.

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

Lifecycle status of Kalshi events to query.

## `minVolume` (type: `number`):

Only keep markets with total volume >= this number of contracts (0 = no minimum).

## `minOpenInterest` (type: `number`):

Only keep markets with open interest >= this number of contracts (0 = no minimum).

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

Specific Kalshi series or event tickers (e.g. "KXELONMARS-99").

## `includeKeywords` (type: `array`):

Keep items whose text fields contain these words. /regex/ supported.

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

Drop items containing any of these words or /regex/.

## `keywordMatch` (type: `string`):

Require any or all include keywords.

## `onlyNewItems` (type: `boolean`):

Remember items from previous runs and save only ones not seen before.

## `stateKey` (type: `string`):

Separate memory per saved search.

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

Stop after saving this many items.

## `outputPreset` (type: `string`):

Quickly choose how much data to save per record: full record, lean summary, or contacts & links only.

## `outputFields` (type: `array`):

Save only these fields, in this order. Supports nested dot-paths. Empty keeps all fields from the selected preset.

## `excludeFields` (type: `array`):

Remove specific fields from each saved record to keep datasets compact.

## `includeEmptyFields` (type: `boolean`):

When turned off, strips null, empty strings, empty arrays, and empty objects from every saved record.

## `requiredFields` (type: `array`):

Only save (and only pay for) records where every listed field has a non-empty value.

## `maxConcurrency` (type: `integer`):

Requests fetched in parallel.

## `maxRequestRetries` (type: `integer`):

Retries per request.

## `requestTimeoutSecs` (type: `integer`):

Timeout per request.

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

Optional; direct connection is tried first.

## `proxyEscalation` (type: `boolean`):

If the site blocks the run, automatically step up from direct to Apify datacenter, then residential proxy.

## Actor input object example

```json
{
  "category": "",
  "status": "open",
  "minVolume": 0,
  "minOpenInterest": 0,
  "seriesTickers": [],
  "keywordMatch": "any",
  "onlyNewItems": false,
  "stateKey": "default",
  "maxResults": 25,
  "outputPreset": "full",
  "includeEmptyFields": true,
  "maxConcurrency": 6,
  "maxRequestRetries": 4,
  "requestTimeoutSecs": 45,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "proxyEscalation": true
}
```

# Actor output Schema

## `items` (type: `string`):

Extract CFTC-regulated prediction markets and event contracts from Kalshi. Captures YES/NO bid and ask prices, implied probabilities, bid-ask spreads, 24h and total contract volume, open interest, settlement sources, and expiration rules.

# 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 = {
    "searchQuery": "",
    "maxResults": 25,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

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

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

```

## MCP server setup

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