GET /markets

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

All markets, newest first, with sort, order and id pagination.

Optional filters `userId` (creator) and `groupId` (topic) are accepted and forwarded verbatim.

Parameters

nameintypedescription
limitqueryintoptionalRows to return (server maximum varies by route; 1000 on listings, 100 on ledgers).
example: 5
sortquerystr
created-time | updated-time | last-bet-time | last-comment-time
optionalListing order key.
default: created-time
example: last-bet-time
orderquerystr
asc | desc
optionalSort direction.
default: desc
example: desc
beforequerystroptionalMarket id before which the listing starts (backward pagination).
example: INPLL9csg9

Response

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

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/markets?limit=5&sort=last-bet-time&order=desc&before=INPLL9csg9"