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

# API Reference

> Interactive API documentation for all PolyRouter endpoints

<Note>
  **Open Beta:** PolyRouter is free and open to everyone. Rate limit: 100 requests per minute. Questions? Message **@fieldviolence** on X!
</Note>

## Authentication

All endpoints require an API key in the `X-API-Key` header:

```bash theme={null}
curl "https://api-v2.polyrouter.io/markets" \
  -H "X-API-Key: 5fa709a5-0634-44c3-a991-57166d3c376d"
```

<Note>
  [Get your free API key](https://polyrouter.io) - takes 30 seconds.
</Note>

**Base URL:** `https://api-v2.polyrouter.io`

## Sports API

Unified sports betting with standardized game IDs across 5+ platforms.

<CardGroup cols={2}>
  <Card title="League Info" icon="info-circle" href="/api-reference/sports/get-league-info">
    Team mappings and league metadata
  </Card>

  <Card title="List Games" icon="list" href="/api-reference/sports/list-games">
    Find available games with IDs
  </Card>

  <Card title="Game Markets" icon="football" href="/api-reference/sports/get-game-by-id">
    Betting markets from 5+ platforms
  </Card>

  <Card title="Awards" icon="trophy" href="/api-reference/sports/list-awards">
    MVP, championship odds
  </Card>

  <Card title="Futures" icon="chart-line" href="/api-reference/sports/list-futures">
    Season futures markets
  </Card>
</CardGroup>

## Markets API

Real-time prediction market data with direct platform integration.

<CardGroup cols={2}>
  <Card title="Markets" icon="chart-line" href="/api-reference/markets/list-markets">
    Browse and filter markets
  </Card>

  <Card title="Events" icon="calendar" href="/api-reference/events/list-events">
    Prediction market events
  </Card>

  <Card title="Series" icon="layer-group" href="/api-reference/series/list-series">
    Recurring market series
  </Card>

  <Card title="Trades" icon="receipt" href="/api-reference/trades/get-trades-for-a-market">
    Historical trade data
  </Card>

  <Card title="Orderbook" icon="book" href="/api-reference/markets/get-market-orderbook">
    Real-time order books
  </Card>

  <Card title="Platforms" icon="server" href="/api-reference/platforms/list-platforms">
    Platform information
  </Card>
</CardGroup>

## Need Help?

<CardGroup cols={2}>
  <Card title="Join Discord" icon="discord" href="https://discord.gg/fyagg92CVM">
    Community support
  </Card>

  <Card title="Follow on X" icon="x-twitter" href="https://x.com/polyrouter">
    Latest updates
  </Card>
</CardGroup>
