Passing¶
griddy / nfl / endpoints / pro / stats / passing**
passing
¶
Classes¶
PlayerPassingStats
¶
Bases: ProSDK
flowchart TD
griddy.nfl.endpoints.pro.stats.passing.PlayerPassingStats[PlayerPassingStats]
griddy.nfl.endpoints.pro.ProSDK[ProSDK]
griddy.nfl.basesdk.BaseSDK[BaseSDK]
griddy.nfl.endpoints.pro.ProSDK --> griddy.nfl.endpoints.pro.stats.passing.PlayerPassingStats
griddy.nfl.basesdk.BaseSDK --> griddy.nfl.endpoints.pro.ProSDK
click griddy.nfl.endpoints.pro.stats.passing.PlayerPassingStats href "" "griddy.nfl.endpoints.pro.stats.passing.PlayerPassingStats"
click griddy.nfl.endpoints.pro.ProSDK href "" "griddy.nfl.endpoints.pro.ProSDK"
click griddy.nfl.basesdk.BaseSDK href "" "griddy.nfl.basesdk.BaseSDK"
Source code in griddy/nfl/endpoints/pro/__init__.py
Functions¶
get_weekly_summary
¶
get_weekly_summary(
*,
season: int,
season_type: SeasonTypeEnum,
week: WeekSlugEnum,
limit: Optional[int] = 50,
offset: Optional[int] = 0,
page: Optional[int] = 1,
sort_key: Optional[PassingStatsCategoryEnum] = None,
sort_value: Optional[SortOrderEnum] = None,
qualified_passer: Optional[bool] = False,
team_offense: Optional[List[str]] = None,
retries: OptionalNullable[RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None
) -> WeeklyPassingStatsResponse
Get Player Passing Statistics by Week
Retrieves comprehensive passing statistics for NFL players during a specified week and season. Returns detailed metrics including traditional stats, advanced analytics, and Next Gen Stats data. Supports filtering by teams, qualified passers, and various sorting options.
:param season: Season year :param season_type: Type of season :param week: Week identifier :param limit: Maximum number of players to return :param offset: Number of records to skip for pagination :param page: Page number for pagination :param sort_key: Field to sort by :param sort_value: Sort direction :param qualified_passer: Filter to only qualified passers (minimum attempts threshold) :param team_offense: Filter by specific team IDs (supports multiple teams) :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds :param http_headers: Additional headers to set or replace on requests.
Source code in griddy/nfl/endpoints/pro/stats/passing.py
get_weekly_summary_async
async
¶
get_weekly_summary_async(
*,
season: int,
season_type: SeasonTypeEnum,
week: WeekSlugEnum,
limit: Optional[int] = 50,
offset: Optional[int] = 0,
page: Optional[int] = 1,
sort_key: Optional[PassingStatsCategoryEnum] = None,
sort_value: Optional[SortOrderEnum] = None,
qualified_passer: Optional[bool] = False,
team_offense: Optional[List[str]] = None,
retries: OptionalNullable[RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None
) -> WeeklyPassingStatsResponse
Get Player Passing Statistics by Week
Retrieves comprehensive passing statistics for NFL players during a specified week and season.
:param season: Season year :param season_type: Type of season :param week: Week identifier :param limit: Maximum number of players to return :param offset: Number of records to skip for pagination :param page: Page number for pagination :param sort_key: Field to sort by :param sort_value: Sort direction :param qualified_passer: Filter to only qualified passers (minimum attempts threshold) :param team_offense: Filter by specific team IDs (supports multiple teams) :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds :param http_headers: Additional headers to set or replace on requests.
Source code in griddy/nfl/endpoints/pro/stats/passing.py
get_season_summary
¶
get_season_summary(
*,
season: int,
season_type: SeasonTypeEnum,
limit: Optional[int] = 35,
offset: Optional[int] = 0,
page: Optional[int] = 1,
sort_key: Optional[PassingStatsCategoryEnum] = None,
sort_value: Optional[SortOrderEnum] = None,
qualified_passer: Optional[bool] = True,
team_offense: Optional[List[str]] = None,
retries: OptionalNullable[RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None
) -> PassingStatsResponse
Get Player Passing Statistics by Season
Retrieves comprehensive passing statistics for NFL players during a specified season.
:param season: Season year :param season_type: Type of season :param limit: Maximum number of players to return :param offset: Number of records to skip for pagination :param page: Page number for pagination :param sort_key: Field to sort by :param sort_value: Sort direction :param qualified_passer: Filter to only qualified passers (minimum attempts threshold) :param team_offense: Filter by specific team IDs (supports multiple teams) :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds :param http_headers: Additional headers to set or replace on requests.
Source code in griddy/nfl/endpoints/pro/stats/passing.py
get_season_summary_async
async
¶
get_season_summary_async(
*,
season: int,
season_type: SeasonTypeEnum,
limit: Optional[int] = 35,
offset: Optional[int] = 0,
page: Optional[int] = 1,
sort_key: Optional[PassingStatsCategoryEnum] = None,
sort_value: Optional[SortOrderEnum] = None,
qualified_passer: Optional[bool] = True,
team_offense: Optional[List[str]] = None,
retries: OptionalNullable[RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None
) -> PassingStatsResponse
Get Player Passing Statistics by Season
Retrieves comprehensive passing statistics for NFL players during a specified season.
:param season: Season year :param season_type: Type of season :param limit: Maximum number of players to return :param offset: Number of records to skip for pagination :param page: Page number for pagination :param sort_key: Field to sort by :param sort_value: Sort direction :param qualified_passer: Filter to only qualified passers (minimum attempts threshold) :param team_offense: Filter by specific team IDs (supports multiple teams) :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds :param http_headers: Additional headers to set or replace on requests.