Skip to main content

GET /api/v1/leagues/active-counts

Get the number of currently active events per league. Useful for displaying event counts next to league filters in the UI.

Authentication​

None -- Public endpoint.

Request​

No parameters required.

Example​

curl https://api.intotes.com/api/v1/leagues/active-counts

Response​

200 OK​

{
"football": 5,
"basketball": 3,
"hockey": 2,
"tennis": 1,
"crypto": 12,
"politics": 4
}

Each key is a league/category slug and the value is the count of active events. Only leagues with at least one active event are included.