# Polymarket & Kalshi Odds Scraper + Odds-Move Alerts (`inder-studio/prediction-markets`) Actor

Live odds, volume, liquidity and close dates for open Polymarket and Kalshi markets in one table. Filter by keyword or volume. Get only markets whose odds moved since your last run. Official public APIs, no keys.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

Get live odds for open Polymarket and Kalshi markets in one table: question, Yes price (implied probability), volume, liquidity and close date.

Schedule it hourly and set **Only moved by N points** to get just the markets whose odds moved.

Official public APIs. No login, no API keys. Not financial advice.

### Use cases

- **Odds-move alerts:** schedule hourly with `onlyMovedByPoints: 5` and connect Slack, email or webhooks.
- **Research & journalism:** what does the market think about the Fed, elections, crypto or sports? Pull it as CSV or Excel.
- **Cross-platform comparison:** the same question on Polymarket and Kalshi side by side.
- **AI agents:** call it through Apify's MCP server for "what are the odds that…?"

### Input

| Field | What it does |
|---|---|
| `platforms` | `polymarket`, `kalshi` (default: both) |
| `query` | Keywords; keeps markets whose event, question or category contains any of them |
| `minVolume24h`, `closingWithinDays` | Activity and time filters |
| `polymarketTag`, `kalshiCategory` | Category filters |
| `onlyMovedByPoints` + `monitorName` | Monitor: output only markets whose Yes price moved ≥ N percentage points since the previous run. The first run saves a baseline |
| `maxMarkets` | Cap; output is sorted by 24h volume |

```json
{ "query": ["fed", "inflation"], "minVolume24h": 1000, "onlyMovedByPoints": 3 }
```

### Output

`platform, eventId, eventTitle, marketId, question, outcomes[{name, price}], yesPrice (0–1 = implied probability), bestBid, bestAsk, lastPrice, volume, volume24h, liquidity, openInterest, endDate, category, status, url, previousYesPrice?, moveInPoints?, scrapedAt`

Units: Polymarket volume and liquidity are in USD. Kalshi volume and open interest are in contracts.

### Pricing

**Pricing today:** this Actor is free. You pay only the Apify platform usage of your run. We plan to switch to pay per event at the prices below. This section will say so when it changes.

Planned pay-per-event prices (not active yet):

- **$0.005 per run start**.
- **$0.002 per market output**.
- In monitor mode you pay only for markets that moved.

### Notes

- Prices are informational and not financial advice. Respect each platform's terms of use.
- Built and maintained by **Inder Studio**. Open an Issue for bugs or new platforms; fixes ship within 24h.

# Actor input Schema

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

polymarket, kalshi (default both).

## `query` (type: `array`):

Keep markets whose event title, question or category contains any of these, e.g. "fed", "bitcoin", "election". Empty = all.

## `minVolume24h` (type: `integer`):

Polymarket: USD. Kalshi: contracts.

## `closingWithinDays` (type: `integer`):

0 = any.

## `polymarketTag` (type: `string`):

e.g. politics, crypto, sports, economy.

## `kalshiCategory` (type: `string`):

e.g. Economics, Politics, Crypto, Sports.

## `kalshiMaxPages` (type: `integer`):

Kalshi has thousands of events; raise for full coverage.

## `onlyMovedByPoints` (type: `integer`):

0 = off. E.g. 5 = only markets that moved ≥5 percentage points since the last run (first run saves a baseline). Schedule hourly/daily for odds-move alerts.

## `monitorName` (type: `string`):

Separate baselines per task.

## `maxMarkets` (type: `integer`):

Sorted by 24h volume, highest first.

## Actor input object example

```json
{
  "platforms": [
    "polymarket",
    "kalshi"
  ],
  "query": [
    "fed"
  ],
  "minVolume24h": 0,
  "closingWithinDays": 0,
  "kalshiMaxPages": 3,
  "onlyMovedByPoints": 0,
  "monitorName": "default",
  "maxMarkets": 15
}
```

# Actor output Schema

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

Polymarket and Kalshi markets with prices and volume, one row per market.

# 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"
    ],
    "query": [
        "fed"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("inder-studio/prediction-markets").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",
    ],
    "query": ["fed"],
}

# Run the Actor and wait for it to finish
run = client.actor("inder-studio/prediction-markets").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"
  ],
  "query": [
    "fed"
  ]
}' |
apify call inder-studio/prediction-markets --silent --output-dataset

```

## MCP server setup

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

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/9dpUYm05OPH1g4ozt/builds/28JVmMl2NM1rDHkYw/openapi.json
