Pull live prediction market consensus directly into Google Sheets — auto-refresh on open, with sport filtering and divergence highlighting.
Connect Google Sheets to Meridian Edge to access real-time prediction market consensus from 25+ regulated sources. Use Apps Script to fetch and display live probabilities directly in your spreadsheet.
Google account only — no install needed, uses Apps Scriptconst API_KEY = "me_live_YOUR_KEY";
const SPORT = "NBA";
function fetchConsensus() {
const url = `https://meridianedge.io/api/v1/consensus?sport=${SPORT}&limit=20`;
const res = UrlFetchApp.fetch(url, {
headers: {"X-API-Key": API_KEY},
muteHttpExceptions: true
});
const data = JSON.parse(res.getContentText());
const events = data.events || [];
const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
sheet.clearContents();
sheet.appendRow(["Event", "Consensus %", "Divergence %", "Markets", "Updated"]);
const now = new Date().toLocaleString();
events.forEach(e => {
sheet.appendRow([
e.title,
(e.consensus_prob * 100).toFixed(1) + "%",
((e.divergence_pct || 0) * 100).toFixed(1) + "%",
e.market_count || "",
now
]);
});
}
// Auto-run on spreadsheet open
function onOpen() { fetchConsensus(); }Paste the Apps Script into your Google Sheets, add your API key, and get live prediction market data auto-populated on open.
View Plans → API Reference