StatsHub Docs
APIEndpoint referenceBasketball

/basketball/team/{id}/upcoming-events

Despite the name it returns every fixture the team has, past and future, newest first — there is no filter on the timestamp.

GET
/api/basketball/team/{id}/upcoming-events

Despite the name it returns every fixture the team has, past and future, newest first — there is no filter on the timestamp. Paginated.

The row count is a second statement rather than a COUNT(*) OVER() on the first. That keeps the count correct for a page past the end of the results, where a window function would return no rows and therefore no count.

Path Parameters

id*string

Query Parameters

limit?integer
Formatint64
page?integer
Formatint64

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/basketball/team/string/upcoming-events"
{  "data": [    "string"  ],  "pagination": {    "property1": null,    "property2": null  }}