Historical Sports Odds API

API ID 15028

Opening and closing odds of 25+ bookmakers for NBA, NFL, MLB, NHL, ATP/WTA tennis and 30+ soccer leagues, graded results, arbitrage, value bets, line movement, Pinnacle player props and closing lines. History: current and two previous seasons.

API Documentation

Endpoints

Request
Lists every covered league (NBA, NFL, MLB, NHL, ATP, WTA and 30+ soccer leagues) with its key, the seasons available, the number of games per season and the first season your plan can read.
Endpoint ID: 39674
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39674/get+leagues+and+seasons
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
{
    "plan": "ZYLA",
    "leagues": [
        {
            "key": "NBA",
            "name": "NBA",
            "sport": "basketball",
            "country": "USA",
            "timezone": "America/New_York",
            "yourPlanFrom": "2024-2025",
            "seasons": [
                {
                    "season": "2026-2027",
                    "games": 258,
                    "firstDate": "2026-10-20",
                    "lastDate": "2026-11-23"
                },
                {
                    "season": "2025-2026",
                    "games": 1315,
                    "firstDate": "2025-10-21",
                    "lastDate": "2026-06-13"
                },
                {
                    "season": "2024-2025",
                    "games": 1314,
                    "firstDate": "2024-10-22",
                    "lastDate": "2025-06-22"
                },
                {
                    "season": "2023-2024",
                    "games": 1311,
                    "firstDate": "2023-10-24",
                    "lastDate": "2024-06-17"
                },
                {
                    "season": "2022-2023",
                    "games": 1320,
                    "firstDate": "2022-10-18",
                    "lastDate": "2023-06-12"
                }
            ]
        },
        {
            "key": "NFL",
            "name": "NFL",
            "sport": "american-football",
            "country": "USA",
            "timezone": "America/New_York",
            "yourPlanFrom": "2024-2025",
            "seasons": [
                {
                    "season": "2026-2027",
                    "games": 163,
                    "firstDate": "2026-09-09",
                    "lastDate": "2026-11-23"
                },
                {
                    "season": "2025-2026",
                    "games": 285,
                    "firstDate": "2025-09-04",
                    "lastDate": "2026-02-08"
                },
                {
                    "season": "2024-2025",
                    "games": 285,
                    "firstDate": "2024-09-05",
                    "lastDate": "2025-02-09"
                },
                {
                    "season": "2023-2024",
                    "games": 285,
                    "firstDate": "2023-09-07",
                    "lastDate": "2024-02-11"
                },
                {
                    "season": "2022-2023",
                    "games": 284,
                    "firstDate": "2022-09-08",
                    "lastDate": "2023-02-12"
                }
            ]
        },
        {
            "key": "MLB",
            "name": "MLB",
            "sport": "baseball",
            "country": "USA",
            "timezone": "America/New_York",
            "yourPlanFrom": "2024",
            "seasons": [
                {
                    "season": "2026",
                    "games": 2468,
                    "firstDate": "2026-03-25",
                    "lastDate": "2026-10-28"
                },
                {
                    "season": "2025",
                    "games": 2477,
                    "firstDate": "2025-03-18",
                    "lastDate": "2025-11-01"
                },
                {
                    "season": "2024",
                    "games": 2471,
                    "firstDate": "2024-03-20",
                    "lastDate": "2024-10-30"
                },
                {
                    "season": "2023",
                    "games": 2468,
                    "firstDate": "2023-03-30",
                    "lastDate": "2023-11-01"
                },
                {
                    "season": "2022",
                    "games": 2470,
                    "firstDate": "2022-04-07",
                    "lastDate": "2022-11-05"
                }
            ]
        },
        {
            "key": "NHL",
            "name": "NHL",
            "sport": "ice-hockey",
            "country": "USA",
            "timezone": "America/New_York",
            "yourPlanFrom": "2024-2025",
            "seasons": [
                {
                    "season": "2026-2027",
                    "games": 384,
                    "firstDate": "2026-09-29",
                    "lastDate": "2026-11-23"
                },
                {
                    "season": "2025-2026",
                    "games": 1394,
                    "firstDate": "2025-10-07",
                    "lastDate": "2026-06-14"
                },
                {
                    "season": "2024-2025",
                    "games": 1398,
                    "firstDate": "2024-10-04",
                    "lastDate": "2025-06-17"
                },
                {
                    "season": "2023-2024",
                    "games": 1399,
                    "firstDate": "2023-10-10",
                    "lastDate": "2024-06-24"
                },
                {
                    "season": "2022-2023",
                    "games": 1400,
                    "firstDate": "2022-10-07",
                    "lastDate": "2023-06-13"
                }
            ]
        },
        {
            "key": "EPL",
            "name": "Premier League",
            "sport": "football",
            "country": "England",
            "timezone": "Europe/London",
            "yourPlanFrom": "2024-2025",
            "seasons": [
                {
                    "season": "2026-2027",
                    "games": 110,
                    "firstDate": "2026-08-21",
                    "lastDate": "2026-11-23"
                },
                {
                    "season": "2025-2026",
                    "games": 380,
                    "firstDate": "2025-08-15",
                    "lastDate": "2026-05-24"
                },
                {
                    "season": "2024-2025",
                    "games": 380,
                    "firstDate": "2024-08-16",
                    "lastDate": "2025-05-25"
                },
                {
                    "season": "2023-2024",
                    "games": 380,
                    "firstDate": "2023-08-11",
                    "lastDate": "2024-05-19"
                },
                {
                    "season": "2022-2023",
                    "games": 380,
                    "firstDate": "2022-08-05",
                    "lastDate": "2023-05-28"
                }
            ]
        }
    ],
    "playerProps": {
        "leagues": [
            "NBA",
            "NFL",
            "NHL",
            "MLB",
            "WNBA"
        ],
        "historyFrom": "2026-10-24"
    }
}
Get Leagues and Seasons — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39674/get+leagues+and+seasons' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the games of a league by season, one day or a date range, with scores, the bookmakers' consensus opening and closing odds and every bet already graded. Filter by team or status; add every bookmaker's prices with include_odds.
Endpoint ID: 39675
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39675/get+games+with+odds
INPUT PARAMETERS

Get Games with Odds — Endpoint Features

