# Polymarket & Kalshi Prediction Markets Scraper (odds, volume) (`arthursbuisness/prediction-markets-polymarket-kalshi`) Actor

- **URL**: https://apify.com/arthursbuisness/prediction-markets-polymarket-kalshi.md
- **Developed by:** [Arthur](https://apify.com/arthursbuisness) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 1,000 prediction 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

## Polymarket & Kalshi Prediction Markets Scraper (odds, volume, liquidity)

Export live **prediction-market data** from **Polymarket** and **Kalshi** through their public APIs — no login, no browser, no proxies. One clean row per market or event, ready for dashboards, research, alerts and trading models.

### What you get

- **Polymarket markets**: question, YES/NO prices (implied odds), best bid/ask, last trade price, volume (total and 24 h), liquidity, start/end date, status, parent event, slug and URL.
- **Polymarket events**: event title, description, tags, dates, volume/liquidity and the nested markets with their outcome prices.
- **Kalshi markets**: ticker, title, yes/no bid, yes ask, last price (in dollars), volume, 24 h volume, open interest, liquidity, open/close/expiration times, status, rules, URL.
- **Kalshi events**: event ticker, title, category, series, status and nested markets.

Filter by keyword (e.g. `fed`, `bitcoin`, `election`, `nba`), by status (open / closed / settled) or, for Kalshi, by series ticker (`KXBTC`, `KXFED`…). Results are sorted by 24 h volume on Polymarket and paginated with cursors on Kalshi.

### Pricing

Pay per result: **$0.0005 per stored row**. Errors are never charged. 1,000 markets ≈ $0.50.

### Input example

```json
{"mode": "polymarketMarkets", "query": "fed", "status": "open", "maxItems": 100}
```

### Output example (Polymarket market)

```json
{"source":"polymarket","mode":"market","id":"3989342","title":"Will the Fed cut rates in September?","slug":"fed-decision-in-september","url":"https://polymarket.com/market/fed-decision-in-september","outcomes":["Yes","No"],"outcomePrices":[0.83,0.17],"yesPrice":0.83,"noPrice":0.17,"volume":1250000.5,"volume24h":84000.2,"liquidity":310000.0,"endDate":"2026-09-17T00:00:00Z","status":"open","fetchedAt":"2026-09-12T20:36:00Z"}
```

### Notes

- Data comes from the public Gamma API (Polymarket) and the public trade API v2 (Kalshi). Prices are probabilities between 0 and 1 (Polymarket) or dollars (Kalshi).
- No personal data is collected. Use in line with the platforms' terms.
- Typical run: 200 markets in under 10 seconds.

# Actor input Schema

## `mode` (type: `string`):

polymarketMarkets = one row per Polymarket market (question, YES/NO prices, volume, liquidity); polymarketEvents = one row per Polymarket event with its nested markets; kalshiMarkets = one row per Kalshi market (bid/ask, last price, volume, open interest); kalshiEvents = one row per Kalshi event with nested markets.

## `query` (type: `string`):

Only keep markets/events whose title contains this text (case-insensitive), e.g. 'fed', 'bitcoin', 'election'. Leave empty for the most active markets.

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

open = active markets (default), closed = resolved/closed, all = both (Polymarket). Kalshi accepts open, closed, settled, unopened.

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

Restrict Kalshi results to one series, e.g. KXBTC, KXFED, KXNBA.

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

Stop after this many stored rows (max 5000). You pay only for rows actually stored.

## Actor input object example

```json
{
  "mode": "polymarketMarkets",
  "query": "",
  "status": "open",
  "seriesTicker": "",
  "maxItems": 200
}
```

# Actor output Schema

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

All items as JSON

## `resultsCsv` (type: `string`):

Same dataset as CSV — open in Excel/Sheets

# 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("arthursbuisness/prediction-markets-polymarket-kalshi").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("arthursbuisness/prediction-markets-polymarket-kalshi").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 arthursbuisness/prediction-markets-polymarket-kalshi --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,arthursbuisness/prediction-markets-polymarket-kalshi"
        }
    }
}

```

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/Ats61DoovIxDbHep7/builds/w0dmaVrGALfZQpbgD/openapi.json
