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 freeAll markets, newest first, with sort, order and id pagination.
Optional filters `userId` (creator) and `groupId` (topic) are accepted and 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 |
sort | query | strcreated-time | updated-time | last-bet-time | last-comment-time | optional | Listing order key. default: created-timeexample: last-bet-time |
order | query | strasc | desc | optional | Sort direction. default: descexample: desc |
before | query | str | optional | Market 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"