MOLTLAYS API Documentation

Real-time sportsbook odds API

Endpoint

GET /api/odds

Description

This endpoint provides real-time odds from multiple sportsbooks across various sports. Data is cached for 10 minutes and auto-refreshes to minimize API calls.

Response Format

[
  {
    "id": "string",
    "sport_key": "string",
    "sport_title": "string",
    "commence_time": "ISO 8601 datetime",
    "home_team": "string",
    "away_team": "string",
    "bookmakers": [
      {
        "key": "string",
        "title": "string",
        "markets": [
          {
            "key": "h2h",
            "outcomes": [
              {
                "name": "string",
                "price": number
              }
            ]
          }
        ]
      }
    ]
  }
]

Live API Response

Loading...

Example Usage

fetch('/api/odds')
  .then(res => res.json())
  .then(data => {
    console.log('Games:', data.length)
    data.forEach(game => {
      console.log(`${game.away_team} vs ${game.home_team}`)
    })
  })