# Polymarket & Kalshi Odds Scraper ($1/1K markets) (`tamnt67/prediction-markets-scraper`) Actor

Polymarket and Kalshi odds scraper for prediction markets: question, outcome, implied probability, bid, ask, last price, 24h change, volume, liquidity and end date. Takes keywords, the sources to read and a minimum volume. Use it to track prediction market odds on elections, sports or economics.

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

## Pricing

from $0.70 / 1,000 markets

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Polymarket & Kalshi Odds Scraper

Export live odds from Polymarket and Kalshi into one dataset, with no login, no API key and no wallet, for $1 per 1,000 markets on the Free plan, down to $0.70 on higher plans.

For every open market you get the question, event title, outcome label, implied probability, bid and ask, last price, spread, 24-hour price change, volume, liquidity, open interest, start and end dates, a link to the market page and, optionally, the full resolution rules. The Actor reads the official public market-data APIs of both exchanges, so runs are fast and the data comes from the source.

### What you can do with it

- **Track forecasts.** Follow election, economics, sports, crypto and tech questions with `impliedProbabilityPct` and `priceChange24h`.
- **Compare the same question across exchanges.** Search both Polymarket and Kalshi with the same keywords and put the probabilities side by side.
- **Build a price history.** Schedule the Actor every hour or day and store each snapshot to chart how odds move over time.
- **Alert on big moves.** Send markets whose 24-hour change or volume crosses a threshold to Slack or a webhook.
- **Find the most active markets.** Use `minVolumeUsd`, `volume24hUsd` and `liquidityUsd` to focus on markets with real money behind them.
- **Feed dashboards and research.** Send clean odds data to Google Sheets, a database, a BI tool or an AI agent.

### Output fields

Each market is one record in the dataset. Example values below come from a real run on Polymarket.

| Field | Example |
|-------|---------|
| `source` / `marketId` | polymarket / 6882826 (kalshi markets use their ticker) |
| `question` | Jensen Huang announced resignation or removal by December 31, 2026? |
| `eventTitle` / `outcomeLabel` | Jensen Huang announced resignation or removal by...? / December 31, 2026 |
| `category` | null on Polymarket; Kalshi category such as Economics or Elections |
| `outcomes` | \[{"name": "Yes", "price": 0.805}, {"name": "No", "price": 0.195}] |
| `yesPrice` / `impliedProbabilityPct` | 0.805 / 80.5 |
| `bestBid` / `bestAsk` / `spread` | 0.8 / 0.81 / 0.01 |
| `lastTradePrice` / `priceChange24h` | 0.81 / 0.65 |
| `volumeUsd` / `volume24hUsd` | 4255046.506586 / 3479520.451046003 |
| `liquidityUsd` / `openInterest` | 101699.6707 / 6206676.268432001 |
| `status` | open |
| `startDate` / `endDate` | 2026-11-08T21:17:48.000Z / 2027-01-01T04:59:00.000Z |
| `url` | https://polymarket.com/event/jensen-huang-announced-resignation-or-removal-by-december-31 |
| `rules` | resolution rules text, only when **Include rules** is on |
| `scrapedAt` | 2026-11-12T05:14:49.171Z |
| `noPrice` | 0.195 (No price; for Polymarket only on two-outcome markets) |
| `result` | null while open; the winning outcome (Polymarket) or yes / no (Kalshi) once resolved |
| `eventId` / `slug` / `seriesTicker` | Polymarket event ID / market slug; Kalshi event ticker / series ticker |
| `volume1wUsd` | 7-day volume (Polymarket) |
| `image` | market image URL (Polymarket) |
| `yesTokenId` | Polymarket CLOB token of the Yes outcome |
| `priceHistory` | \[{"time": "2026-11-17T00:00:27.000Z", "price": 0.0015}, ...] only with **Include price history** |
| `orderBook` | {"bids": \[{"price": 0.8, "size": 1200}], "asks": \[...]} best Yes levels first, only with **Include order book** |

Download results as JSON, CSV, Excel or XML, or read them through the Apify API.

### Example output

One real record from a run with **Include rules** on (the rules text is shortened):

