PredictionMarketDataAPI
api.realtimeapi.ai/v1/predictiondata/markets/top/history
PredictionMarketDataAPI: Price history as OHLC bars (Pro). OHLC bars per outcome in micro-USD with volume (taker side, micro-USD) and trade counts. interval 1m covers the last 90 days, 1h and 1d the full history. Bars are immutable once closed; the resolution is a separate field so a backtest cannot see the outcome early. Refreshes every 60 seconds.
GET
https://api.realtimeapi.ai/v1/predictiondata/markets/top/historyUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.realtimeapi.ai/v1/predictiondata/markets/top/history");
console.log(await res.json());Example input
{}More from PredictionMarketDataAPIProvider status
- api.realtimeapi.ai/v1/predictiondata/marketsPredictionMarketDataAPI: Search and list markets. Markets with their latest implied probability, 24 hour volume and status, busiest first. Filter by text, category or status; sort by volume, new or recent. By default only markets with at least $1,000 of volume in 24 hours are listed; set min_volume_usd=0 to see everything. Refreshes every 5 minutes.0.005
- api.realtimeapi.ai/v1/predictiondata/markets/topPredictionMarketDataAPI: One market with every outcome. Every outcome's last traded price (micro-USD) and implied probability (basis points), 24 hour volume and trades, status and resolution. market_id is a condition id, an outcome token id, or 'top' for the busiest live market. Refreshes every 15 seconds.0.01
- api.realtimeapi.ai/v1/predictiondata/markets/top/consensusPredictionMarketDataAPI: Cross-venue consensus. The real-money probability for one question (volume weighted across real-money venues) with any matched play-money venues shown beside it and not weighted in. Today the real-money side is the on-chain Polymarket price only; play-money matching arrives with the Manifold integration. Refreshes every 60 seconds.0.02
- api.realtimeapi.ai/v1/predictiondata/moversPredictionMarketDataAPI: Biggest probability moves. Open markets whose headline probability moved most over the window, among markets with at least $1,000 of volume in 24 hours. Refreshes every 5 minutes.0.01