Object Description
league Required League key, e.g. NBA, NFL, EPL, LALIGA, UCL, EREDIVISIE, MLS — 38 leagues, every key in GET /v1/leagues; common names work too ('Premier League', 'Liga MX')
season Optional Split seasons: 2025-2026, 2025/2026, 2025-26 or 2025; calendar leagues (MLB, ATP, WTA): 2025. With no season and no dates, the current or latest stored season
date Optional One day, YYYY-MM-DD, in the league's local time
date_from Optional First day, YYYY-MM-DD (local time)
date_to Optional Last day, YYYY-MM-DD (local time)
team Optional Team name or part of it, or a team ID
status Optional finished, scheduled, live or other
include_odds Optional Add every bookmaker's opening and latest prices
odds_format Optional decimal (1.91) or american (-110)
limit Optional (optional filter)
offset Optional offset (optional filter)
bookmakers Optional Comma-separated exact bookmaker names from /v1/bookmakers, case-insensitive (licences remain distinct). Omit for all. On raw games filters odds rows only; use include_odds=true. Whole-market consensus stays unchanged.
include_stats Optional Add match statistics of played games: soccer xG, shots, possession, corners, cards and every goal and card with its minute; NBA/NFL/MLB/NHL box-score team totals; tennis aces, serve and return points, duration. null where the source has none

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
season
date
date_from
date_to
team
status
include_odds
odds_format
limit
offset
bookmakers
include_stats
API EXAMPLE RESPONSE
JSON
{
    "league": "NBA",
    "plan": "ZYLA",
    "season": "2025-2026",
    "total": 1315,
    "count": 2,
    "limit": 2,
    "offset": 0,
    "games": [
        {
            "id": "rNKHJfD5",
            "league": "NBA",
            "sport": "basketball",
            "season": "2025-2026",
            "seasonType": "regular",
            "stage": null,
            "round": null,
            "startTime": "2025-10-21T23:30:00Z",
            "status": "finished",
            "statusDetail": "after overtime",
            "homeTeam": "Oklahoma City Thunder",
            "awayTeam": "Houston Rockets",
            "homeTeamId": "0fHFHEWD",
            "awayTeamId": "Sr9PQALP",
            "homeScore": 125,
            "awayScore": 124,
            "periods": [
                [
                    27
                ]
            ],
            "overtime": true,
            "winner": "home",
            "consensus": {
                "bookmakerCount": 23,
                "booksMoneyline": 21,
                "probHomeOpening": 0.692,
                "probHomeLast": 0.6869,
                "fairHomeOdds": 1.456,
                "fairAwayOdds": 3.194,
                "bestHomeOdds": 1.42,
                "bestAwayOdds": 3.45,
                "moveHomePts": -0.5,
                "marginMoneylinePct": 4.76,
                "bestHomeBookmaker": "1xBet",
                "bestAwayBookmaker": "Bet9ja",
                "edgeVsConsensusHomePct": -2.45,
                "edgeVsConsensusAwayPct": 8.01,
                "arbitrageMoneylinePct": 0.6,
                "spreadLine": -6.5,
                "spreadLineOpening": -7.5,
                "booksSpread": 11,
                "probSpreadHomeOpening": 0.5305,
                "probSpreadHomeLast": 0.5,
                "fairSpreadHomeOdds": 2,
                "fairSpreadAwayOdds": 2,
                "bestSpreadHomeOdds": 1.96,
                "bestSpreadAwayOdds": 1.96,
                "moveSpreadHomePts": -3.05,
                "bestSpreadHomeBookmaker": "1xBet",
                "bestSpreadAwayBookmaker": "1xBet",
                "edgeVsConsensusSpreadHomePct": -2,
                "edgeVsConsensusSpreadAwayPct": -2,
                "arbitrageSpreadPct": null,
                "totalLine": 225.5,
                "totalLineOpening": 227.5,
                "booksTotal": 11,
                "probOverOpening": 0.5,
                "probOverLast": 0.5105,
                "fairOverOdds": 1.959,
                "fairUnderOdds": 2.043,
                "bestOverOdds": 1.91,
                "bestUnderOdds": 2.11,
                "moveOverPts": 1.05,
                "bestOverBookmaker": "bet365",
                "bestUnderBookmaker": "1xBet",
                "edgeVsConsensusOverPct": -2.5,
                "edgeVsConsensusUnderPct": 3.56,
                "arbitrageTotalPct": 0.25
            },
            "settlement": {
                "homeMargin": 1,
                "totalPoints": 249,
                "moneylineResult": "home",
                "threeWayResult": "draw",
                "favorite": "home",
                "favoriteWon": true,
                "spreadLine": -6.5,
                "spreadResult": "away",
                "atsMargin": -5.5,
                "spreadLineOpening": -7.5,
                "spreadResultOpening": "away",
                "totalLine": 225.5,
                "totalResult": "over",
                "totalMargin": 23.5,
                "totalLineOpening": 227.5,
                "totalResultOpening": "over"
            },
            "oddsFormat": "decimal",
            "updatedAt": "2026-10-06T15:00:20Z"
        }
    ]
}
Get Games with Odds — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39675/get+games+with+odds?league=NBA&season=2025-2026&date=2026-04-10&date_from=2026-04-01&date_to=2026-04-07&team=Lakers&status=finished&include_odds=false&odds_format=decimal&limit=2&offset=Optionalbookmakers=bet365&include_stats=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns upcoming and live games of a league within the chosen number of hours, with the consensus odds and, on request, every bookmaker's opening and current prices.
Endpoint ID: 39676
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39676/get+upcoming+games
INPUT PARAMETERS

Get Upcoming Games — Endpoint Features

Object Description
league Required League key, e.g. NBA, NFL, EPL, LALIGA, UCL, EREDIVISIE, MLS — 38 leagues, every key in GET /v1/leagues; common names work too ('Premier League', 'Liga MX')
hours Optional How far ahead, in hours (default 7 days)
include_odds Optional Add every bookmaker's opening and latest prices
odds_format Optional decimal (1.91) or american (-110)
bookmakers Optional Comma-separated exact bookmaker names from /v1/bookmakers, case-insensitive (licences remain distinct). Omit for all. On raw games filters odds rows only; use include_odds=true. Whole-market consensus stays unchanged.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
hours
include_odds
odds_format
bookmakers
API EXAMPLE RESPONSE
JSON
{
    "league": "EPL",
    "plan": "ZYLA",
    "count": 10,
    "games": [
        {
            "id": "MuVKeqEE",
            "league": "EPL",
            "sport": "football",
            "season": "2026-2027",
            "seasonType": null,
            "stage": null,
            "round": null,
            "startTime": "2026-11-21T12:30:00Z",
            "status": "scheduled",
            "statusDetail": null,
            "homeTeam": "Manchester City",
            "awayTeam": "Fulham",
            "homeTeamId": "Wtn9Stg0",
            "awayTeamId": "69ZiU2Om",
            "homeScore": null,
            "awayScore": null,
            "halfTimeScore": null,
            "regularTimeScore": null,
            "extraTimeScore": null,
            "penaltiesScore": null,
            "winner": null,
            "redCardsHome": null,
            "redCardsAway": null,
            "consensus": {
                "bookmakerCount": 30,
                "books1x2": 27,
                "probHomeOpening": 0.669,
                "probHomeLast": 0.6752,
                "probDrawOpening": 0.1871,
                "probDrawLast": 0.1867,
                "probAwayOpening": 0.144,
                "probAwayLast": 0.138,
                "fairHomeOdds": 1.481,
                "fairDrawOdds": 5.355,
                "fairAwayOdds": 7.245,
                "bestHomeOdds": 1.45,
                "bestHomeOddsOpening": 1.46,
                "bestDrawOdds": 5.3,
                "bestDrawOddsOpening": 5.5,
                "bestAwayOdds": 7.8,
                "bestAwayOddsOpening": 8.2,
                "moveHomePts": 0.62,
                "moveAwayPts": -0.59,
                "margin1x2Pct": 6.51,
                "booksOver15": 24,
                "probOver15Opening": 0.8216,
                "probOver15Last": 0.8216,
                "fairOver15Odds": 1.217,
                "fairUnder15Odds": 5.605,
                "bestOver15Odds": 1.17,
                "bestUnder15Odds": 5.75,
                "moveOver15Pts": 0,
                "booksOver25": 24,
                "probOver25Opening": 0.6297,
                "probOver25Last": 0.6334,
                "fairOver25Odds": 1.579,
                "fairUnder25Odds": 2.728,
                "bestOver25Odds": 1.52,
                "bestUnder25Odds": 2.78,
                "moveOver25Pts": 0.37,
                "booksOver35": 25,
                "probOver35Opening": 0.4263,
                "probOver35Last": 0.4263,
                "fairOver35Odds": 2.346,
                "fairUnder35Odds": 1.743,
                "bestOver35Odds": 2.31,
                "bestUnder35Odds": 1.72,
                "moveOver35Pts": 0,
                "booksBtts": 22,
                "probBttsYesOpening": 0.5558,
                "probBttsYesLast": 0.5494,
                "fairBttsYesOdds": 1.82,
                "fairBttsNoOdds": 2.219,
                "bestBttsYesOdds": 1.72,
                "bestBttsNoOdds": 2.31,
                "moveBttsYesPts": -0.64,
                "ahLine": -1.5,
                "ahLineOpening": -1.5,
                "booksAh": 16,
                "probAhHomeOpening": 0.4593,
                "probAhHomeLast": 0.4638,
                "fairAhHomeOdds": 2.156,
                "fairAhAwayOdds": 1.865,
                "bestAhHomeOdds": 2.16,
                "bestAhAwayOdds": 1.81,
                "moveAhHomePts": 0.45
            },
            "settlement": null,
            "oddsFormat": "decimal",
            "updatedAt": "2026-11-16T23:22:22Z"
        }
    ]
}
Get Upcoming Games — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39676/get+upcoming+games?league=EPL&hours=168&include_odds=false&odds_format=decimal&bookmakers=bet365' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns one game by its ID with the score, the consensus odds and every bookmaker's opening and latest prices for each market, optionally with match statistics.
Endpoint ID: 39677
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39677/get+game+by+id
INPUT PARAMETERS

Get Game by ID — Endpoint Features

Object Description
include_odds Optional include_odds
odds_format Optional decimal (1.91) or american (-110)
bookmakers Optional Comma-separated exact bookmaker names from /v1/bookmakers, case-insensitive (licences remain distinct). Omit for all. On raw games filters odds rows only; use include_odds=true. Whole-market consensus stays unchanged.
include_stats Optional Add match statistics of played games: soccer xG, shots, possession, corners, cards and every goal and card with its minute; NBA/NFL/MLB/NHL box-score team totals; tennis aces, serve and return points, duration. null where the source has none
game_id Required

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

include_odds
odds_format
bookmakers
include_stats
API EXAMPLE RESPONSE
JSON
{
    "id": "rNKHJfD5",
    "league": "NBA",
    "sport": "basketball",
    "season": "2025-2026",
    "seasonType": "regular",
    "stage": null,
    "round": null,
    "startTime": "2025-10-21T23:30:00Z",
    "status": "finished",
    "statusDetail": "after overtime",
    "homeTeam": "Oklahoma City Thunder",
    "awayTeam": "Houston Rockets",
    "homeTeamId": "0fHFHEWD",
    "awayTeamId": "Sr9PQALP",
    "homeScore": 125,
    "awayScore": 124,
    "periods": [
        [
            27,
            30
        ],
        [
            24,
            27
        ]
    ],
    "overtime": true,
    "winner": "home",
    "consensus": {
        "bookmakerCount": 23,
        "booksMoneyline": 21,
        "probHomeOpening": 0.692,
        "probHomeLast": 0.6869,
        "fairHomeOdds": 1.456,
        "fairAwayOdds": 3.194,
        "bestHomeOdds": 1.42,
        "bestAwayOdds": 3.45,
        "moveHomePts": -0.5,
        "marginMoneylinePct": 4.76,
        "bestHomeBookmaker": "1xBet",
        "bestAwayBookmaker": "Bet9ja",
        "edgeVsConsensusHomePct": -2.45,
        "edgeVsConsensusAwayPct": 8.01,
        "arbitrageMoneylinePct": 0.6,
        "spreadLine": -6.5,
        "spreadLineOpening": -7.5,
        "booksSpread": 11,
        "probSpreadHomeOpening": 0.5305,
        "probSpreadHomeLast": 0.5,
        "fairSpreadHomeOdds": 2,
        "fairSpreadAwayOdds": 2,
        "bestSpreadHomeOdds": 1.96,
        "bestSpreadAwayOdds": 1.96,
        "moveSpreadHomePts": -3.05,
        "bestSpreadHomeBookmaker": "1xBet",
        "bestSpreadAwayBookmaker": "1xBet",
        "edgeVsConsensusSpreadHomePct": -2,
        "edgeVsConsensusSpreadAwayPct": -2,
        "arbitrageSpreadPct": null,
        "totalLine": 225.5,
        "totalLineOpening": 227.5,
        "booksTotal": 11,
        "probOverOpening": 0.5,
        "probOverLast": 0.5105,
        "fairOverOdds": 1.959,
        "fairUnderOdds": 2.043,
        "bestOverOdds": 1.91,
        "bestUnderOdds": 2.11,
        "moveOverPts": 1.05,
        "bestOverBookmaker": "bet365",
        "bestUnderBookmaker": "1xBet",
        "edgeVsConsensusOverPct": -2.5,
        "edgeVsConsensusUnderPct": 3.56,
        "arbitrageTotalPct": 0.25
    },
    "settlement": {
        "homeMargin": 1,
        "totalPoints": 249,
        "moneylineResult": "home",
        "threeWayResult": "draw",
        "favorite": "home",
        "favoriteWon": true,
        "spreadLine": -6.5,
        "spreadResult": "away",
        "atsMargin": -5.5,
        "spreadLineOpening": -7.5,
        "spreadResultOpening": "away",
        "totalLine": 225.5,
        "totalResult": "over",
        "totalMargin": 23.5,
        "totalLineOpening": 227.5,
        "totalResultOpening": "over"
    },
    "odds": {
        "moneyline": [
            {
                "bookmaker": "1xBet",
                "bookmakerId": 417,
                "opening1": 1.34,
                "opening2": 3.64,
                "last1": 1.42,
                "last2": 3.17,
                "active": true,
                "marginPct": 1.97
            },
            {
                "bookmaker": "7BetUK",
                "bookmakerId": 895,
                "opening1": 1.34,
                "opening2": 3.25,
                "last1": 1.37,
                "last2": 3.2,
                "active": true,
                "marginPct": 4.24
            }
        ],
        "spread": [
            {
                "bookmaker": "1xBet",
                "bookmakerId": 417,
                "line": -6.5,
                "openingHome": 1.81,
                "openingAway": 2.11,
                "lastHome": 1.96,
                "lastAway": 1.96,
                "active": true,
                "result": "away"
            },
            {
                "bookmaker": "7BetUK",
                "bookmakerId": 895,
                "line": -6.5,
                "openingHome": 1.8,
                "openingAway": 2.03,
                "lastHome": 1.9,
                "lastAway": 1.9,
                "active": true,
                "result": "away"
            }
        ],
        "total": [
            {
                "bookmaker": "1xBet",
                "bookmakerId": 417,
                "line": 227,
                "openingOver": 1.96,
                "openingUnder": 1.96,
                "lastOver": 1.96,
                "lastUnder": 1.96,
                "active": true,
                "result": "over"
            },
            {
                "bookmaker": "7BetUK",
                "bookmakerId": 895,
                "line": 226,
                "openingOver": 1.83,
                "openingUnder": 2,
                "lastOver": 1.9,
                "lastUnder": 1.9,
                "active": true,
                "result": "over"
            }
        ]
    },
    "oddsFormat": "decimal",
    "updatedAt": "2026-10-06T15:00:20Z"
}
Get Game by ID — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39677/get+game+by+id?include_odds=true&odds_format=decimal&bookmakers=bet365&include_stats=false&game_id=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns compact scores and statuses of all games of one league on one local day, without odds, optionally with match statistics such as shots, possession or box scores.
Endpoint ID: 39678
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39678/get+scores+by+day
INPUT PARAMETERS

Get Scores by Day — Endpoint Features

