↑ ↓ move · Enter open · Esc close

Get started / Quickstart
1

Get your API key

Create a free key or copy your existing key below. Store it securely and send it with each request.

2

Make your first request

Set up your environment

Store your key in an environment variable - never hardcode it in source.

.envshell
PREDICTION_HUNT_API_KEY=your_api_key_here
PREDICTION_HUNT_API_URL=https://prediction.com/api/v2

Existing integrations using https://www.predictionhunt.com/api/v2 remain supported with the same API keys and authentication.

Fetch active prediction market events

The /v2/events endpoint returns live events matched across all platforms - Kalshi, Polymarket, Polymarket US, PredictIt, ProphetX, Opinion, Predict.fun, and Novig.

curlpythonjavascript
curl -H "X-API-Key: $PREDICTION_HUNT_API_KEY" \
  "$PREDICTION_HUNT_API_URL/events?limit=5"

Explore the response

Each event includes groups by default. Each group's platform_count tells you how many platforms carry that market. Paginate with next_cursor.

GET /v2/events?limit=5 - 200 OK200 OK
{
"events": [
{
"id": 123,
"event_name": "2028 Presidential Election Winner",
"event_type": "politics",
"event_date": "2028-11-07",
"status": "active",
"groups": [{
"group_id": 456, "title": "Election winner",
"platform_count": 3, "platforms": ["kalshi", "polymarket", "predictit"],
"market_class": null, "market_type": null
}]
}
],
"next_cursor": "eyJpZCI6MTIzfQ==",
"total_count": 1847
}

Sports: ask for spreads and props

The /v2/matching-markets/sports endpoint returns game moneylines only by default. Pass types to add spreads, totals, and player props (or types=all for every class).

curlpythonjavascript
curl -H "X-API-Key: $PREDICTION_HUNT_API_KEY" \
  "$PREDICTION_HUNT_API_URL/matching-markets/sports?sport=nfl&types=spread,total,player_prop"

Every group carries market_class (moneyline, spread, total, player_prop, other) and groups from the same game share an event_id, so you can reassemble a game from the flat list.

3

Try more endpoints