# Polymarket & Kalshi Scraper - Prediction Market Odds (`pink_comic/prediction-markets-scraper`) Actor

Scrape Polymarket and Kalshi markets: question, outcomes, live odds, bid/ask, volume, liquidity, category and end date. Search or top markets. No API key.

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

## Pricing

from $1.50 / 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.

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 Scraper - Prediction Market Odds

Scrape live **Polymarket** and **Kalshi** prediction markets in one run: question, outcomes, implied probabilities, best bid/ask, last price, volume, 24h volume, liquidity, category, tags, end date and the market link. Search by keyword (bitcoin, fed, election, NBA...) or pull the top markets by volume.

### Why this prediction market scraper

- **Two exchanges, one schema.** Polymarket (USD volume) and Kalshi (contract volume) normalised into the same fields, so you can compare odds side by side.
- **Official public market data.** Polymarket Gamma API and Kalshi market data. No API key, no wallet, no login.
- **Search or top markets.** Keyword search across both, or the most active open markets by 24h volume, total volume, liquidity, ending soon or newest.
- **Fast and cheap.** Hundreds of markets in seconds. $0.0015 per market + $0.002 per run.

### Use cases

- **Trading and research**: monitor odds, spreads and volume across both venues and spot divergences.
- **News and media**: embed market-implied probabilities for elections, the Fed, sports and crypto.
- **AI agents**: give an agent live crowd forecasts as context.
- **Datasets**: schedule snapshots and build odds history.

### Input examples

Top open markets on both exchanges:

```json
{ "platforms": ["polymarket", "kalshi"], "maxResults": 50 }
```

Bitcoin markets:

```json
{ "query": "bitcoin", "maxResults": 100 }
```

Biggest Kalshi markets by volume:

```json
{ "platforms": ["kalshi"], "sortBy": "volume", "maxResults": 300 }
```

### Sample output

```json
{
  "platform": "polymarket",
  "marketId": "3215006",
  "question": "Will the Fed decrease interest rates by 25 bps after the December 2026 meeting?",
  "eventId": "770450",
  "eventTitle": "Fed Decision in December?",
  "outcome": "25 bps decrease",
  "outcomes": ["Yes", "No"],
  "outcomePrices": [0.0035, 0.9965],
  "yesPrice": 0.0035,
  "noPrice": 0.9965,
  "bestBid": 0.003,
  "bestAsk": 0.004,
  "lastPrice": 0.004,
  "volume": 5477065.85,
  "volume24h": 1335171.23,
  "volumeUnit": "USD",
  "liquidity": 346637.34,
  "endDate": "2026-12-09T23:59:00Z",
  "status": "open",
  "url": "https://polymarket.com/event/fed-decision-in-december-20260729232808632",
  "scrapedAt": "2026-11-13T17:31:18Z"
}
```

| Field | Description |
|---|---|
| platform | polymarket or kalshi |
| question, outcome, eventTitle | What the market asks and which outcome it is |
| outcomes, outcomePrices, yesPrice, noPrice | Prices from 0 to 1 = implied probability |
| bestBid, bestAsk, lastPrice | Order book top and last trade |
| volume, volume24h, volumeUnit, liquidity | Activity (USD on Polymarket, contracts on Kalshi) |
| category, tags, endDate, url | Context and link |

### FAQ

**Is this real-time?** Each run is a live snapshot. Schedule it every few minutes for a time series.

**Why do Kalshi volumes look different?** Kalshi reports volume in contracts ($1 notional each), Polymarket in USD. See `volumeUnit`.

**Do I need an account or API key?** No. Only public market data is read; nothing is traded.

**Does it include closed markets?** No, open markets only.

# Actor input Schema

## `platforms` (type: `array`):

Which exchanges to scrape.

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

Optional, e.g. 'bitcoin', 'fed', 'election', 'nba'. Empty = top open markets.

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

Order for top markets when no keyword is given.

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

Optional. Skip markets with lower total volume (USD on Polymarket, contracts on Kalshi).

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

Maximum markets in total, split across platforms. Default 50 = about $0.08.

## Actor input object example

```json
{
  "platforms": [
    "polymarket",
    "kalshi"
  ],
  "sortBy": "volume24h",
  "minVolume": 0,
  "maxResults": 50
}
```

# Actor output Schema

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

All records from this run in the default dataset, shown with the Overview table view.

# 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 = {
    "platforms": [
        "polymarket",
        "kalshi"
    ],
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/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 = {
    "platforms": [
        "polymarket",
        "kalshi",
    ],
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("pink_comic/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 '{
  "platforms": [
    "polymarket",
    "kalshi"
  ],
  "maxResults": 50
}' |
apify call pink_comic/prediction-markets-scraper --silent --output-dataset

```

## MCP server setup

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