Skip to content

Prediction Market Data API

GET/v1/predictiondata/calibration

For resolved binary markets, how often the outcome priced at each probability bucket 24 hours before resolution actually won. Refreshes every 24 hours.

Price

$0.015/ call

Edge cache

21600s

Uptime 24h

100.00%

p95

3.12s

MCP tool

predictiondata_calibration

The Prediction Market Data API provides prediction market prices, implied probabilities, volumes, movers, resolutions, and history. Data is derived from public Polygon chain data. Payment options include per request in USDC or using an API key. The API offers a calibration endpoint for resolved binary markets.

Parameters

NameInTypeDescription
category query string

Code

curl
# 1. No key, no payment: the gateway answers 402 with the price
curl -i "https://api.realtimeapi.ai/v1/predictiondata/calibration"

# 2. Pay: retry with a signed x402 payment (any x402 client builds this header)
curl "https://api.realtimeapi.ai/v1/predictiondata/calibration" -H "PAYMENT-SIGNATURE: $X402_PAYMENT"
TypeScript · @x402/fetch
// npm i @x402/fetch @x402/core @x402/evm viem
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = x402Client.fromConfig({ schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(privateKeyToAccount(PRIVATE_KEY)) }] });
const pay = wrapFetchWithPayment(fetch, client);
const data = await (await pay("https://api.realtimeapi.ai/v1/predictiondata/calibration")).json();
console.log(data);
Python · x402
# pip install x402 eth-account requests
from eth_account import Account
from x402.clients.requests import x402_requests

session = x402_requests(Account.from_key(PRIVATE_KEY))
print(session.get("https://api.realtimeapi.ai/v1/predictiondata/calibration").json())
With an API key
curl "https://api.realtimeapi.ai/v1/predictiondata/calibration" -H "X-API-Key: $RTAPI_KEY"

Frequently asked questions

What data is provided?

Prediction market prices, implied probabilities, volumes, movers, resolutions, and history.

How is data derived?

From public Polygon chain data (Polymarket exchange contracts).

What are payment options?

Per request in USDC or using an API key.

Get a free key

1,000 calls a month across every feed. Who is setting it up?

No key needed at all: agents can pay per call in USDC with x402.