constants

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatsBaseUrl = "https://stats.nba.com/stats/"
	LiveBaseUrl  = "https://cdn.nba.com/static/json/liveData/"
)
View Source
var (
	PlayerCareerStatsPath = "playercareerstats"
	IstStandingsPath      = "iststandings"
	LeagueStandingsPath   = "leaguestandings"
	ScheduleLeagueV2Path  = "scheduleleaguev2"
)

stats api

View Source
var (
	ScoreBoardPath = "scoreboard"
	BoxScorePath   = "boxscore"
	PlayByPlayPath = "playbyplay"
)

live api

View Source
var (
	PlayerCareerStatsRecordHeaders = []string{
		"PLAYER_ID",
		"SEASON_ID",
		"LEAGUE_ID",
		"TEAM_ID",
		"TEAM_ABBREVIATION",
		"PLAYER_AGE",
		"GP",
		"GS",
		"MIN",
		"FGM",
		"FGA",
		"FG_PCT",
		"FG3M",
		"FG3A",
		"FG3_PCT",
		"FTM",
		"FTA",
		"FT_PCT",
		"OREB",
		"DREB",
		"REB",
		"AST",
		"STL",
		"BLK",
		"TOV",
		"PF",
		"PTS",
	}

	PlayerCollegeSeasonStatsRecordHeaders = []string{
		"PLAYER_ID",
		"SEASON_ID",
		"LEAGUE_ID",
		"ORGANIZATION_ID",
		"SCHOOL_NAME",
		"PLAYER_AGE",
		"GP",
		"GS",
		"MIN",
		"FGM",
		"FGA",
		"FG_PCT",
		"FG3M",
		"FG3A",
		"FG3_PCT",
		"FTM",
		"FTA",
		"FT_PCT",
		"OREB",
		"DREB",
		"REB",
		"AST",
		"STL",
		"BLK",
		"TOV",
		"PF",
		"PTS",
	}

	PlayerCollegeCareerStatsRecordHeaders = []string{
		"PLAYER_ID",
		"LEAGUE_ID",
		"ORGANIZATION_ID",
		"GP",
		"GS",
		"MIN",
		"FGM",
		"FGA",
		"FG_PCT",
		"FG3M",
		"FG3A",
		"FG3_PCT",
		"FTM",
		"FTA",
		"FT_PCT",
		"OREB",
		"DREB",
		"REB",
		"AST",
		"STL",
		"BLK",
		"TOV",
		"PF",
		"PTS",
	}

	SeasonRankingsRecordHeaders = []string{
		"PLAYER_ID",
		"SEASON_ID",
		"LEAGUE_ID",
		"TEAM_ID",
		"TEAM_ABBREVIATION",
		"PLAYER_AGE",
		"GP",
		"GS",
		"RANK_PG_MIN",
		"RANK_PG_FGM",
		"RANK_PG_FGA",
		"RANK_FG_PCT",
		"RANK_PG_FG3M",
		"RANK_PG_FG3A",
		"RANK_FG3_PCT",
		"RANK_PG_FTM",
		"RANK_PG_FTA",
		"RANK_FT_PCT",
		"RANK_PG_OREB",
		"RANK_PG_DREB",
		"RANK_PG_REB",
		"RANK_PG_AST",
		"RANK_PG_STL",
		"RANK_PG_BLK",
		"RANK_PG_TOV",
		"RANK_PG_PTS",
		"RANK_PG_EFF",
	}

	PlayerHighsRecordHeaders = []string{
		"PLAYER_ID",
		"GAME_ID",
		"GAME_DATE",
		"VS_TEAM_ID",
		"VS_TEAM_CITY",
		"VS_TEAM_NAME",
		"VS_TEAM_ABBREVIATION",
		"STAT",
		"STAT_VALUE",
		"STAT_ORDER",
		"DATE_EST",
	}
)
View Source
var DefaultLiveStatsHeaders = http.Header{
	"Host":            {"cdn.nba.com"},
	"Referer":         {"https://cdn.nba.com/"},
	"User-Agent":      {"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"},
	"Accept-Language": {"en-US,en;q=0.9"},
	"Accept":          {"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"},
	"Accept-Encoding": {"gzip, deflate, br"},
	"Cache-Control":   {"max-age=0"},
	"Connection":      {"keep-alive"},
}
View Source
var DefaultStatsHeaders = http.Header{
	"Host":             {"stats.nba.com"},
	"Referer":          {"https://stats.nba.com/"},
	"User-Agent":       {"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"},
	"Accept":           {"application/json, text/plain, */*"},
	"Accept-Language":  {"en-US,en;q=0.5"},
	"Accept-Encoding":  {"gzip, deflate, br"},
	"Connection":       {"keep-alive"},
	"Origin":           {"https://www.nba.com"},
	"Pragma":           {"no-cache"},
	"Cache-Control":    {"no-cache"},
	"Sec-Ch-Ua":        {"\"Chromium\";v=\"140\", \"Google Chrome\";v=\"140\", \"Not;A=Brand\";v=\"99\""},
	"Sec-Ch-Ua-Mobile": {"?0"},
	"Sec-Fetch-Dest":   {"empty"},
}
View Source
var (
	DraftCombineStatsPath = "draftcombinestats"
)

draft api

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL