---
title: "Upcoming NBA matches with predictions"
method: GET
path: "/v1/predictions/nba/upcoming"
tags: ["predictions"]
---

# Upcoming NBA matches with predictions

`GET /v1/predictions/nba/upcoming`

## Request

- Base URL: `https://api.predixsport.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.predixsport.com/v1/predictions/nba/upcoming`
- Auth: none declared

Returns matches whose scheduled date falls in the inclusive window ``[today, today + days]``. The filter is a SQL ``BETWEEN`` against ``daily_predictions.prediction_date`` — equivalent to ``prediction_date >= today AND prediction_date <= today + days``. ``today`` is the server's current UTC date at request time. A match scheduled for today itself is included. Returns ``{matches: [], count: 0}`` (HTTP 200) when no rows fall in the window — typically because the season has ended or the inference pipeline has not produced predictions for upcoming dates yet. Use ``/v1/predictions/nba/search`` to query historical matches.

## Query parameters

- `limit` integer
- `days` integer: Look-ahead horizon in days. Defines the upper bound of the inclusive window ``[today, today + days]``. Default 7, max 60.

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- NBAUpcomingResponse
  - `matches` NBAUpcomingMatch[], required
    - `match_id` string, required
    - `sport` 'nba'
    - `prediction_date` string, date, required
    - `season` integer, required
    - `home_team` TeamStats, required: Win-side projection for an NBA team.
      - `name` string, required
      - `win_probability` number, nullable: Probability of this team winning, in [0, 1]. Null when the winner classifier has not been run for this match yet.
    - `away_team` TeamStats, required: Win-side projection for an NBA team.
      - `name` string, required
      - `win_probability` number, nullable: Probability of this team winning, in [0, 1]. Null when the winner classifier has not been run for this match yet.
    - `predicted_point_diff` number, nullable: Expected (home_points - away_points). Positive = home favoured. Source: dedicated Poisson spread regressor (independent of the winner classifier behind home_team.win_probability).
  - `count` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/predixsport/apis/predixsport-api.md) · [All operations](https://skmtc.dev/predixsport/apis/predixsport-api/llms.txt) · [OpenAPI document](https://skmtc.dev/predixsport/apis/predixsport-api/revisions/02014aee733d?raw)
