get_active_sports_leagues
sx.betReturns every currently available sport and active league on https://sx.bet, including league IDs and event counts by market group. Use it to discover league IDs before filtering active fixtures.
Playground
Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.
What is get_active_sports_leagues?
Returns every currently available sport and active league on https://sx.bet, including league IDs and event counts by market group. Use it to discover league IDs before filtering active fixtures. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — call it with no parameters and get the result back without maintaining a scraper.
Response
{
"sports": [
{
"name": "<string>",
"slug": "<string>",
"leagues": [
{
"label": "<string>",
"sportId": 0,
"leagueId": 0,
"eventCount": 0,
"popularity": 0,
"eventsByType": {}
}
],
"sportId": 0,
"eventCount": 0,
"leagueCount": 0
}
],
"eventCount": 0,
"sportCount": 0,
"leagueCount": 0
}Call it
curl --location 'https://us-prod.notte.cc/functions/f379153d-4d26-4c16-bd9d-690ec8959581/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "f379153d-4d26-4c16-bd9d-690ec8959581",
"variables": {}
}'Ask an agent
Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.
Use the Anything API MCP server (https://anything.notte.cc/mcp). Call run(function_id="f379153d-4d26-4c16-bd9d-690ec8959581") — the "get_active_sports_leagues" function, which returns every currently available sport and active league on https://sx.bet, including league IDs and event counts by market group. Use it to discover league IDs before filtering active fixtures.. It takes no parameters. Return the result as structured JSON.