# Kalshi Scraper | Fast & Reliable (`fatihtahta/kalshi-scraper`) Actor

Get live prediction market data from Kalshi.com with tickers, categories, prices, and volume metrics. Fast, reliable, and structured for analysis. Ideal for traders, researchers, and data teams.

- **URL**: https://apify.com/fatihtahta/kalshi-scraper.md
- **Developed by:** [Fatih Tahta](https://apify.com/fatihtahta) (community)
- **Categories:** Developer tools, Automation, Other
- **Security:** Limited permissions
- **Stats:** 125 total users, 7 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$0.99 / 1,000 results

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 Scraper | Fast & Reliable | $4 / 1k

**Slug:** `fatihtahta/kalshi-scraper`\
**Price:** **$4.00 per 1,000 saved markets or events**

Stay ahead of every major U.S. political and economic market listed on **Kalshi**. This actor transforms Kalshi search results and individual market listings into structured datasets that are perfect for forecasting, market monitoring, or alerting workflows. Point it at a search query or specific market URL and let the run deliver clean, analysis-ready data.

***

### 💡 Why choose this actor?

- **Monitor market sentiment in seconds** – Capture the latest markets across any query (e.g., *“presidential election”*, *“inflation”*).
- **Drill into specific contracts** – Provide direct Kalshi market URLs to pull the full listing context, including pricing snapshots and metadata.
- **Reliable at scale** – Built to handle high-volume runs with automatic pagination and result caps so you only pay for what you need.
- **Flexible exports** – Download your dataset in JSON, CSV, Excel, or connect via API for programmatic updates.

> Ideal for: **traders, analysts, researchers, political consultants, and quant teams** who rely on Kalshi data for decision-making.

***

### 🧠 What data do you get?

Each saved item represents either a **market series** (from search) or a **specific contract listing** (from a market URL). Typical fields include:

- `query` – Search phrase that surfaced the series.
- `sourceUrl` – The Kalshi API endpoint used for the result.
- `ticker`, `series_ticker`, `event_ticker` – Identifiers you can map back to Kalshi.
- `title`, `subtitle`, `description` – Human-readable market copy.
- `categories`, `tags`, `market_type`, `status` – Classification and lifecycle hints.
- `yes_price`, `no_price`, `last_trade_price`, `volume` – Key pricing and liquidity metrics (when available).
- `settlement_timing`, `resolution_source`, `rules` – Details on how the contract resolves.
- `listingUrl` – Original market URL (for listing runs).
- Timestamps such as `created_at`, `last_traded_at`, `close_date`, and more depending on the market.

> Outputs are normalized and deduplicated so you can sort, filter, or pivot immediately.

***

### 📥 Input configuration

Configure the actor from the **Input** tab. Key fields:

- `searchQueries` *(array of strings, optional)* — Keywords to search on Kalshi. Multiple queries run independently.
- `startUrls` *(array of strings, optional)* — Kalshi URLs to process. Supports search URLs (`?search=`) and individual market listings.
- `targetUrl` *(string, optional)* — Single Kalshi URL, handy for quick one-off pulls.
- `targetUrls` *(array of strings, optional)* — Alias of `startUrls` for convenience.
- `maxResults` *(number, default `200`)* — Maximum markets to save per query (minimum 1).
- `pageSize` *(number, default `min(maxResults, 50)`)* — Items fetched per API call (capped between 1 and 100).
- `proxyConfiguration` *(object, optional)* — Use Apify Proxy or bring your own.

> Tip: Provide at least one `searchQueries` entry or Kalshi URL. If you’re unsure, start with a small `maxResults` (e.g., `50`) to validate output.

***

### 🧪 Example input

```json
{
    "searchQueries": ["new york", "inflation"],
    "startUrls": ["https://kalshi.com/markets/kxmayornycparty/mayor-of-nyc-party-winner/kxmayornycparty-25"],
    "maxResults": 50,
    "pageSize": 25,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
}
```

***

### 📦 Sample output

```json
{
    "query": "new york",
    "sourceUrl": "https://api.elections.kalshi.com/v1/search/series",
    "type": "contract",
    "series_ticker": "GOVPARTYNY",
    "series_title": "New York Governor",
    "event_ticker": "GOVPARTYNY-26",
    "event_title": "New York Governor winner?",
    "category": "Elections",
    "total_volume": 295509,
    "active_market_count": 2,
    "markets": [
        {
            "ticker": "GOVPARTYNY-26-D",
            "yes_subtitle": "Democratic party",
            "yes_bid": 89,
            "yes_ask": 90,
            "last_price": 89,
            "volume": 223875
        }
    ],
    "tags": ["US Elections", "Governor"]
}
```

All runs save items into the default **Dataset**. Download as JSON, CSV, Excel, or connect through the Apify API.

***

### 🚀 How to run

1. Open **Kalshi Scraper | Fast & Reliable | $4 / 1k** on Apify.
2. Add your **search queries** and/or **Kalshi URLs** in the Input tab.
3. Set `maxResults` (and `pageSize` if needed).
4. Click **Start** and wait for the run to finish.
5. View results in the **Dataset** tab and download in your preferred format.

***

### 💸 Pricing

- **$4.00 per 1,000 saved items** (series or event records).
- Billing is based solely on successful dataset entries.

***

### ⚖️ Responsible use

The scraper consolidates information that Kalshi publishes publicly. Depending on your jurisdiction and use case, this data may be considered financial market information. Always comply with Kalshi’s terms, applicable securities regulations, and any licensing requirements. Use results ethically and within legal bounds.

***

### ❓ Support & custom work

Need help, feature tweaks, or custom dashboards? Open an issue on the actor page in Apify Console—support is available around the clock.

Happy market watching!\
**Fatih**

# Actor input Schema

## `startUrls` (type: `array`):

Paste any Kalshi market or search result URLs that you want the actor to visit.

## `targetUrl` (type: `string`):

Paste one Kalshi search or market URL for a quick run.

## `targetUrls` (type: `array`):

Optional alias for startUrls. Paste more Kalshi search or market URLs here.

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

List the keywords you want to search for.

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

Limit how many market listings the actor should collect before stopping.

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

How many search results to fetch per API call. The actor caps this between 1 and 100.

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

By default it uses Apify Residential proxies.

## Actor input object example

```json
{
  "maxResults": 200,
  "pageSize": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

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

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

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

```

## MCP server setup

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