StatsHub Docs
APIEndpoint referenceBasketball

/basketball/events/by-date

The guard is `if (!startOfDay && !endOfDay)` — an and, not an or — so supplying just one of the two passes validation and the missing one becomes NaN in the where clause, which is a 500.

GET
/api/basketball/events/by-date

The guard is if (!startOfDay && !endOfDay) — an and, not an or — so supplying just one of the two passes validation and the missing one becomes NaN in the where clause, which is a 500. Both the guard and the NaN are kept; see httpx.JSNumber.

An empty day is a 404 carrying data: [], so a client reading .data unconditionally still finds an array.

Query Parameters

endOfDay?string
startOfDay?string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/basketball/events/by-date"
{  "data": [    "string"  ]}