Versions in this module Expand all Collapse all v0 v0.3.0 Jul 13, 2026 Changes in this version + const ADPUndrafted + type ADPType string + const ADPType2QB + const ADPTypeDynasty + const ADPTypeDynasty2QB + const ADPTypeDynastyHalfPPR + const ADPTypeDynastyPPR + const ADPTypeDynastyStandard + const ADPTypeHalfPPR + const ADPTypeIDP + const ADPTypeIDP1QB + const ADPTypePPR + const ADPTypeStandard type Client + func (c *Client) GetPlayerValues(ctx context.Context, sport Sport, season string, format ScoringFormat, ...) (map[string]float64, error) + func (c *Client) ListProjections(ctx context.Context, sport Sport, season string, options ProjectionOptions) ([]PlayerProjection, error) + type PlayerProjection struct + Category string + Company string + Date string + GameID string + LastModified int64 + Opponent string + Player *Player + PlayerID string + Season string + SeasonType string + Sport string + Stats ProjectionStats + Status string + Team string + UpdatedAt int64 + Week int + type PlayerValuesOptions struct + IncludeIDP bool + IsDynasty bool + type ProjectionOptions struct + OrderBy string + Positions []string + SeasonType string + type ProjectionStats struct + ADP2QB float64 + ADPDynasty float64 + ADPDynasty2QB float64 + ADPDynastyHalfPPR float64 + ADPDynastyPPR float64 + ADPDynastyStandard float64 + ADPHalfPPR float64 + ADPIDP float64 + ADPIDP1QB float64 + ADPPPR float64 + ADPRookie float64 + ADPStandard float64 + BonusRecRB float64 + BonusRecTE float64 + BonusRecWR float64 + DefBlockKick float64 + DefFumRec float64 + DefFumTD float64 + DefInt float64 + DefKRTD float64 + DefPRTD float64 + DefPtsAllow0 float64 + DefSack float64 + DefSafety float64 + DefYdsAllow100 float64 + FGM40To49 float64 + FGM50Plus float64 + FGMYds float64 + FGMiss40To49 float64 + FGMiss50Plus float64 + FumLost float64 + GamesPlayed float64 + IDPBlockKick float64 + IDPForcedFum float64 + IDPFumRec float64 + IDPInt float64 + IDPSack float64 + IDPSafety float64 + IDPTackle float64 + IDPTackleAssist float64 + IDPTackleSolo float64 + Pass2Pt float64 + PassAtt float64 + PassCmp float64 + PassCmpPct float64 + PassFirstDowns float64 + PassInt float64 + PassIntTD float64 + PassTD float64 + PassYd float64 + PtsHalfPPR float64 + PtsPPR float64 + PtsStandard float64 + Rec float64 + Rec0To4 float64 + Rec10To19 float64 + Rec20To29 float64 + Rec2Pt float64 + Rec30To39 float64 + Rec40Plus float64 + Rec5To9 float64 + RecFirstDowns float64 + RecTD float64 + RecYd float64 + Rush2Pt float64 + RushAtt float64 + RushFirstDowns float64 + RushTD float64 + RushYd float64 + XPM float64 + XPMiss float64 + func (s ProjectionStats) ADP(adpType ADPType) float64 + type ScoringFormat string + const ScoringFormat2QB + const ScoringFormatDynasty2QB + const ScoringFormatDynastyHalfPPR + const ScoringFormatDynastyPPR + const ScoringFormatDynastyStandard + const ScoringFormatHalfPPR + const ScoringFormatIDP + const ScoringFormatPPR + const ScoringFormatStandard v0.2.0 May 18, 2026 Changes in this version + type Sport string + type TrendingType string v0.1.0 Nov 3, 2025 Changes in this version + const APIVersion1 + const SportMLB + const SportNBA + const SportNFL + const SportNHL + const TransactionTypeFreeAgent + const TransactionTypeTrade + const TransactionTypeWaiver + const TrendingTypeAdd + const TrendingTypeDrop + type APIError struct + Message string + StatusCode int + func (e *APIError) Error() string + type Client struct + func NewClient(ctx context.Context, config Config) (*Client, error) + func (c *Client) GetAvatarImage(ctx context.Context, avatarID string) ([]byte, error) + func (c *Client) GetAvatarThumbnail(ctx context.Context, avatarID string) ([]byte, error) + func (c *Client) GetDraft(ctx context.Context, draftID string) (*Draft, error) + func (c *Client) GetDraftPicks(ctx context.Context, draftID string) ([]*DraftPick, error) + func (c *Client) GetDraftTradedPicks(ctx context.Context, draftID string) ([]*TradedDraftPick, error) + func (c *Client) GetLeague(ctx context.Context, leagueID string) (*League, error) + func (c *Client) GetLeagueDrafts(ctx context.Context, leagueID string) ([]*Draft, error) + func (c *Client) GetLeagueLosersBracket(ctx context.Context, leagueID string) ([]*PlayoffMatchup, error) + func (c *Client) GetLeagueMatchups(ctx context.Context, leagueID string, week int) ([]*Matchup, error) + func (c *Client) GetLeagueRosters(ctx context.Context, leagueID string) ([]*Roster, error) + func (c *Client) GetLeagueTradedPicks(ctx context.Context, leagueID string) ([]*TradedDraftPick, error) + func (c *Client) GetLeagueUsers(ctx context.Context, leagueID string) ([]*User, error) + func (c *Client) GetLeagueWinnersBracket(ctx context.Context, leagueID string) ([]*PlayoffMatchup, error) + func (c *Client) GetSportState(ctx context.Context, sport sport) (*SportState, error) + func (c *Client) GetTransactions(ctx context.Context, leagueID string, week int) ([]*Transaction, error) + func (c *Client) GetUser(ctx context.Context, identity string) (*User, error) + func (c *Client) GetUserDrafts(ctx context.Context, userID string, sport sport, season string) ([]*Draft, error) + func (c *Client) GetUserLeagues(ctx context.Context, userID string, sport sport, season string) ([]*League, error) + func (c *Client) ListNFLPlayers(ctx context.Context) (map[string]Player, error) + func (c *Client) ListTrendingPlayers(ctx context.Context, sport sport, trendingType trendingType, ...) ([]*Player, error) + type Config struct + APIVersion apiVersion + RateLimitBurst int + RateLimitRPS float64 + Timeout time.Duration + type Draft struct + Created int64 + Creators []string + DraftID string + DraftOrder map[string]int + LastMessageID string + LastMessageTime int64 + LastPicked *int64 + LeagueID string + Metadata *DraftMetadata + Season string + SeasonType string + Settings *DraftSettings + SlotToRosterID map[string]int + Sport string + StartTime *int64 + Status string + Type string + type DraftMetadata struct + Description string + ElapsedPickTimer string + IsAutopaused string + LeagueType string + Name string + ScoringType string + ShowTeamNames string + type DraftPick struct + DraftID string + DraftSlot int + IsKeeper interface{} + Metadata *DraftPickMetadata + PickNo int + PickedBy string + PlayerID string + Reactions map[string][]string + RosterID int + Round int + type DraftPickMetadata struct + FirstName string + InjuryStatus string + LastName string + NewsUpdated string + Number string + PlayerID string + Position string + Sport string + Status string + Team string + TeamAbbr string + TeamChangedAt string + YearsExp string + type DraftSettings struct + AlphaSort int + AutopauseEnabled int + AutopauseEndTime int + AutopauseStartTime int + Autostart int + CPUAutopick int + EnforcePositionLimits int + NominationTimer int + PickTimer int + PlayerType int + ReversalRound int + Rounds int + SlotsBN int + SlotsC int + SlotsDEF int + SlotsF int + SlotsFlex int + SlotsG int + SlotsK int + SlotsPF int + SlotsPG int + SlotsQB int + SlotsRB int + SlotsSF int + SlotsSG int + SlotsSuperFlex int + SlotsTE int + SlotsUtil int + SlotsWR int + Teams int + type FlexibleString string + func (f *FlexibleString) UnmarshalJSON(data []byte) error + func (f FlexibleString) Int() (int, error) + func (f FlexibleString) String() string + type League struct + Avatar string + BracketID int64 + BracketOverridesID string + CompanyID string + DisplayOrder int + DraftID string + GroupID string + LastAuthorAvatar string + LastAuthorDisplayName string + LastAuthorID string + LastAuthorIsBot bool + LastMessageAttachment string + LastMessageID string + LastMessageTextMap string + LastMessageTime int64 + LastPinnedMessageID string + LastReadID string + LastTransactionID int64 + LeagueID string + LoserBracketID int64 + LoserBracketOverridesID int64 + Metadata *LeagueMetadata + Name string + PreviousLeagueID string + RosterPositions []string + ScoringSettings *ScoringSettings + Season string + SeasonType string + Settings *Settings + Shard int + Sport string + Status string + TotalRosters int + type LeagueMetadata struct + AutoContinue string + KeeperDeadline string + LatestLeagueWinnerRosterID string + type Matchup struct + CustomPoints *float64 + MatchupID int + Players []string + PlayersPoints map[string]float64 + Points float64 + RosterID int + Starters []string + StartersPoints []float64 + type Player struct + Active bool + Age *int + BirthCity *string + BirthCountry *string + BirthDate *string + BirthState *string + College string + DepthChartOrder *int + DepthChartPosition *string + ESPNID *int + FantasyDataID *int + FantasyPositions []string + FirstName string + FullName string + GSIID *string + Hashtag string + Height string + HighSchool *string + InjuryBodyPart *string + InjuryNotes *string + InjuryStartDate *string + InjuryStatus *string + KalshiID *string + LastName string + Metadata *PlayerMetadata + NewsUpdated *int64 + Number *int + OddsjamID *string + OptaID *string + PandascoreID *string + PlayerID string + Position string + PracticeDescription *string + PracticeParticipation *string + RotowireID *int + RotoworldID *int + SearchFirstName string + SearchFullName string + SearchLastName string + SearchRank int + Sport string + SportradarID string + StatsID *int + Status string + SwishID *int + Team *string + TeamAbbr *string + TeamChangedAt *string + Weight string + YahooID *int + YearsExp int + type PlayerMetadata struct + ChannelID string + RookieYear string + type PlayoffMatchup struct + Loser *int + MatchID int + Placement *int + Round int + Team1 *int + Team1From *PlayoffMatchupFrom + Team2 *int + Team2From *PlayoffMatchupFrom + Winner *int + type PlayoffMatchupFrom struct + LoserOfMatch *int + WinnerOfMatch *int + type Roster struct + CoOwners []string + Keepers []string + LeagueID string + Metadata *RosterMetadata + OwnerID string + Players []string + Reserve []string + RosterID int + Settings *RosterSettings + Starters []string + Taxi []string + type RosterMetadata struct + AllowPnInactiveStarters string + AllowPnNews string + AllowPnPlayerInjuryStatus string + AllowPnScoring string + PlayerNicknames map[string]string + Record string + RestrictPnScoringStartersOnly string + Streak string + func (rm *RosterMetadata) UnmarshalJSON(data []byte) error + type RosterSettings struct + Fpts int + FptsAgainst int + FptsAgainstDecimal int + FptsDecimal int + Losses int + Ppts int + PptsDecimal int + Ties int + TotalMoves int + WaiverBudgetUsed int + WaiverPosition int + Wins int + type ScoringSettings struct + BlkKick float64 + Def4AndStop float64 + DefKrTd float64 + DefPrTd float64 + DefStFF float64 + DefStFumRec float64 + DefStTd float64 + DefTd float64 + FF float64 + FGM019 float64 + FGM2029 float64 + FGM3039 float64 + FGM4049 float64 + FGM5059 float64 + FGM50p float64 + FGMYds float64 + FGMYdsOver30 float64 + FGMiss float64 + Fum float64 + FumLost float64 + FumRec float64 + FumRecTd float64 + Int float64 + Pass2pt float64 + PassInt float64 + PassIntTd float64 + PassTd float64 + PassYd float64 + PtsAllow0 float64 + PtsAllow1420 float64 + PtsAllow16 float64 + PtsAllow2127 float64 + PtsAllow2834 float64 + PtsAllow35p float64 + PtsAllow713 float64 + Rec float64 + Rec2pt float64 + RecTd float64 + RecYd float64 + Rush2pt float64 + RushTd float64 + RushYd float64 + Sack float64 + Safe float64 + StFF float64 + StFumRec float64 + StTd float64 + XPM float64 + XPMiss float64 + type Settings struct + BenchLock int + BestBall int + CapacityOverride int + CommissionerDirectInvite int + DailyWaivers int + DailyWaiversDays int + DailyWaiversHour int + DailyWaiversLastRan int + DisableAdds int + DisableTrades int + DraftRounds int + FaabSuggestions int + LastReport int + LastScoredLeg int + LeagueAverageMatch int + Leg int + MaxKeepers int + MaxSubs int + NumTeams int + OffseasonAdds int + PickTrading int + PlayoffRoundType int + PlayoffSeedType int + PlayoffTeams int + PlayoffType int + PlayoffWeekStart int + ReserveAllowCov int + ReserveAllowDNR int + ReserveAllowDoubtful int + ReserveAllowNA int + ReserveAllowOut int + ReserveAllowSus int + ReserveSlots int + Squads int + StartWeek int + SubLockIfStarterActive int + SubStartTimeEligibility int + TaxiAllowVets int + TaxiDeadline int + TaxiSlots int + TaxiYears int + TradeDeadline int + TradeReviewDays int + Type int + VetoAutoPoll int + VetoShowVotes int + VetoVotesNeeded int + WaiverBudget int + WaiverClearDays int + WaiverDayOfWeek int + WaiverType int + type SportState struct + DisplayWeek int + LeagueCreateSeason string + LeagueSeason string + Leg int + PreviousSeason FlexibleString + Season string + SeasonStartDate string + SeasonType string + Week int + type TradedDraftPick struct + OwnerID int + PreviousOwnerID int + RosterID int + Round int + Season string + type Transaction struct + Adds map[string]int + ConsenterIDs []int + Created int64 + Creator string + DraftPicks []*TradedDraftPick + Drops map[string]int + Leg int + Metadata *TransactionMetadata + RosterIDs []int + Settings *TransactionSettings + Status string + StatusUpdated int64 + TransactionID string + Type string + WaiverBudget []*WaiverBudget + type TransactionMetadata struct + Notes string + type TransactionSettings struct + WaiverBid int + type TrendingPlayerOptions struct + Limit int + LookbackHours int + type User struct + Avatar string + DisplayName string + IsBot bool + UserID string + Username string + type WaiverBudget struct + Amount int + Receiver int + Sender int