V1 Lines

Get moneyline price history for a line

get/api/v1/lines/{id}/moneyline

Request

  • Base URL
    https://therundown.io
  • Auth
    API key in header X-TheRundown-Key

Path parameters

idstring required

Line ID (line_id), not an event ID. Find it in a V1 event response at lines.{affiliate_id}.line_id, or with include=all_periods at line_periods.{affiliate_id}.{period}.moneyline.line_id (every period of a sportsbook's line shares the same line ID). Each line ID belongs to one sportsbook.

Query parameters

include'all_periods'

Without include, only the pregame full-game price history is returned. With include=all_periods, rows are grouped by period (period_full_game, halves, quarters/periods) and in-play rows are returned under period_live_full_game (live full game, halves, and quarters/periods together; tell them apart by period_id and period_description). Live rows require a subscription with live odds access. Each period returns at most the newest 1,000 rows with no pagination; for full in-play history use GET /api/v2/events/{eventID}/markets/history?market_ids=41,42,43,96 with from/to and limit up to 5000.

Response

Moneylines

Example response

{
  "moneylines": [
    {
      "moneyline_away": 150,
      "moneyline_home": -180,
      "format": "American"
    }
  ]
}

Changes

No recorded changes to this operation across all 15 revisions of this API.