Skip to content

HivePredict is now in English

We picked this from your browser settings. You can switch any time from the bottom of every page.

Or choose another language

Example Scripts

Example Scripts

A few starting points. Everything below works without any credentials.

List Open Crypto Markets (curl)

curl -s "https://hivepredict.app/api/markets/open?category=crypto&limit=5" \
  | jq '.markets[] | {id, title, pool: .totalPool}'

Live Pools for a Market (Node.js)

const id = 'auto-btc-2026-07-12';
const res = await fetch('https://hivepredict.app/api/markets/' + id);
const market = await res.json();

const total = Number(market.totalPool);
for (const [outcome, pool] of Object.entries(market.outcomePools)) {
  const share = total > 0 ? (100 * Number(pool)) / total : 0;
  console.log(outcome, pool + ' ' + market.token, share.toFixed(1) + '%');
}

A User's Recent Predictions (Node.js)

const res = await fetch('https://hivepredict.app/api/users/beggars/predictions?limit=10');
const { predictions } = await res.json();

for (const p of predictions) {
  console.log(p.marketId, p.outcome, p.amount + ' ' + p.token, p.status);
}

Discover Every Endpoint

curl -s https://hivepredict.app/api/public | jq '.endpoints[] | .path'

Building Something?

If you ship a bot, dashboard or integration on this API, post about it on Hive and mention @hivepredict. To show live markets inside a blog post, see the Embed button on any market page.