Skip to content

Get Fantasy Stats By Season Op

griddy / nfl / models / requests / get_fantasy_stats_by_season_op**

get_fantasy_stats_by_season_op

Attributes

GetFantasyStatsBySeasonSortKey module-attribute

GetFantasyStatsBySeasonSortKey = Literal[
    "fpStd",
    "fpPpr",
    "fpHalfPpr",
    "passYds",
    "passTd",
    "passInt",
    "rushYds",
    "rushTd",
    "recYds",
    "recTd",
    "rec",
    "tgt",
    "snapPct",
    "targetShare",
    "redZoneTargets",
]

Field to sort by

Classes

GetFantasyStatsBySeasonRequestTypedDict

Bases: TypedDict


              flowchart TD
              griddy.nfl.models.requests.get_fantasy_stats_by_season_op.GetFantasyStatsBySeasonRequestTypedDict[GetFantasyStatsBySeasonRequestTypedDict]

              

              click griddy.nfl.models.requests.get_fantasy_stats_by_season_op.GetFantasyStatsBySeasonRequestTypedDict href "" "griddy.nfl.models.requests.get_fantasy_stats_by_season_op.GetFantasyStatsBySeasonRequestTypedDict"
            
Attributes
season instance-attribute
season: int

Season year

season_type instance-attribute
season_type: SeasonTypeEnum

Type of season

limit instance-attribute
limit: NotRequired[int]

Maximum number of players to return

offset instance-attribute
offset: NotRequired[int]

Number of records to skip for pagination

page instance-attribute
page: NotRequired[int]

Page number for pagination

sort_key instance-attribute
sort_key: NotRequired[GetFantasyStatsBySeasonSortKey]

Field to sort by

sort_value instance-attribute
sort_value: NotRequired[SortOrderEnum]

Sort direction

position_group instance-attribute
position_group: NotRequired[
    List[GetFantasyStatsBySeasonPositionGroup]
]

Filter by position groups (supports multiple positions)

team_offense instance-attribute
team_offense: NotRequired[str]

Filter by specific offensive team ID

team_defense instance-attribute
team_defense: NotRequired[str]

Filter by specific defensive team ID (opponent analysis)

min_offensive_snaps instance-attribute
min_offensive_snaps: NotRequired[int]

Minimum offensive snaps threshold for inclusion

last_n_weeks instance-attribute
last_n_weeks: NotRequired[int]

Number of recent weeks to analyze (rolling window)

GetFantasyStatsBySeasonRequest

Bases: BaseModel


              flowchart TD
              griddy.nfl.models.requests.get_fantasy_stats_by_season_op.GetFantasyStatsBySeasonRequest[GetFantasyStatsBySeasonRequest]
              griddy.nfl.types.basemodel.BaseModel[BaseModel]

                              griddy.nfl.types.basemodel.BaseModel --> griddy.nfl.models.requests.get_fantasy_stats_by_season_op.GetFantasyStatsBySeasonRequest
                


              click griddy.nfl.models.requests.get_fantasy_stats_by_season_op.GetFantasyStatsBySeasonRequest href "" "griddy.nfl.models.requests.get_fantasy_stats_by_season_op.GetFantasyStatsBySeasonRequest"
              click griddy.nfl.types.basemodel.BaseModel href "" "griddy.nfl.types.basemodel.BaseModel"
            
Attributes
season instance-attribute
season: Annotated[
    int,
    FieldMetadata(
        query=QueryParamMetadata(style="form", explode=True)
    ),
]

Season year

season_type instance-attribute
season_type: Annotated[
    SeasonTypeEnum,
    Field(alias="seasonType"),
    FieldMetadata(
        query=QueryParamMetadata(style="form", explode=True)
    ),
]

Type of season

limit class-attribute instance-attribute
limit: Annotated[
    Optional[int],
    FieldMetadata(
        query=QueryParamMetadata(style="form", explode=True)
    ),
] = 35

Maximum number of players to return

offset class-attribute instance-attribute
offset: Annotated[
    Optional[int],
    FieldMetadata(
        query=QueryParamMetadata(style="form", explode=True)
    ),
] = 0

Number of records to skip for pagination

page class-attribute instance-attribute
page: Annotated[
    Optional[int],
    FieldMetadata(
        query=QueryParamMetadata(style="form", explode=True)
    ),
] = 1

Page number for pagination

sort_key class-attribute instance-attribute
sort_key: Annotated[
    Optional[GetFantasyStatsBySeasonSortKey],
    Field(alias="sortKey"),
    FieldMetadata(
        query=QueryParamMetadata(style="form", explode=True)
    ),
] = "fpStd"

Field to sort by

sort_value class-attribute instance-attribute
sort_value: Annotated[
    Optional[SortOrderEnum],
    Field(alias="sortValue"),
    FieldMetadata(
        query=QueryParamMetadata(style="form", explode=True)
    ),
] = None

Sort direction

position_group class-attribute instance-attribute
position_group: Annotated[
    Optional[List[GetFantasyStatsBySeasonPositionGroup]],
    Field(alias="positionGroup"),
    FieldMetadata(
        query=QueryParamMetadata(style="form", explode=True)
    ),
] = None

Filter by position groups (supports multiple positions)

team_offense class-attribute instance-attribute
team_offense: Annotated[
    Optional[str],
    Field(alias="teamOffense"),
    FieldMetadata(
        query=QueryParamMetadata(style="form", explode=True)
    ),
] = None

Filter by specific offensive team ID

team_defense class-attribute instance-attribute
team_defense: Annotated[
    Optional[str],
    Field(alias="teamDefense"),
    FieldMetadata(
        query=QueryParamMetadata(style="form", explode=True)
    ),
] = None

Filter by specific defensive team ID (opponent analysis)

min_offensive_snaps class-attribute instance-attribute
min_offensive_snaps: Annotated[
    Optional[int],
    Field(alias="minOffensiveSnaps"),
    FieldMetadata(
        query=QueryParamMetadata(style="form", explode=True)
    ),
] = 0

Minimum offensive snaps threshold for inclusion

last_n_weeks class-attribute instance-attribute
last_n_weeks: Annotated[
    Optional[int],
    Field(alias="lastNWeeks"),
    FieldMetadata(
        query=QueryParamMetadata(style="form", explode=True)
    ),
] = None

Number of recent weeks to analyze (rolling window)