Object Description
league Required League key, e.g. NBA, NFL, EPL, LALIGA, UCL, EREDIVISIE, MLS — 38 leagues, every key in GET /v1/leagues; common names work too ('Premier League', 'Liga MX')
date Optional YYYY-MM-DD in the league's local time; default today. Results refresh hourly, not a live-score feed.
limit Optional limit (optional filter)
offset Optional offset (optional filter)
include_stats Optional Add match statistics of played games: soccer xG, shots, possession, corners, cards and every goal and card with its minute; NBA/NFL/MLB/NHL box-score team totals; tennis aces, serve and return points, duration. null where the source has none

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
date
limit
offset
include_stats
API EXAMPLE RESPONSE
JSON
{
    "league": "NBA",
    "date": "2026-11-15",
    "plan": "ZYLA",
    "total": 9,
    "count": 9,
    "limit": 100,
    "offset": 0,
    "dataAsOf": "2026-11-17T01:23:07Z",
    "scoresStale": false,
    "note": "Available results refresh hourly. Soccer homeScore/awayScore can include extra time; use regularTimeScore for 90 minutes. This is not a real-time score feed.",
    "scores": [
        {
            "id": "GSuexZ7c",
            "league": "NBA",
            "sport": "basketball",
            "season": "2026-2027",
            "startTime": "2026-11-15T18:00:00Z",
            "status": "finished",
            "statusDetail": null,
            "homeTeam": "Philadelphia 76ers",
            "awayTeam": "Indiana Pacers",
            "updatedAt": "2026-11-15T20:40:28Z",
            "homeScore": 131,
            "awayScore": 124,
            "overtime": false
        },
        {
            "id": "lfg2zDxA",
            "league": "NBA",
            "sport": "basketball",
            "season": "2026-2027",
            "startTime": "2026-11-15T21:00:00Z",
            "status": "finished",
            "statusDetail": null,
            "homeTeam": "Phoenix Suns",
            "awayTeam": "Los Angeles Lakers",
            "updatedAt": "2026-11-16T00:00:17Z",
            "homeScore": 123,
            "awayScore": 131,
            "overtime": false
        },
        {
            "id": "dKdAYj7M",
            "league": "NBA",
            "sport": "basketball",
            "season": "2026-2027",
            "startTime": "2026-11-15T21:30:00Z",
            "status": "finished",
            "statusDetail": null,
            "homeTeam": "Los Angeles Clippers",
            "awayTeam": "Charlotte Hornets",
            "updatedAt": "2026-11-16T00:00:17Z",
            "homeScore": 113,
            "awayScore": 105,
            "overtime": false
        },
        {
            "id": "hjrtTUUq",
            "league": "NBA",
            "sport": "basketball",
            "season": "2026-2027",
            "startTime": "2026-11-15T22:00:00Z",
            "status": "finished",
            "statusDetail": null,
            "homeTeam": "Utah Jazz",
            "awayTeam": "San Antonio Spurs",
            "updatedAt": "2026-11-16T00:40:20Z",
            "homeScore": 102,
            "awayScore": 110,
            "overtime": false
        },
        {
            "id": "0GolR8ad",
            "league": "NBA",
            "sport": "basketball",
            "season": "2026-2027",
            "startTime": "2026-11-15T23:00:00Z",
            "status": "finished",
            "statusDetail": "after overtime",
            "homeTeam": "Toronto Raptors",
            "awayTeam": "New York Knicks",
            "updatedAt": "2026-11-16T02:21:48Z",
            "homeScore": 108,
            "awayScore": 112,
            "overtime": true
        }
    ]
}
Get Scores by Day — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39678/get+scores+by+day?league=NBA&date=2026-11-15&limit=100&offset=Optionalinclude_stats=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Finds arbitrage opportunities (surebets) on the coming games: prices at different bookmakers that guarantee a profit whatever the result, with the stake share for each leg.
Endpoint ID: 39679
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39679/get+arbitrage+bets
INPUT PARAMETERS

Get Arbitrage Bets — Endpoint Features

Object Description
league Optional League key (NBA, EPL, MLS … — see GET /v1/leagues); empty = every league
hours Optional Games starting within this many hours
min_profit Optional Minimum guaranteed profit, % of the total stake
odds_format Optional decimal (1.91) or american (-110)

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
hours
min_profit
odds_format
API EXAMPLE RESPONSE
JSON
{
    "plan": "ZYLA",
    "count": 3,
    "found": 3,
    "dataAsOf": "2026-11-17T01:28:06Z",
    "note": "Stake each leg in proportion to stakePct; prices move fast — check them at the bookmaker first. Games more than ~3 days away (hoursToStart > 72) are early markets: bigger gaps between bookmakers, often corrected within hours.",
    "opportunities": [
        {
            "gameId": "6T4Ogza3",
            "league": "ATP",
            "startTime": "2026-11-17T19:30:00Z",
            "hoursToStart": 17.4,
            "homeTeam": "Zverev A.",
            "awayTeam": "Shelton B.",
            "updatedAt": "2026-11-17T02:01:29Z",
            "market": "total",
            "line": 30.5,
            "profitPct": 1.24,
            "impliedPct": 98.77,
            "legs": [
                {
                    "outcome": "over",
                    "bookmaker": "Superbet.pl",
                    "odds": 2.62,
                    "stakePct": 38.64
                },
                {
                    "outcome": "under",
                    "bookmaker": "Betclic.pl",
                    "odds": 1.65,
                    "stakePct": 61.36
                }
            ]
        },
        {
            "gameId": "6T4Ogza3",
            "league": "ATP",
            "startTime": "2026-11-17T19:30:00Z",
            "hoursToStart": 17.4,
            "homeTeam": "Zverev A.",
            "awayTeam": "Shelton B.",
            "updatedAt": "2026-11-17T02:01:29Z",
            "market": "handicap",
            "line": -3.5,
            "profitPct": 0.7,
            "impliedPct": 99.31,
            "legs": [
                {
                    "outcome": "home",
                    "bookmaker": "Betway",
                    "odds": 3.8,
                    "stakePct": 26.5
                },
                {
                    "outcome": "away",
                    "bookmaker": "Betano.ca (Ontario)",
                    "odds": 1.37,
                    "stakePct": 73.5
                }
            ]
        },
        {
            "gameId": "WGJ5gR4K",
            "league": "ATP",
            "startTime": "2026-11-17T13:00:00Z",
            "hoursToStart": 10.9,
            "homeTeam": "Fils A.",
            "awayTeam": "Jodar R.",
            "updatedAt": "2026-11-17T02:01:29Z",
            "market": "total",
            "line": 21.5,
            "profitPct": 0.18,
            "impliedPct": 99.82,
            "legs": [
                {
                    "outcome": "over",
                    "bookmaker": "Ladbrokes",
                    "odds": 1.65,
                    "stakePct": 60.71
                },
                {
                    "outcome": "under",
                    "bookmaker": "STS.pl",
                    "odds": 2.55,
                    "stakePct": 39.29
                }
            ]
        }
    ]
}
Get Arbitrage Bets — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39679/get+arbitrage+bets?league=ATP&hours=168&min_profit=Optionalodds_format=decimal' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Finds prices above the market's fair (no-vig) probability on the coming games, with the edge in percent, the fair odds and a Kelly stake suggestion.
Endpoint ID: 39680
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39680/get+value+bets
INPUT PARAMETERS

Get Value Bets — Endpoint Features

Object Description
league Optional League key (NBA, EPL, MLS … — see GET /v1/leagues); empty = every league
hours Optional Games starting within this many hours
min_edge Optional Minimum edge over the fair price, %
max_odds Optional Highest decimal price considered
odds_format Optional decimal (1.91) or american (-110)

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
hours
min_edge
max_odds
odds_format
API EXAMPLE RESPONSE
JSON
{
    "plan": "ZYLA",
    "count": 3,
    "found": 3,
    "dataAsOf": "2026-11-17T02:01:24Z",
    "note": "Fair price = median no-vig probability of the OTHER bookmakers; edge = price x fair probability - 1. On quarter lines (±0.25, ±0.75) edge and Kelly are approximate (half wins and half losses).",
    "valueBets": [
        {
            "gameId": "G82JXY6M",
            "league": "BRASILEIRAO",
            "startTime": "2026-11-18T23:00:00Z",
            "hoursToStart": 44.9,
            "homeTeam": "Remo",
            "awayTeam": "Chapecoense-SC",
            "updatedAt": "2026-11-17T02:00:56Z",
            "market": "threeWay",
            "line": null,
            "outcome": "away",
            "bookmaker": "bet365",
            "odds": 5.5,
            "fairOdds": 5.249,
            "fairProb": 0.1905,
            "edgePct": 4.78,
            "kellyPct": 1.06,
            "consensusBookmakers": 25,
            "bookmakersWithValue": 1,
            "alsoAt": []
        },
        {
            "gameId": "zySpJZiT",
            "league": "BRASILEIRAO",
            "startTime": "2026-11-18T23:30:00Z",
            "hoursToStart": 45.4,
            "homeTeam": "Cruzeiro",
            "awayTeam": "Palmeiras",
            "updatedAt": "2026-11-17T02:00:58Z",
            "market": "total",
            "line": 1.5,
            "outcome": "under",
            "bookmaker": "bet365",
            "odds": 4.33,
            "fairOdds": 4.197,
            "fairProb": 0.2383,
            "edgePct": 3.18,
            "kellyPct": 0.95,
            "consensusBookmakers": 23,
            "bookmakersWithValue": 1,
            "alsoAt": []
        },
        {
            "gameId": "G82JXY6M",
            "league": "BRASILEIRAO",
            "startTime": "2026-11-18T23:00:00Z",
            "hoursToStart": 44.9,
            "homeTeam": "Remo",
            "awayTeam": "Chapecoense-SC",
            "updatedAt": "2026-11-17T02:00:56Z",
            "market": "total",
            "line": 1.5,
            "outcome": "under",
            "bookmaker": "Skybet",
            "odds": 5,
            "fairOdds": 4.846,
            "fairProb": 0.2063,
            "edgePct": 3.17,
            "kellyPct": 0.79,
            "consensusBookmakers": 23,
            "bookmakersWithValue": 2,
            "alsoAt": [
                {
                    "bookmaker": "bet365",
                    "odds": 5,
                    "edgePct": 3.17
                }
            ]
        }
    ]
}
Get Value Bets — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39680/get+value+bets?league=BRASILEIRAO&hours=72&min_edge=3&max_odds=10&odds_format=decimal' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Lists the teams of a league with their stable team IDs and the number of games in the database, to filter other endpoints by team.
Endpoint ID: 39681
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39681/get+teams
INPUT PARAMETERS

