GET /search-markets

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

Search or filter markets with the browse-page ranking options.

Also accepts `contractType` (ALL/BINARY/MULTIPLE_CHOICE/…), `topicSlug`, `creatorId` and `beforeTime`, all forwarded verbatim.

Parameters

nameintypedescription
termquerystrrequiredSearch text (may be empty to browse with filters only).
example: bitcoin
sortquerystr
most-popular | newest | score | daily-score | freshness-score | 24-hour-vol | liquidity | subsidy | last-updated | close-date | start-time | resolve-date | random | bounty-amount | prob-descending | prob-ascending
optionalSearch ranking preset.
default: most-popular
example: most-popular
filterquerystr
all | open | closed | resolved | news | closing-90-days | closing-week | closing-month | closing-day
optionalClosing-state filter.
default: all
example: open
limitqueryintoptionalRows to return (server maximum varies by route; 1000 on listings, 100 on ledgers).
example: 5
offsetqueryintoptionalRows to skip from the newest end.
example: 0

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/search-markets?term=bitcoin&sort=most-popular&filter=open&limit=5&offset=0"