Prediction Markets
by Scrapebench API in Markets & finance
Live Kalshi and Polymarket prediction-market odds by keyword, category or city, one schema for both venues, with the price spread when the same question trades on both. Snapshot refreshed hourly from the exchanges' public APIs.
https://api.scrapebench.dev/v1/prediction-markets- Price
- $0.06
- per call in USDC
- Uptime
- 90.0%
- last 30 days
- Response time
- 913 ms
- 2.4 s slowest 5%
- Last check
- Passed
- 2 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://api.scrapebench.dev/v1/prediction-markets
Each call costs $0.06 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://api.scrapebench.dev/v1/prediction-markets
content-type: application/json
{
"query": "fed",
"venue": "both"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
categories | array of string | No | Kalshi categories, e.g. 'Economics', 'Climate and Weather'. Polymarket publishes none, so setting this returns Kalshi markets only. |
min_volume | number | No | Drop markets that traded less than this (contracts on Kalshi, USD on Polymarket). Default: 0. |
queries | array of string | No | More keywords; a market matching any of them (or query) is returned. |
query | string or null | No | Case-insensitive substring over question, subtitle, series, ticker, event and weather city, e.g. 'fed', 'bitcoin', 'new york'. Default: null. |
series | array of string | No | Kalshi series tickers, e.g. 'KXHIGHNY' (NYC daily high) or 'KXFEDDECISION'. |
sort | string | No | volume: most traded first (default); close_time: soonest to close first. One of: volume, close_time. Default: "volume". |
venue | string | No | Which exchange to search: both (default), kalshi or polymarket. One of: both, kalshi, polymarket. Default: "both". |
Example response
The provider's example. We can't check it without paying.
Example response, 89 lines
{
"next_page": null,
"page": 0,
"page_size": 25,
"rows": [
{
"category": "Economics",
"city": null,
"close_time": "2026-09-16T17:59:00Z",
"counterpart_market_id": null,
"event_ticker": "KXFEDDECISION-26SEP",
"implied_probability": 0.49,
"liquidity": 0,
"market_id": "KXFEDDECISION-26SEP-H0",
"market_url": null,
"matched_on": [
"kalshi"
],
"no_price": 0.52,
"open_interest": 10072125.21,
"question": "Will the Federal Reserve Hike rates by 0bps at their September 2026 meeting?",
"scraped_at": "2026-10-16T02:46:40.011943Z",
"series": "KXFEDDECISION",
"source_url": "https://api.elections.kalshi.com/trade-api/v2/markets/KXFEDDECISION-26SEP-H0",
"spread": null,
"status": "active",
"subtitle": "Fed maintains rate",
"ticker": "KXFEDDECISION-26SEP-H0",
"venue": "kalshi",
"volume": 14781750.91,
"yes_price": 0.49
},
{
"category": null,
"city": null,
"close_time": "2026-09-16T00:00:00Z",
"counterpart_market_id": null,
"event_ticker": "481717",
"implied_probability": 0.001,
"liquidity": 761752.54191,
"market_id": "2252242",
"market_url": "https://polymarket.com/event/fed-decision-in-september-762",
"matched_on": [
"polymarket"
],
"no_price": 0.9985,
"open_interest": null,
"question": "Will the Fed decrease interest rates by 50+ bps after the September 2026 meeting?",
"scraped_at": "2026-10-16T02:46:40.022938Z",
"series": null,
"source_url": "https://gamma-api.polymarket.com/markets?id=2252242",
"spread": null,
"status": "active",
"subtitle": "50+ bps decrease",
"ticker": "will-the-fed-decrease-interest-rates-by-50-bps-after-the-september-2026-meeting-863",
"venue": "polymarket",
"volume": 13532121.840784997,
"yes_price": 0.0015
},
{
"category": "Economics",
"city": null,
"close_time": "2026-09-16T17:59:00Z",
"counterpart_market_id": null,
"event_ticker": "KXFEDDECISION-26SEP",
"implied_probability": 0.01,
"liquidity": 0,
"market_id": "KXFEDDECISION-26SEP-C25",
"market_url": null,
"matched_on": [
"kalshi"
],
"no_price": 1,
"open_interest": 6296989.75,
"question": "Will the Federal Reserve Cut rates by 25bps at their September 2026 meeting?",
"scraped_at": "2026-10-16T02:46:40.011943Z",
"series": "KXFEDDECISION",
"source_url": "https://api.elections.kalshi.com/trade-api/v2/markets/KXFEDDECISION-26SEP-C25",
"spread": null,
"status": "active",
"subtitle": "Cut 25bps",
"ticker": "KXFEDDECISION-26SEP-C25",
"venue": "kalshi",
"volume": 6822495.24,
"yes_price": 0.01
}
],
"service": "prediction-markets"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.06.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.scrapebench.dev/v1/prediction-markets' \
-H 'content-type: application/json' \
--data-raw '{"query":"fed","venue":"both"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.scrapebench.dev/v1/prediction-markets' \
-H 'content-type: application/json' \
--data-raw '{"query":"fed","venue":"both"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.06 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.06" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.06 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.scrapebench.dev%2Fv1%2Fprediction-markets&method=POST
const res = await pay("https://api.scrapebench.dev/v1/prediction-markets", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"query": "fed",
"venue": "both"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.06 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.06"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://api.scrapebench.dev/v1/prediction-markets",
json={
"query": "fed",
"venue": "both",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 827 ms | $0.06 |
| 8 h ago | Passed | 402 | 2.3 s | $0.06 |
| 13 h ago | Passed | 402 | 1.2 s | $0.06 |
| 18 h ago | Passed | 402 | 1.2 s | $0.06 |
| 23 h ago | Passed | 402 | 913 ms | $0.06 |
Show 5 older checks
| 28 h ago | Passed | 402 | 877 ms | $0.06 |
| 32 h ago | Expected HTTP 402, got 530 | 530 | 165 ms | - |
| 37 h ago | Passed | 402 | 814 ms | $0.06 |
| 42 h ago | Passed | 402 | 831 ms | $0.06 |
| 46 h ago | Passed | 402 | 2.4 s | $0.06 |