Get all leagues
GET
/api/tennis/leagueEvery tennis league available, paginated — feed a league's id into Get competitions by league id to see its competitions.
Query Params
pageintegerperPageintegerTry Get all leagues with live data
Run this request in the Sportbex trial panel and see the real response.
curl -X GET 'http://xx.xx.xx.xx/api/tennis/league?page=1&perPage=10'Example response
The real API responds in this shape — but the values below are a fixed example and may be stale. This is here to show what the output looks like, not to reflect current data.
{
"page": 1,
"perPage": 10,
"data": [
{
"id": "tl-9001",
"name": "ATP Tour"
},
{
"id": "tl-9002",
"name": "WTA Tour"
}
]
}