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 freeGlobal bet ledger, newest first, with id/time cursors.
Also accepts `userId`, `username`, `contractId` (repeatable) and `contractSlug` to scope the ledger; forwarded verbatim.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
limit | query | int | optional | Rows to return (server maximum varies by route; 1000 on listings, 100 on ledgers). example: 5 |
before | query | str | optional | Bet id that anchors backward pagination (returns bets older than it). example: RhLsIR2AnycR |
after | query | str | optional | Bet id that anchors forward pagination (returns bets newer than it). example: RhLsIR2AnycR |
beforeTime | query | int | optional | Only rows created before this UNIX-millisecond timestamp. example: 1795000000000 |
afterTime | query | int | optional | Only 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"