```json
{
  "source": "polymarket",
  "marketId": "6882826",
  "question": "Jensen Huang announced resignation or removal by December 31, 2026?",
  "eventTitle": "Jensen Huang announced resignation or removal by...?",
  "outcomeLabel": "December 31, 2026",
  "category": null,
  "outcomes": [
    { "name": "Yes", "price": 0.805 },
    { "name": "No", "price": 0.195 }
  ],
  "yesPrice": 0.805,
  "impliedProbabilityPct": 80.5,
  "bestBid": 0.8,
  "bestAsk": 0.81,
  "lastTradePrice": 0.81,
  "spread": 0.01,
  "priceChange24h": 0.65,
  "volumeUsd": 4255046.506586,
  "volume24hUsd": 3479520.451046003,
  "liquidityUsd": 101699.6707,
  "openInterest": 6206676.268432001,
  "status": "open",
  "startDate": "2026-11-08T21:17:48.000Z",
  "endDate": "2027-01-01T04:59:00.000Z",
  "url": "https://polymarket.com/event/jensen-huang-announced-resignation-or-removal-by-december-31",
  "rules": "This market will resolve to “Yes” if Jensen Huang’s departure through resignation or removal as CEO of NVIDIA is officially announced by December 31, 2026, 11:59 PM ET. ...",
  "scrapedAt": "2026-11-12T05:14:49.171Z"
}
```

### How to use

1. Pick **Sources**: `polymarket`, `kalshi` or both, one per line.
2. Optionally add **Keywords** (for example `bitcoin`, `fed`, `election`) to keep only matching markets, and set **Maximum markets per source**, **Minimum volume** and **Include rules**.
   More options: **Categories**, **Market IDs**, **Kalshi series tickers**, **Minimum 24h volume**, **Minimum liquidity**, **Minimum open interest**, **Include closed and resolved markets**, **Sort by**, **Include price history** (daily prices) and **Include order book**.
3. Click **Start**. Markets are saved page by page as each exchange is read. Export them or read them through the API, or schedule the Actor to build a price history.

#### Example input