Get Teams — Endpoint Features

Object Description
league Required League key, e.g. NBA, NFL, EPL, LALIGA, UCL, EREDIVISIE, MLS — 38 leagues, every key in GET /v1/leagues; common names work too ('Premier League', 'Liga MX')

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
API EXAMPLE RESPONSE
JSON
{
    "league": "NBA",
    "count": 30,
    "teams": [
        {
            "team": "Atlanta Hawks",
            "teamId": "xAO4gBas",
            "games": 105
        },
        {
            "team": "Boston Celtics",
            "teamId": "KYD9hVEm",
            "games": 106
        },
        {
            "team": "Brooklyn Nets",
            "teamId": "bsAMUpDO",
            "games": 98
        },
        {
            "team": "Charlotte Hornets",
            "teamId": "xftMikUg",
            "games": 100
        },
        {
            "team": "Chicago Bulls",
            "teamId": "bPjc49q0",
            "games": 99
        }
    ]
}
Get Teams — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39681/get+teams?league=NBA' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Lists the bookmakers that price the coming games of a league, with how many games each one covers, to filter odds by bookmaker.
Endpoint ID: 39682
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39682/get+bookmakers
INPUT PARAMETERS

Get Bookmakers — Endpoint Features

Object Description
league Required League key, e.g. NBA, NFL, EPL, LALIGA, UCL, EREDIVISIE, MLS — 38 leagues, every key in GET /v1/leagues; common names work too ('Premier League', 'Liga MX')

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
API EXAMPLE RESPONSE
JSON
{
    "league": "EPL",
    "comingGames": 10,
    "count": 30,
    "bookmakers": [
        {
            "bookmaker": "1xBet",
            "games": 10
        },
        {
            "bookmaker": "7BetUK",
            "games": 10
        },
        {
            "bookmaker": "Bet9ja",
            "games": 10
        },
        {
            "bookmaker": "BetMGM.uk",
            "games": 10
        },
        {
            "bookmaker": "BetMGM.us",
            "games": 10
        }
    ]
}
Get Bookmakers — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39682/get+bookmakers?league=EPL' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Odds comparison for the coming games: the best available price of every outcome, the bookmaker offering it and the no-vig fair probability.
Endpoint ID: 39683
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39683/get+best+odds
INPUT PARAMETERS

Get Best Odds — Endpoint Features

Object Description
league Required League key, e.g. NBA, NFL, EPL, LALIGA, UCL, EREDIVISIE, MLS — 38 leagues, every key in GET /v1/leagues; common names work too ('Premier League', 'Liga MX')
hours Optional Games starting within this many hours
odds_format Optional decimal (1.91) or american (-110)
bookmakers Optional Comma-separated exact names from /v1/bookmakers (case-insensitive). Restricts price candidates; fair odds still use the other trusted books in the full market. Omit for all.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
hours
odds_format
bookmakers
API EXAMPLE RESPONSE
JSON
{
    "league": "NBA",
    "plan": "ZYLA",
    "count": 14,
    "dataAsOf": "2026-11-17T02:00:49Z",
    "games": [
        {
            "gameId": "QDqzfbZa",
            "league": "NBA",
            "startTime": "2026-11-18T00:30:00Z",
            "hoursToStart": 22.4,
            "homeTeam": "Toronto Raptors",
            "awayTeam": "New York Knicks",
            "updatedAt": "2026-11-17T02:00:35Z",
            "markets": [
                {
                    "market": "winner",
                    "line": null,
                    "bookmakers": 23,
                    "outcomes": [
                        {
                            "outcome": "home",
                            "bestOdds": 2.32,
                            "bookmaker": "Fanduel",
                            "fairOdds": 2.364,
                            "edgePct": -1.85
                        },
                        {
                            "outcome": "away",
                            "bestOdds": 1.67,
                            "bookmaker": "Betway",
                            "fairOdds": 1.733,
                            "edgePct": -3.65
                        }
                    ]
                },
                {
                    "market": "handicap",
                    "line": 3.5,
                    "bookmakers": 11,
                    "outcomes": [
                        {
                            "outcome": "home",
                            "bestOdds": 1.89,
                            "bookmaker": "bet365",
                            "fairOdds": 1.959,
                            "edgePct": -3.52
                        },
                        {
                            "outcome": "away",
                            "bestOdds": 1.98,
                            "bookmaker": "Expektdk",
                            "fairOdds": 2.043,
                            "edgePct": -3.07
                        }
                    ]
                },
                {
                    "market": "total",
                    "line": 216.5,
                    "bookmakers": 10,
                    "outcomes": [
                        {
                            "outcome": "over",
                            "bestOdds": 1.93,
                            "bookmaker": "bet365",
                            "fairOdds": 2,
                            "edgePct": -3.5
                        },
                        {
                            "outcome": "under",
                            "bestOdds": 1.91,
                            "bookmaker": "bwin",
                            "fairOdds": 1.984,
                            "edgePct": -3.75
                        }
                    ]
                }
            ]
        },
        {
            "gameId": "bRsrhx4C",
            "league": "NBA",
            "startTime": "2026-11-18T01:00:00Z",
            "hoursToStart": 22.9,
            "homeTeam": "San Antonio Spurs",
            "awayTeam": "Detroit Pistons",
            "updatedAt": "2026-11-17T02:00:37Z",
            "markets": [
                {
                    "market": "winner",
                    "line": null,
                    "bookmakers": 20,
                    "outcomes": [
                        {
                            "outcome": "home",
                            "bestOdds": 1.31,
                            "bookmaker": "1xBet",
                            "fairOdds": 1.337,
                            "edgePct": -2.01
                        },
                        {
                            "outcome": "away",
                            "bestOdds": 3.9,
                            "bookmaker": "Fanduel",
                            "fairOdds": 3.969,
                            "edgePct": -1.73
                        }
                    ]
                },
                {
                    "market": "handicap",
                    "line": -8.5,
                    "bookmakers": 11,
                    "outcomes": [
                        {
                            "outcome": "home",
                            "bestOdds": 1.95,
                            "bookmaker": "Superbet.pl",
                            "fairOdds": 2,
                            "edgePct": -2.5
                        },
                        {
                            "outcome": "away",
                            "bestOdds": 1.92,
                            "bookmaker": "bet365",
                            "fairOdds": 2,
                            "edgePct": -4
                        }
                    ]
                },
                {
                    "market": "total",
                    "line": 220.5,
                    "bookmakers": 9,
                    "outcomes": [
                        {
                            "outcome": "over",
                            "bestOdds": 1.9,
                            "bookmaker": "Betano.ca (Ontario)",
                            "fairOdds": 1.966,
                            "edgePct": -3.38
                        },
                        {
                            "outcome": "under",
                            "bestOdds": 1.95,
                            "bookmaker": "bwin",
                            "fairOdds": 2.027,
                            "edgePct": -3.79
                        }
                    ]
                }
            ]
        },
        {
            "gameId": "prtjjGYO",
            "league": "NBA",
            "startTime": "2026-11-18T01:00:00Z",
            "hoursToStart": 22.9,
            "homeTeam": "Minnesota Timberwolves",
            "awayTeam": "Portland Trail Blazers",
            "updatedAt": "2026-11-17T01:00:23Z",
            "markets": []
        }
    ]
}
Get Best Odds — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39683/get+best+odds?league=NBA&hours=48&odds_format=decimal&bookmakers=bet365' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Lists coming games whose market moved most since the opening, measured as the change of the no-vig home win probability across bookmakers (steam moves).
Endpoint ID: 39684
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39684/get+line+movement
INPUT PARAMETERS

