What each sport offers: leagues, ranges, features, colour keys
{
"baseball": {
"leagues": "custom, little league, milb, mlb, ncaa, nfhs, pony",
"displayRanges": 2,
"features": 10,
"colorKeys": 10,
"displayRanges (first 6)": "full, infield"
},
"basketball": {
"leagues": "custom, fiba, nba, nba g league, ncaa, nfhs, wnba",
"displayRanges": 49,
"features": 23,
"colorKeys": 26,
"displayRanges (first 6)": "full, in_bounds_only, in bounds only, offense, offence, offensivehalfcourt"
},
"curling": {
"leagues": "curling canada, custom, wcf",
"displayRanges": 4,
"features": 12,
"colorKeys": 14,
"displayRanges (first 6)": "full, in_bounds_only, in bounds only, house"
},
"football": {
"leagues": "cfl, custom, ncaa, nfhs11, nfhs6, nfhs8, nfhs9, nfl",
"displayRanges": 22,
"features": 21,
"colorKeys": 23,
"displayRanges (first 6)": "full, in_bounds_only, in bounds only, offense, offence, offensivehalffield"
},
"hockey": {
"leagues": "ahl, custom, echl, iihf, ncaa, nhl, nwhl, ohl, phf, pwhl, qmjhl, ushl",
"displayRanges": 21,
"features": 24,
"colorKeys": 25,
"displayRanges (first 6)": "full, in_bounds_only, in bounds only, offense, offence, defense"
},
"lacrosse": {
"leagues": "custom, ncaam, ncaaw, nll, pll, usam, usaw, world lacrosse",
"displayRanges": 13,
"features": 33,
"colorKeys": 35,
"displayRanges (first 6)": "full, in_bounds_only, in bounds only, offense, offence, offensivehalffield"
},
"soccer": {
"leagues": "custom, epl, fifa, mls, ncaa, nwsl",
"displayRanges": 13,
"features": 13,
"colorKeys": 15,
"displayRanges (first 6)": "full, in_bounds_only, in bounds only, offense, offence, offensivehalfpitch"
},
"tennis": {
"leagues": "atp, custom, ita, itf, ncaa, usta, wta",
"displayRanges": 22,
"features": 10,
"colorKeys": 13,
"displayRanges (first 6)": "full, in_bounds_only, in bounds only, serve, serving, servicehalf"
},
"volleyball": {
"leagues": "custom, fivb, ncaa, usa volleyball",
"displayRanges": 13,
"features": 10,
"colorKeys": 12,
"displayRanges (first 6)": "full, in_bounds_only, in bounds only, offense, offence, offensivehalfcourt"
}
}import { SPORTS, colorKeys, displayRanges, features, leagues } from "@sportsdataverse/sporty";
// The discovery tables are the same lists the option types are built from, so they never drift from the API.
Object.fromEntries(
SPORTS.map((sport) => [
sport,
{
leagues: leagues(sport).join(", "),
displayRanges: displayRanges(sport).length,
features: features(sport).length,
colorKeys: colorKeys(sport).length,
"displayRanges (first 6)": displayRanges(sport).slice(0, 6).join(", "),
},
]),
);
Tags: discovery · SPORTS · leagues · features · displayRanges · colorKeys. All sporty examples.