```json
{
  "sources": ["polymarket", "kalshi"],
  "keywords": ["bitcoin", "fed"],
  "maxMarketsPerSource": 500,
  "minVolumeUsd": 10000,
  "includeRules": false,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

Tips:

- A market is kept when its question, event title or outcome label contains any keyword, case-insensitively. On Polymarket the market slug is checked too; on Kalshi the category and series ticker are checked too.
- `minVolumeUsd` is in USD for Polymarket and in contracts for Kalshi.
- The default datacenter proxy works.

### Pricing and cost examples

You pay per market saved to the dataset ("Market" event). Platform usage and proxy traffic are included in the per-market price.

| Apify plan | Price per 1,000 markets |
|------------|-------------------------|
| Free (default price) | $1.00 |
| Bronze | $0.90 |
| Silver | $0.80 |
| Gold, Platinum, Diamond | $0.70 |

Cost examples on the Free plan:

- 100 markets ≈ $0.10
- 1,000 markets ≈ $1.00
- 10,000 markets ≈ $10.00 (≈ $7.00 on Gold and higher plans)

The Apify Free plan includes $5 of platform credit every month. If you spend it only on this Actor, that covers about 5,000 markets per month, for example 50 hourly snapshots of the top 100 markets.

You are charged only for markets pushed to the dataset. Markets removed by your keywords or minimum volume are scanned but not charged. If an exchange's API still fails after 4 attempts, that source stops with an error in the log and nothing more is saved from it; markets saved before the failure stay in the dataset and are charged. Unknown source names are skipped with a warning. To set a hard cap, enter a maximum total charge per run in the run options. The Actor stops as soon as that limit is reached.

### Use it via API, on a schedule, or from an AI agent

**JavaScript** (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('tamnt67/prediction-markets-scraper').call({
    sources: ['polymarket', 'kalshi'],
    keywords: ['bitcoin'],
    maxMarketsPerSource: 200,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("tamnt67/prediction-markets-scraper").call(run_input={
    "sources": ["polymarket", "kalshi"],
    "keywords": ["bitcoin"],
    "maxMarketsPerSource": 200,
})

items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

**cURL** (runs the Actor and returns the markets in one call):

```bash
curl -X POST "https://api.apify.com/v2/acts/tamnt67~prediction-markets-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"sources": ["polymarket", "kalshi"], "keywords": ["bitcoin"], "maxMarketsPerSource": 200}'
```

The sync endpoint waits for the run to finish, so use it for small runs and the client libraries for large ones.

**Schedules:** create an Apify Schedule for this Actor or a saved task to take a snapshot every hour or day, then connect it to Google Sheets or a webhook to keep a price history.

**AI agents:** the Apify MCP server at https://mcp.apify.com lets AI assistants such as Claude or Cursor run this Actor and read its results.

### FAQ

#### How much does Polymarket & Kalshi Odds Scraper cost?

Polymarket & Kalshi Odds Scraper costs $1 per 1,000 markets on the Free plan and $0.90, $0.80 or $0.70 per 1,000 on higher Apify plans. 100 markets cost about $0.10 on the Free plan. The Free plan's $5 monthly credit covers about 5,000 markets.

#### How many markets do I get per run?

Polymarket & Kalshi Odds Scraper saves up to `maxMarketsPerSource` markets from each exchange, from 1 to 50,000. The default is 100 per source. Fewer are returned when your keywords or minimum volume leave fewer matches.

#### How can I get more results?

Raise `maxMarketsPerSource`, use both sources, remove keywords or lower `minVolumeUsd`. Keyword filtering happens after the scan, so a narrow keyword may need a higher maximum before Polymarket & Kalshi Odds Scraper finds all matches.

#### Can I run it on a schedule or through the API?

Yes. Polymarket & Kalshi Odds Scraper works with Apify Schedules for hourly or daily snapshots, and with the Apify API through the JavaScript and Python clients or a single cURL call. See the API section above for working examples.

#### How fresh is the data?

Polymarket & Kalshi Odds Scraper reads both exchanges' public APIs live at the time of each run. Nothing is cached. Prices are a snapshot at run time, and every record has a `scrapedAt` timestamp.

#### Is it legal to scrape Polymarket and Kalshi?

Polymarket & Kalshi Odds Scraper collects only publicly visible market data from the exchanges' official public market-data APIs, without logging in. You are responsible for how you use the data, including complying with the Polymarket and Kalshi terms of service and with data protection laws such as GDPR. This is not legal advice, and the odds are not trading advice.

### Limitations

- Only open markets are exported unless **Include closed and resolved markets** is on. With it, open markets come first, then closed ones, so a low maximum may be filled by open markets.
- **Sort by** reorders the markets saved from each source. Polymarket is also scanned in that order; Kalshi has no server-side sort, so Kalshi markets are sorted among the ones collected (the first matching markets up to the maximum).
- `priceHistory` has one point per day. Very new Kalshi markets can have none yet. Kalshi's order book lists bids only, so Yes asks are derived from No bids (1 minus the No bid).
- Polymarket categories are matched against Polymarket tags; a word that is not a Polymarket tag is skipped with a warning.
- Polymarket markets are scanned in order of 24-hour volume; Kalshi markets in the order the API returns events. Keyword filtering happens after the scan, so a narrow keyword may need a higher maximum to find all matches.
- Polymarket scanning stops after about 5,000 markets per listing (Polymarket's paging limit; the open and the closed listing count separately), and Kalshi scanning after 200 pages of events, even if `maxMarketsPerSource` is higher.
- Kalshi volume and open interest are counted in contracts (each pays $1). Kalshi gives no liquidity figure and Polymarket gives no category, so those fields are usually empty for that source.
- `yesPrice` and `impliedProbabilityPct` refer to the Yes outcome. For head-to-head Polymarket markets without Yes/No (such as `Thunder vs. Trail Blazers`) they refer to the first outcome; see `outcomes` for all prices.
- For Kalshi, `yesPrice` is the middle of the best bid and ask, or the last price when there is no ask. The Kalshi `outcomes` prices are derived from that value, and `priceChange24h` is the last price minus the previous price reported by Kalshi.
- Several Polymarket markets in one event share the event's `openInterest`, as in the example above.
- Records are not de-duplicated.
- Prices are a snapshot at run time and are not trading advice.

### Changelog

- 1.0 update (2026-11-23): new inputs **Categories**, **Market IDs**, **Kalshi series tickers**, **Minimum 24h volume**, **Minimum liquidity**, **Minimum open interest**, **Include closed and resolved markets**, **Sort by**, **Include price history** and **Include order book**; new output fields `noPrice`, `result`, `eventId`, `slug`, `seriesTicker`, `volume1wUsd`, `image`, `yesTokenId`, and `priceHistory` / `orderBook` when asked for. Without the new inputs the same markets are returned as before.
- 1.0 (2026-11-19): when `maxMarketsPerSource` is left out of an API call, the limit is now 100 per source, matching the documented default (it was 200).

### Integrations

Works with every Apify integration: API, webhooks, Zapier, Make, Google Sheets, Slack, n8n, LangChain and the Apify MCP server.

### Support

Found a problem or missing field? Report it in the Issues tab of this Actor.

# Actor input Schema

## `sources` (type: `array`):

Exchanges to read: polymarket, kalshi or both, one per line.

## `keywords` (type: `array`):

Keep a market when its question or event title contains any of these words, for example bitcoin or election. Leave empty for all markets.

## `categories` (type: `array`):

Optional. Polymarket tags (for example crypto, politics, sports, economy) and Kalshi categories (for example Crypto, Politics, Economics, Sports). Empty keeps every category.

## `marketIds` (type: `array`):

Optional. Read only these markets: Polymarket market IDs (numbers) or slugs, and Kalshi market tickers (upper case, for example KXBTCD-26NOV2222-T59499.99). Replaces the listing scan.

## `kalshiSeriesTickers` (type: `array`):

Optional. Read only the Kalshi events of these series, for example KXBTCD or KXFED. Much faster than scanning every Kalshi market.

## `maxMarketsPerSource` (type: `integer`):

Stop after this many markets from each exchange.

## `minVolumeUsd` (type: `integer`):

Skip markets with less total volume than this (USD for Polymarket, contracts for Kalshi). 0 keeps all.

## `minVolume24hUsd` (type: `integer`):

Skip markets with less 24-hour volume than this. 0 keeps all.

## `minLiquidityUsd` (type: `integer`):

Skip markets with less liquidity than this (USD). Kalshi reports no liquidity, so any value above 0 drops Kalshi markets. 0 keeps all.

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

Skip markets with less open interest than this. 0 keeps all.

## `includeClosed` (type: `boolean`):

After the open markets, also read closed and resolved markets, with the winning outcome in result. Off by default (open markets only).

## `sortBy` (type: `string`):

Optional order of the saved markets of each source. Polymarket is also scanned in this order (for 24h volume, volume, liquidity and closing date); Kalshi markets are sorted after they are collected.

## `includeRules` (type: `boolean`):

Add the resolution rules text of each market.

## `includePriceHistory` (type: `boolean`):

Add priceHistory: one Yes price per day for the last History window days. One extra request per market.

## `historyDays` (type: `integer`):

Number of days of daily prices with Include price history.

## `includeOrderBook` (type: `boolean`):

Add orderBook: the best Yes bids and asks with their sizes. One extra request per market.

## `orderBookDepth` (type: `integer`):

Number of price levels per side with Include order book.

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

Proxy used for the requests. The default datacenter proxy works.

## Actor input object example

```json
{
  "sources": [
    "polymarket",
    "kalshi"
  ],
  "keywords": [],
  "maxMarketsPerSource": 100,
  "minVolumeUsd": 0,
  "minVolume24hUsd": 0,
  "minLiquidityUsd": 0,
  "minOpenInterest": 0,
  "includeClosed": false,
  "includeRules": false,
  "includePriceHistory": false,
  "historyDays": 30,
  "includeOrderBook": false,
  "orderBookDepth": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset with one record per result.

## `marketsCsv` (type: `string`):

The same dataset exported as CSV.

# 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 = {
    "maxMarketsPerSource": 100,
    "minVolumeUsd": 0,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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