Get Line Movement — Endpoint Features

Object Description
league Optional League key (NBA, EPL, MLS … — see GET /v1/leagues); empty = every league
hours Optional Games starting within this many hours
min_move Optional Minimum move of the home win probability, percentage points

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
hours
min_move
API EXAMPLE RESPONSE
JSON
{
    "plan": "ZYLA",
    "count": 1,
    "found": 1,
    "note": "movePts = change of the no-vig home win probability from the opening to now (median of ~25 bookmakers).",
    "games": [
        {
            "gameId": "dUkphanA",
            "league": "NFL",
            "startTime": "2026-11-20T01:15:00Z",
            "hoursToStart": 71.1,
            "homeTeam": "Houston Texans",
            "awayTeam": "Indianapolis Colts",
            "updatedAt": "2026-11-17T02:00:46Z",
            "homeWinProbOpening": 0.7975,
            "homeWinProbNow": 0.8321,
            "movePts": 3.46,
            "towards": "home",
            "bookmakers": 22,
            "spreadLineOpening": -9.5,
            "spreadLineNow": -11.5,
            "totalLineOpening": 43.5,
            "totalLineNow": 44.5
        }
    ]
}
Get Line Movement — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39684/get+line+movement?league=NFL&hours=72&min_move=3' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns one flat row per finished game of a season: opening and closing probabilities, spread and total, the final score and every bet result, ready for backtesting.
Endpoint ID: 39685
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39685/get+closing+lines
INPUT PARAMETERS

Get Closing Lines — Endpoint Features

Object Description
league Required League key, e.g. NBA, NFL, EPL, LALIGA, UCL, EREDIVISIE, MLS — 38 leagues, every key in GET /v1/leagues; common names work too ('Premier League', 'Liga MX')
season Required Split seasons: 2025-2026, 2025/2026, 2025-26 or 2025; calendar leagues (MLB, ATP, WTA): 2025. Invalid labels return 400; a valid season with no stored rows is empty
limit Optional (optional filter)
offset Optional offset (optional filter)
format Optional json, or csv: the same rows as a CSV file that opens in Excel, Google Sheets or pandas. The page totals are in the response headers X-Total-Count and X-Next-Offset
header Optional format=csv: false leaves out the column names, to append the next pages to one file
empty_header Optional format=csv: true includes the league's column names on an empty page when header=true; by default empty pages have an empty body

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
season
limit
offset
format
header
empty_header
API EXAMPLE RESPONSE
JSON
{
    "league": "EPL",
    "season": "2025-2026",
    "plan": "ZYLA",
    "total": 380,
    "count": 2,
    "limit": 2,
    "offset": 0,
    "rows": [
        {
            "gameId": "jqWq8sIi",
            "date": "2025-08-15",
            "startTime": "2025-08-15T19:00:00Z",
            "homeTeam": "Liverpool",
            "awayTeam": "Bournemouth",
            "homeScore": 4,
            "awayScore": 2,
            "bookmakers": 24,
            "homeWinProbOpening": 0.7036,
            "homeWinProbClosing": 0.7269,
            "drawProbClosing": 0.1596,
            "over25ProbClosing": 0.6897,
            "ahLineOpening": -1.5,
            "ahLineClosing": -1.5,
            "result1x2": "home",
            "favoriteWon": true,
            "overUnder": {
                "1.5": "over",
                "2.5": "over",
                "3.5": "over"
            },
            "btts": "yes",
            "ahResult": "home"
        },
        {
            "gameId": "CbKh6Ln4",
            "date": "2025-08-16",
            "startTime": "2025-08-16T11:30:00Z",
            "homeTeam": "Aston Villa",
            "awayTeam": "Newcastle",
            "homeScore": 0,
            "awayScore": 0,
            "bookmakers": 24,
            "homeWinProbOpening": 0.3823,
            "homeWinProbClosing": 0.3991,
            "drawProbClosing": 0.2753,
            "over25ProbClosing": 0.5308,
            "ahLineOpening": 0,
            "ahLineClosing": -0.25,
            "result1x2": "draw",
            "favoriteWon": false,
            "overUnder": {
                "1.5": "under",
                "2.5": "under",
                "3.5": "under"
            },
            "btts": "no",
            "ahResult": "away-half"
        }
    ]
}
Get Closing Lines — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39685/get+closing+lines?league=EPL&season=2025-2026&limit=2&offset=Optionalformat=json&header=true&empty_header=false' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns current Pinnacle player props (points, rebounds, assists, shots on goal and more) with the line, both prices, the no-vig fair probability and the opening line.
Endpoint ID: 39686
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39686/get+player+props
INPUT PARAMETERS

Get Player Props — Endpoint Features

