> ## Documentation Index
> Fetch the complete documentation index at: https://platform.trendlinelabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# TrendlineLabs API

> Prediction-market data from every venue, one API: REST for reads and history, a WebSocket stream for live books and trades.

Events, markets, prices, order books, price history and trades across **Polymarket, Kalshi, Limitless and
predict.fun**, each answer carrying its own freshness signal. One market id (`universal_id`) follows the
same market across every venue.

> **[Quickstart](/guides/getting-started)**
>
> Get a key and make your first request in a few minutes.

> **[REST API](/guides/finding-markets)**
>
> Events, markets, order books, candles and trades; the REST API tab lets you try any endpoint.

> **[WebSocket stream](/stream/overview)**
>
> Live books, prices and trades pushed as they change.

> **[Rate limits](/guides/rate-limits)**
>
> Your plan's limits and the headers that track them.

## REST or stream?

| | REST API | WebSocket stream |
| - | - | - |
| Use it for | one-off reads, history (candles), polling | every change as it happens |
| Address | `https://systems.trendlinelabs.ai/public/v1/…` | `wss://live.trendlinelabs.ai/public/v1/stream` |
| Data | events, markets, books, prices, candles, trades | books, prices, trades |
| Auth | `Authorization: Bearer tl_live_…` on each request | the same header once, at the handshake |

Access is free and granted on request: see [Get a key](/guides/getting-started#1-get-a-key).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.