GET /bets

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/manifold/betsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Global bet ledger, newest first, with id/time cursors.

Also accepts `userId`, `username`, `contractId` (repeatable) and `contractSlug` to scope the ledger; forwarded verbatim.

Parameters

nameintypedescription
limitqueryintoptionalRows to return (server maximum varies by route; 1000 on listings, 100 on ledgers).
example: 5
beforequerystroptionalBet id that anchors backward pagination (returns bets older than it).
example: RhLsIR2AnycR
afterquerystroptionalBet id that anchors forward pagination (returns bets newer than it).
example: RhLsIR2AnycR
beforeTimequeryintoptionalOnly rows created before this UNIX-millisecond timestamp.
example: 1795000000000
afterTimequeryintoptionalOnly rows created after this UNIX-millisecond timestamp.
example: 1794900000000

Response

type: array
pagination: none
sample: {
  "[0]": "empty"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/manifold/bets?limit=5&before=RhLsIR2AnycR&after=RhLsIR2AnycR&beforeTime=1795000000000&afterTime=1794900000000"