Object Description
league Optional NBA, NFL, NHL, MLB, WNBA, NCAAF or NCAAB; empty = every league
player Optional Player name or part of it (accents ignored)
stat Optional Stat or part of it: Points, Rebounds, Receiving Yards, Shots On Goal …
game_id Optional Pinnacle game ID (gameId of a prop)
hours Optional Games starting within this many hours
moved Optional Only props whose line moved since the opening
odds_format Optional decimal (1.91) or american (-110)
limit Optional (optional filter)
offset Optional Games to skip

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
player
stat
game_id
hours
moved
odds_format
limit
offset
API EXAMPLE RESPONSE
JSON
{
    "plan": "ZYLA",
    "dataAsOf": "2026-11-17T02:06:44Z",
    "totalGames": 1,
    "games": 1,
    "count": 40,
    "props": [
        {
            "propId": 1640567903,
            "gameId": 1640286862,
            "league": "NBA",
            "startTime": "2026-11-17T02:10:00Z",
            "hoursToStart": 0,
            "homeTeam": "Denver Nuggets",
            "awayTeam": "Phoenix Suns",
            "player": "Aaron Gordon",
            "stat": "Points",
            "line": 14.5,
            "overOdds": 2.58,
            "underOdds": 1.465,
            "overFairProb": 0.3622,
            "underFairProb": 0.6378,
            "marginPct": 7.01,
            "maxStake": 250,
            "openingLine": 14.5,
            "openingOverOdds": 2.02,
            "openingUnderOdds": 1.741,
            "lineMove": 0,
            "openedAt": "2026-11-16T15:08:28Z",
            "oddsFormat": "decimal"
        },
        {
            "propId": 1640567906,
            "gameId": 1640286862,
            "league": "NBA",
            "startTime": "2026-11-17T02:10:00Z",
            "hoursToStart": 0,
            "homeTeam": "Denver Nuggets",
            "awayTeam": "Phoenix Suns",
            "player": "Aaron Gordon",
            "stat": "Rebounds",
            "line": 5.5,
            "overOdds": 2.28,
            "underOdds": 1.581,
            "overFairProb": 0.4095,
            "underFairProb": 0.5905,
            "marginPct": 7.09,
            "maxStake": 250,
            "openingLine": 5.5,
            "openingOverOdds": 2.28,
            "openingUnderOdds": 1.581,
            "lineMove": 0,
            "openedAt": "2026-11-16T15:08:28Z",
            "oddsFormat": "decimal"
        },
        {
            "propId": 1640568011,
            "gameId": 1640286862,
            "league": "NBA",
            "startTime": "2026-11-17T02:10:00Z",
            "hoursToStart": 0,
            "homeTeam": "Denver Nuggets",
            "awayTeam": "Phoenix Suns",
            "player": "Aaron Gordon",
            "stat": "Threes Made",
            "line": 1.5,
            "overOdds": 2.1,
            "underOdds": 1.685,
            "overFairProb": 0.4452,
            "underFairProb": 0.5548,
            "marginPct": 6.97,
            "maxStake": 250,
            "openingLine": 1.5,
            "openingOverOdds": 2.1,
            "openingUnderOdds": 1.685,
            "lineMove": 0,
            "openedAt": "2026-11-16T15:08:28Z",
            "oddsFormat": "decimal"
        },
        {
            "propId": 1640567912,
            "gameId": 1640286862,
            "league": "NBA",
            "startTime": "2026-11-17T02:10:00Z",
            "hoursToStart": 0,
            "homeTeam": "Denver Nuggets",
            "awayTeam": "Phoenix Suns",
            "player": "Cameron Johnson",
            "stat": "Points",
            "line": 12.5,
            "overOdds": 1.84,
            "underOdds": 1.901,
            "overFairProb": 0.5081,
            "underFairProb": 0.4919,
            "marginPct": 6.94,
            "maxStake": 250,
            "openingLine": 12.5,
            "openingOverOdds": 1.893,
            "openingUnderOdds": 1.847,
            "lineMove": 0,
            "openedAt": "2026-11-16T15:08:28Z",
            "oddsFormat": "decimal"
        },
        {
            "propId": 1640567915,
            "gameId": 1640286862,
            "league": "NBA",
            "startTime": "2026-11-17T02:10:00Z",
            "hoursToStart": 0,
            "homeTeam": "Denver Nuggets",
            "awayTeam": "Phoenix Suns",
            "player": "Cameron Johnson",
            "stat": "Rebounds",
            "line": 3.5,
            "overOdds": 1.794,
            "underOdds": 1.952,
            "overFairProb": 0.5212,
            "underFairProb": 0.4788,
            "marginPct": 6.97,
            "maxStake": 250,
            "openingLine": 3.5,
            "openingOverOdds": 1.685,
            "openingUnderOdds": 2.1,
            "lineMove": 0,
            "openedAt": "2026-11-16T15:08:28Z",
            "oddsFormat": "decimal"
        }
    ]
}
Get Player Props — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39686/get+player+props?league=NBA&hours=72&moved=false&odds_format=decimal&limit=3&offset=Optional' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the graded Pinnacle player props of one day: opening and closing line, prices, fair probability, the player's actual stat and the result.
Endpoint ID: 39687
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39687/get+player+props+history
INPUT PARAMETERS

Get Player Props History — Endpoint Features

Object Description
date Required Game day, YYYY-MM-DD (US Eastern), from 2026-10-24
league Optional NBA, NFL, NHL, MLB, WNBA, NCAAF or NCAAB; empty = every league
player Optional Player name or part of it (accents ignored)
stat Optional Stat or part of it: Points, Rebounds, Receiving Yards, Shots On Goal …
graded_only Optional Only props with a result (over, under, push)
odds_format Optional decimal (1.91) or american (-110)
limit Optional (optional filter)
offset Optional Games to skip

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

date
league
player
stat
graded_only
odds_format
limit
offset
API EXAMPLE RESPONSE
JSON
{
    "date": "2026-11-15",
    "plan": "ZYLA",
    "totalGames": 9,
    "games": 3,
    "count": 108,
    "props": [
        {
            "propId": 1640536709,
            "gameId": 1640243543,
            "date": "2026-11-15",
            "league": "NBA",
            "startTime": "2026-11-15T18:10:00Z",
            "homeTeam": "Philadelphia 76ers",
            "awayTeam": "Indiana Pacers",
            "player": "Aaron Nesmith",
            "stat": "Points",
            "openingLine": 13.5,
            "openingOverOdds": 2.02,
            "openingUnderOdds": 1.735,
            "openedAt": "2026-11-15T14:25:41Z",
            "closingLine": 13.5,
            "closingOverOdds": 1.962,
            "closingUnderOdds": 1.781,
            "closingOverFairProb": 0.4759,
            "closingUnderFairProb": 0.5241,
            "marginPct": 7.12,
            "maxStake": 250,
            "lastChangeAt": "2026-11-15T17:08:00Z",
            "withdrawnAt": null,
            "result": "under",
            "actual": 12,
            "gradeNote": "Points: points = 12, line 13.5",
            "oddsFormat": "decimal"
        },
        {
            "propId": 1640536706,
            "gameId": 1640243543,
            "date": "2026-11-15",
            "league": "NBA",
            "startTime": "2026-11-15T18:10:00Z",
            "homeTeam": "Philadelphia 76ers",
            "awayTeam": "Indiana Pacers",
            "player": "Aaron Nesmith",
            "stat": "Threes Made",
            "openingLine": 2.5,
            "openingOverOdds": 2.58,
            "openingUnderOdds": 1.465,
            "openedAt": "2026-11-15T14:25:41Z",
            "closingLine": 2.5,
            "closingOverOdds": 2.58,
            "closingUnderOdds": 1.465,
            "closingOverFairProb": 0.3622,
            "closingUnderFairProb": 0.6378,
            "marginPct": 7.01,
            "maxStake": 250,
            "lastChangeAt": "2026-11-15T14:25:41Z",
            "withdrawnAt": null,
            "result": "under",
            "actual": 0,
            "gradeNote": "Threes Made: threePointFieldGoalsMade = 0, line 2.5",
            "oddsFormat": "decimal"
        },
        {
            "propId": 1640536715,
            "gameId": 1640243543,
            "date": "2026-11-15",
            "league": "NBA",
            "startTime": "2026-11-15T18:10:00Z",
            "homeTeam": "Philadelphia 76ers",
            "awayTeam": "Indiana Pacers",
            "player": "Andrew Nembhard",
            "stat": "Assists",
            "openingLine": 7.5,
            "openingOverOdds": 2.01,
            "openingUnderOdds": 1.752,
            "openedAt": "2026-11-15T14:25:41Z",
            "closingLine": 7.5,
            "closingOverOdds": 2.09,
            "closingUnderOdds": 1.69,
            "closingOverFairProb": 0.447,
            "closingUnderFairProb": 0.553,
            "marginPct": 7.03,
            "maxStake": 250,
            "lastChangeAt": "2026-11-15T14:58:20Z",
            "withdrawnAt": null,
            "result": "ungraded",
            "actual": null,
            "gradeNote": "player not found or ambiguous within the game teams",
            "oddsFormat": "decimal"
        }
    ]
}
Get Player Props History — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39687/get+player+props+history?date=2026-11-15&league=NBA&graded_only=false&odds_format=decimal&limit=3&offset=Optional' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns Pinnacle's recorded opening and closing moneyline, main spread and main total for every game of one day, with no-vig probabilities, for closing line value (CLV) analysis.
Endpoint ID: 39688
GET https://zylalabs.com/api/15028/historical+sports+odds+api/39688/get+pinnacle+closing+lines
INPUT PARAMETERS

Get Pinnacle Closing Lines — Endpoint Features

