Polymarket & Kalshi Scraper - Prediction Market Odds
Pricing
from $1.60 / 1,000 market outcomes
Polymarket & Kalshi Scraper - Prediction Market Odds
Pick Kalshi, Polymarket or both, optionally filter by keyword or category, and get one flat row per outcome: probability (0-1), bid/ask, 1h/24h/7d change, volume, liquidity, close time and URL. Optional 7-day price history and changed-since-last-run mode. Official public APIs.
Pricing
from $1.60 / 1,000 market outcomes
Rating
0.0
(0)
Developer
SUNGHWAN CHO
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Features
Share
Polymarket & Kalshi Scraper: Prediction Market Odds in One Table
Languages: English · 한국어
Free plan: Apify's $5 monthly credit covers about 2,500 market outcome rows with this Actor (at the per-row price; each run also has a $0.005 start fee).
Choose Kalshi, Polymarket or both (optionally a keyword, category, status or minimum volume), and get one flat row per market outcome with the implied probability (0–1), best bid and ask, 1h/24h/7d price change, volume, liquidity or open interest, close time and a link to the market. It is a prediction market data scraper for analysts, traders, journalists and researchers who want Polymarket odds and Kalshi odds in the same English field names without writing two API clients, and a scheduled "only what changed since my last run" mode for alerts. It uses only the venues' official public, unauthenticated read APIs: no login, no browser, no proxy.
- Both venues in the same schema, numbers as numbers, missing values as
null. - Open markets come highest 24-hour volume first.
- Optional 7-day hourly price history per outcome.
- Optional change mode for scheduled monitoring and alerts.
What you get
One row per outcome:
- A single yes/no question (e.g. "Will the Fed cut rates in December?") → one row,
outcome: "Yes". - A multi-outcome event (e.g. "Who will win the 2028 Democratic nomination?") → one row per candidate,
outcome: "Gavin Newsom", … - A two-sided Polymarket market (e.g. a game "Ravens vs. Falcons") → one row per side.
| Field | Type | Description |
|---|---|---|
venue | string | polymarket or kalshi |
eventId, eventTitle | string | Event the market belongs to |
marketId, question | string | Kalshi market ticker / Polymarket condition id, and the market question |
outcome, outcomeId | string | What this row prices (candidate, team, range or Yes); Kalshi ticker / Polymarket CLOB token id |
probability | number | Implied probability 0–1 (see FAQ) |
lastPrice, bestBid, bestAsk, spread | number | Prices on the 0–1 scale |
change1h, change24h, change7d | number | Price change on the 0–1 scale (0.05 = +5 points) |
volume24h, volumeTotal | number | Volume |
volumeUnit | string | USD (Polymarket) or contracts (Kalshi, each contract pays $1) |
liquidity | number | Polymarket order-book liquidity in USD (null on Kalshi) |
openInterest | number | Kalshi open interest in contracts (null on Polymarket) |
closeTime | ISO string | Scheduled close |
status | string | open, closed, resolved, upcoming |
resolvedOutcome | string | The winning outcome once resolved |
category, tags | string, array | Kalshi event category; Polymarket main category and all tags |
url | string | Market page (Kalshi URLs point to the series page) |
previousProbability, probabilityChangeSinceLastRun | number | Filled in change mode only |
changeType | string | new, statusChanged or probabilityChanged in change mode; otherwise null |
priceHistory | array | [{ "time", "price" }] hourly for 7 days, when requested; otherwise null |
scrapedAt, schemaVersion | ISO string, integer | Collection time and output version |
Sample output
One real row from a run of this Actor (default input, no change mode, no price history):
{"venue": "polymarket","eventId": "73130","eventTitle": "Will the U.S. invade Iran before 2027?","marketId": "0x5db999fad322cea2914535aae5517060c3f80ad6d8c0231cde2124a434d16846","question": "Will the U.S. invade Iran before 2027?","outcome": "Yes","outcomeId": "55115078421062885512539156303747803058407616201213034911037320915726138659123","probability": 0.115,"lastPrice": 0.11,"bestBid": 0.11,"bestAsk": 0.12,"spread": 0.01,"change1h": -0.01,"change24h": 0.01,"change7d": -0.06,"volume24h": 565319.915801,"volumeTotal": 78939849.63817401,"volumeUnit": "USD","liquidity": 492330.1069,"openInterest": null,"closeTime": "2027-01-01T04:59:00.000Z","status": "open","resolvedOutcome": null,"category": "Politics","tags": ["U.S. x Iran", "Macro Geopolitics", "Military Strikes", "Politics", "Iran", "Trump", "Middle East", "Israel", "Geopolitics", "World"],"url": "https://polymarket.com/event/will-the-us-invade-iran-before-2027","previousProbability": null,"probabilityChangeSinceLastRun": null,"changeType": null,"priceHistory": null,"scrapedAt": "2026-11-09T06:34:14.245Z","schemaVersion": 1}
Second run (changes filled). A real row from the second of two runs on 2026-11-12 with the same input, onlyChangedSinceLastRun: true and minProbabilityChange: 0.005, about six minutes apart. The first run had saved the baseline; the second returned only the outcomes that moved, each with the previous probability and the change:
{"venue": "polymarket","eventId": "1284280","eventTitle": "Thunder vs. Trail Blazers","marketId": "0x6a14965298ff31012f31e97f4a660af3183ab557e8af0bd61425688e4eaad6d8","question": "Thunder vs. Trail Blazers","outcome": "Thunder","outcomeId": "33186894119926981375911045506657416352501075782037836868441763463487573710659","probability": 0.465,"lastPrice": 0.47,"bestBid": 0.46,"bestAsk": 0.47,"spread": 0.01,"change1h": 0.04,"change24h": -0.08,"change7d": -0.055,"volume24h": 957220.4430820001,"volumeTotal": 656246.5024319999,"volumeUnit": "USD","liquidity": 116476.2241,"openInterest": null,"closeTime": "2026-11-12T03:00:00.000Z","status": "open","resolvedOutcome": null,"category": "Sports","tags": ["Sports", "NBA", "Games", "Basketball"],"url": "https://polymarket.com/event/nba-okc-por-2026-11-11","previousProbability": 0.415,"probabilityChangeSinceLastRun": 0.05,"changeType": "probabilityChanged","priceHistory": null,"scrapedAt": "2026-11-12T03:18:39.657Z","schemaVersion": 1}
A Kalshi row has the same keys with volumeUnit: "contracts", openInterest filled and liquidity: null.
Use cases
- Odds monitoring and alerts. A macro analyst schedules the Actor every 15 minutes with
keywords: ["fed", "rate cut", "fomc"]andonlyChangedSinceLastRun: true, and gets only the outcomes that moved 3 or more points, ready to post to Slack. - Cross-venue comparison. A trader pulls the top crypto markets on both Kalshi and Polymarket into one sheet to compare probabilities, spreads and 24h volume side by side.
- Newsroom data. A journalist exports election or geopolitics markets with their 7-day price history for a chart, without writing two API clients.
- Research datasets. A researcher collects daily snapshots of open markets (probability, volume, liquidity, close time) in one schema for later analysis.
- Dashboard feed. A product team pulls the 100 highest-volume open markets per venue every hour into a BI tool.
How to use
Apify Console
Open the Actor, keep both venues selected or pick one, optionally add keywords or categories, and click Start. No input is required: the default returns the 100 highest-volume open outcomes per venue. For alerts, save the input as a Task with onlyChangedSinceLastRun: true and add a Schedule.
| Field | Default | Notes |
|---|---|---|
venues | both | polymarket, kalshi |
keywords | – | Any of these words in event title, question or outcome (case-insensitive) |
categories | – | Whole-word match on category/tags, e.g. Politics, Crypto, Economics, Weather |
status | open | open, closed (resolved first, most recent first), all (open first) |
maxItems | 100 | Rows per venue (1–10,000) |
minVolume24h | 0 | USD on Polymarket, contracts on Kalshi |
closingWithinDays | – | Only markets closing within N days |
includePriceHistory | false | Adds 7-day hourly priceHistory and fills missing 1h/24h/7d changes |
onlyChangedSinceLastRun | false | Change mode, see FAQ |
minProbabilityChange | 0.01 | Smallest move that counts as a change (0–1 scale) |
historyStoreName | prediction-markets-history | Named key-value store that remembers the last returned probabilities |
Example: top 50 crypto markets on both venues.
{ "categories": ["Crypto"], "maxItems": 50 }
Example: every 15 minutes, alert on Fed / rates markets that moved 3+ points.
{"keywords": ["fed", "rate cut", "fomc"],"onlyChangedSinceLastRun": true,"minProbabilityChange": 0.03,"historyStoreName": "fed-watch"}
API (curl)
curl -X POST "https://api.apify.com/v2/acts/magenta_courser~prediction-markets/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \-H "Content-Type: application/json" \-d '{"categories":["Crypto"],"maxItems":50}'
Python
from apify_client import ApifyClientclient = ApifyClient("<YOUR_API_TOKEN>")run = client.actor("magenta_courser/prediction-markets").call(run_input={"keywords": ["fed", "rate cut"],"maxItems": 50,})for row in client.dataset(run["defaultDatasetId"]).iterate_items():print(row["venue"], row["outcome"], row["probability"], row["change24h"])
JavaScript
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });const run = await client.actor('magenta_courser/prediction-markets').call({keywords: ['fed', 'rate cut'],maxItems: 50,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.map((r) => [r.venue, r.outcome, r.probability, r.change24h]));
AI agents and MCP
Connect your agent (Claude, Cursor, a LangChain or OpenAI Agents SDK app, or any MCP client) to the Apify MCP server at https://mcp.apify.com with your Apify token and add this Actor as a tool, for example https://mcp.apify.com?tools=magenta_courser/prediction-markets. The agent then calls the tool magenta_courser/prediction-markets with a minimal input such as:
{ "keywords": ["bitcoin"], "maxItems": 20 }
Rows are flat, probabilities are numbers on the 0–1 scale and missing values are null, so an agent can answer "what are the odds of X on Polymarket and Kalshi" from the result directly.
Pricing
Pay per event. The current prices are:
| Event | Price | When |
|---|---|---|
| Actor start | $0.005 per run | Once per run at the default 256 MB memory (one event per GB, minimum one) |
| Market outcome | $0.002 per row (FREE plan); $0.0019 BRONZE, $0.0018 SILVER, $0.0016 GOLD and up | One outcome row saved to the dataset. Summary records and failed requests are free |
Example: a daily run that saves 100 outcome rows costs 100 × $0.002 + $0.005 = $0.205, about $6.15 per month on the FREE plan. An hourly change-mode watchlist that returns on average 5 changed rows per run costs about 24 × ($0.005 + 5 × $0.002) = $0.36 per day. Runs that save nothing (no matches, or nothing changed) cost only the start fee. If you set a Maximum cost per run, the Actor stops cleanly when it is reached and says so in the status message and in RUN_SUMMARY. Platform usage for this Actor is included in the event price.
FAQ
Do I need a Kalshi or Polymarket account or API key?
No. The Actor reads public market data through the venues' official, unauthenticated read endpoints. It does not log in, trade, or access any account or personal data.
How is probability computed?
Polymarket: the outcome price Polymarket itself displays (outcomePrices). Kalshi: the midpoint of best bid and best ask when the spread is 10 cents or less, otherwise the last traded price (the same rule Polymarket uses for its display); null if the market never traded and has no two-sided book.
Where do the 1h/24h/7d changes come from?
Polymarket: the changes Polymarket publishes for each market; missing ones are filled from price history when you turn it on. Kalshi: change24h = last price − price 24 hours ago; change1h and change7d need includePriceHistory (then all three are computed from the hourly history, against probability).
How does change mode work?
With onlyChangedSinceLastRun, the Actor builds the same list as usual (filters + maxItems) and then returns only outcomes that are new (changeType: "new"), changed status (statusChanged) or moved at least minProbabilityChange since they were last returned (probabilityChanged). The comparison point only moves when a row is returned, so slow drifts are still reported once they add up. Use a different historyStoreName for each watchlist. Two runs with the same store at the same moment may report the same change twice. If the history store cannot be opened, the run continues without comparison, warns, and reports historyAvailable: false in RUN_SUMMARY.
How fresh is the data and how long does a run take?
Every run reads live from the venues; nothing is cached on our side. Polymarket returns markets sorted by 24h volume, so the Actor stops as soon as it has enough rows (up to 5,000 open markets are scanned when a filter is narrow). Kalshi does not sort by volume, so the Actor reads the whole open list (about 12,000 events / 120,000 markets, roughly 2–4 minutes at 256 MB) and sorts it. With status: closed, resolved markets come first, then closed-but-unresolved ones, most recently closed first; up to 2,000 events of each are scanned and Kalshi markets that never traded are skipped. Requests are paced (about 2–3 per second), well under both venues' published rate limits.
What happens when a venue fails or is geo-blocked?
If one venue fails (including HTTP 403/451 regional blocks), the other venue's rows are still saved and RUN_SUMMARY shows status: "failed" with a stopReason for that venue; the run fails only if every venue failed. Polymarket blocks some countries; this Actor does not try to get around regional restrictions and must run on the Apify platform.
Does it match the same question across Kalshi and Polymarket?
No, deliberately. Resolution rules and close times differ even when the questions look alike, so cross-venue matching is left to you.
Where do I see the run totals?
The key-value store record RUN_SUMMARY (free) has per-venue status (completed, failed, budgetLimited), stopReason, markets scanned, rows matched/saved, rows unchanged (change mode) and request counts.
한국어 안내 (Korean)
Kalshi와 Polymarket 중 하나 또는 둘 다를 고르고(선택적으로 키워드·카테고리·상태·최소 거래량), 실행하면 시장 결과(outcome) 1개당 1행으로 확률(01), 최우선 매수·매도 호가, 1시간·24시간·7일 변동, 거래량, 유동성 또는 미결제약정, 마감 시각, 링크가 같은 영어 필드명으로 나옵니다. 두 거래소의 공식 공개 읽기 API만 쓰므로 로그인·브라우저·프록시가 필요 없습니다. 4분 걸릴 수 있고, Polymarket은 일부 국가를 차단합니다. 두 거래소 데이터의 저장·재배포·상업적 이용 조건은 각 약관을 직접 확인해야 하며 투자 조언이 아닙니다.onlyChangedSinceLastRun을 켜면 지난 실행 이후 새로 생기거나 상태가 바뀌거나 확률이 일정 폭 이상 움직인 결과만 돌려주어 알림용 예약 실행에 맞습니다. 가격은 저장된 행 1건당 $0.002(FREE 플랜 기준, 상위 플랜 할인)와 실행당 시작 비용 $0.005이며, 매일 100행을 받으면 월 약 $6.15입니다. 아무것도 저장되지 않은 실행은 시작 비용만 듭니다. Kalshi는 거래량 정렬이 없어 전체 목록을 읽느라 2
Notes and responsible use
- This Actor reads public market data through official, unauthenticated read endpoints. It does not log in, trade, or access any account or personal data.
- Kalshi's Developer Agreement and data terms and Polymarket's Terms of Use restrict how their data may be stored, redistributed and used commercially. You are responsible for making sure your use of the data complies with those terms. Not investment advice.
Need another field or feature?
Tell us in the Issues tab: a missing field, another input mode, a different output format. We aim to ship requested fields and features within a week, and we answer every issue.