Skip to main content
Each example is a complete page. Save it as an .html file and open it in a browser.

Single market

market.html

Thread

thread.html

Custom cards without an iframe

This page fetches live markets from the public API, renders its own cards, and gives each outcome a “Predict on X” button that uses the deep-link endpoint.
custom-cards.html
The page sets textContent rather than innerHTML, so market titles are never interpreted as HTML.

Next steps

Market and thread iframes

Attributes, sandboxing and events

JavaScript examples

A reusable API client