Object Description
league Optional League as Pinnacle names it, or part of it: NBA, NFL, Premier League, Champions League …
team Optional Team or player, or part of it
odds_format Optional decimal (1.91) or american (-110)
limit Optional (optional filter)
offset Optional Games to skip
date Required Latest recorded scheduled-start day, YYYY-MM-DD (UTC), from 2026-10-22
sport Optional Soccer, Basketball, Hockey, Football, Baseball, Tennis, MMA or Esports

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
team
odds_format
limit
offset
date
sport
API EXAMPLE RESPONSE
JSON
{
    "date": "2026-11-15",
    "plan": "ZYLA",
    "totalGames": 11,
    "count": 2,
    "observation": {
        "opening": "first_observed_in_available_recordings",
        "closing": "last_observed_before_cutoff",
        "availability": "not_certified_by_change_only_recordings",
        "recordedSince": "2026-10-22",
        "period": 0
    },
    "games": [
        {
            "gameId": 1640137740,
            "sport": "Basketball",
            "league": "NBA",
            "startTime": "2026-11-15T00:10:00Z",
            "homeTeam": "New Orleans Pelicans",
            "awayTeam": "Denver Nuggets",
            "country": "USA",
            "status": "started",
            "closingCutoffAt": "2026-11-15T00:10:00Z",
            "closingCutoffReason": "scheduledStart",
            "moneyline": {
                "opening": {
                    "home": 5.14,
                    "away": 1.185,
                    "homeFairProb": 0.1873,
                    "awayFairProb": 0.8127,
                    "at": "2026-11-14T06:20:21Z",
                    "maxStake": 1500
                },
                "closing": {
                    "home": 5.78,
                    "away": 1.173,
                    "homeFairProb": 0.1687,
                    "awayFairProb": 0.8313,
                    "at": "2026-11-14T23:56:13Z",
                    "maxStake": 12000
                }
            },
            "spread": {
                "opening": {
                    "line": 11.5,
                    "home": 1.962,
                    "away": 1.926,
                    "homeFairProb": 0.4954,
                    "awayFairProb": 0.5046,
                    "at": "2026-11-14T06:20:21Z",
                    "maxStake": 3000
                },
                "closing": {
                    "line": 12.5,
                    "home": 1.935,
                    "away": 1.971,
                    "homeFairProb": 0.5046,
                    "awayFairProb": 0.4954,
                    "at": "2026-11-14T23:56:13Z",
                    "maxStake": 20000
                }
            },
            "total": {
                "opening": {
                    "line": 234.5,
                    "over": 1.935,
                    "under": 1.935,
                    "overFairProb": 0.5,
                    "underFairProb": 0.5,
                    "at": "2026-11-14T06:20:21Z",
                    "maxStake": 1500
                },
                "closing": {
                    "line": 236.5,
                    "over": 1.971,
                    "under": 1.917,
                    "overFairProb": 0.4931,
                    "underFairProb": 0.5069,
                    "at": "2026-11-14T23:56:13Z",
                    "maxStake": 7500
                }
            },
            "oddsFormat": "decimal"
        },
        {
            "gameId": 1640243540,
            "sport": "Basketball",
            "league": "NBA",
            "startTime": "2026-11-15T00:40:00Z",
            "homeTeam": "Cleveland Cavaliers",
            "awayTeam": "Dallas Mavericks",
            "country": "USA",
            "status": "pending",
            "closingCutoffAt": "2026-11-15T00:40:00Z",
            "closingCutoffReason": "scheduledStart",
            "moneyline": {
                "opening": {
                    "home": 1.735,
                    "away": 2.21,
                    "homeFairProb": 0.5602,
                    "awayFairProb": 0.4398,
                    "at": "2026-11-14T06:20:21Z",
                    "maxStake": 1500
                },
                "closing": {
                    "home": 3.87,
                    "away": 1.307,
                    "homeFairProb": 0.2524,
                    "awayFairProb": 0.7476,
                    "at": "2026-11-15T00:29:20Z",
                    "maxStake": 12000
                }
            },
            "spread": {
                "opening": {
                    "line": -2.5,
                    "home": 1.943,
                    "away": 1.943,
                    "homeFairProb": 0.5,
                    "awayFairProb": 0.5,
                    "at": "2026-11-14T06:20:21Z",
                    "maxStake": 3000
                },
                "closing": {
                    "line": 8,
                    "home": 1.99,
                    "away": 1.917,
                    "homeFairProb": 0.4907,
                    "awayFairProb": 0.5093,
                    "at": "2026-11-15T00:29:20Z",
                    "maxStake": 20000
                }
            },
            "total": {
                "opening": {
                    "line": 232,
                    "over": 1.935,
                    "under": 1.935,
                    "overFairProb": 0.5,
                    "underFairProb": 0.5,
                    "at": "2026-11-14T06:20:21Z",
                    "maxStake": 1500
                },
                "closing": {
                    "line": 227.5,
                    "over": 1.862,
                    "under": 1.99,
                    "overFairProb": 0.5166,
                    "underFairProb": 0.4834,
                    "at": "2026-11-15T00:29:20Z",
                    "maxStake": 7500
                }
            },
            "oddsFormat": "decimal"
        }
    ]
}
Get Pinnacle Closing Lines — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15028/historical+sports+odds+api/39688/get+pinnacle+closing+lines?league=NBA&odds_format=decimal&limit=2&offset=Optionaldate=2026-11-15' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Historical Sports Odds API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

No long-term commitment. Upgrade, downgrade, or cancel anytime.

(Save 2 months with annual billing 🎉)

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

Opening and closing odds of 25+ bookmakers for NBA, NFL, MLB, NHL, ATP/WTA tennis and 30+ soccer leagues, graded results, arbitrage, value bets, line movement, Pinnacle player props and closing lines. History: current and two previous seasons.

Historical Sports Odds API FAQs

NBA, NFL, MLB, NHL, WNBA, NCAA, ATP and WTA tennis and 30+ soccer leagues including the Premier League, LaLiga, Serie A, Bundesliga, Ligue 1 and the Champions League. The Get Leagues and Seasons endpoint lists every league with its seasons and game counts.

Every plan returns the current season and the two previous ones, up to 100 games per request, with scores, opening and closing odds and every bet already graded.

Public pre-match prices of 25+ bookmakers per game. Probabilities are the no-vig consensus: each bookmaker's margin is removed and the median across bookmakers is taken. Pinnacle lines and player props come from our own recordings of Pinnacle's feed every 2 minutes.

Current-season results and odds every hour; games of the next three days every 20 minutes; Pinnacle closing lines and graded player props every morning for the previous day.

An arbitrage is a set of prices at different bookmakers that guarantees a profit whatever the result, with the stake for each side. A value bet is a price above the no-vig consensus probability, with the edge in percent.

Each endpoint returns specific data related to sports betting, including game odds, scores, team information, bookmaker details, and player props. For example, the "Get Games with Odds" endpoint provides scores, opening and closing odds, and bet results for games in a selected league and season.

Key fields vary by endpoint but generally include game IDs, team names, scores, odds from various bookmakers, and betting outcomes. For instance, the "Get Game by ID" endpoint includes fields like "homeScore," "awayScore," and "consensus" odds.

Parameters vary by endpoint and may include league, season, date range, team, and status filters. For example, the "Get Upcoming Games" endpoint allows filtering by the number of hours until the game starts and whether to include all bookmakers' prices.

Response data is structured in JSON format, with hierarchical organization. For example, the "Get Games with Odds" endpoint returns a main object containing league information, total games, and an array of game objects, each detailing specific game attributes.

Data is sourced from over 25 bookmakers, providing public pre-match prices and consensus probabilities. The Pinnacle player props and lines are recorded from Pinnacle's feed, ensuring a comprehensive and accurate representation of betting markets.

Typical use cases include analyzing betting odds for arbitrage opportunities, tracking line movements, and evaluating player performance through props. Users can leverage this data for informed betting strategies and market analysis.

Users can analyze the odds and scores to identify trends, compare bookmaker offerings, and assess betting opportunities. For instance, using the "Get Best Odds" endpoint allows users to find the best available prices for outcomes across different bookmakers.

Data accuracy is maintained through regular updates and quality checks, including cross-referencing odds from multiple bookmakers and ensuring consistency in recorded player props. This helps provide reliable information for users making betting decisions.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs