News¶
griddy / nfl / endpoints / ngs / news**
news
¶
NGS News endpoints for articles and videos.
Note: These endpoints use a different server (api.nfl.com) than the other NGS endpoints.
Classes¶
NgsNews
¶
Bases: BaseSDK
flowchart TD
griddy.nfl.endpoints.ngs.news.NgsNews[NgsNews]
griddy.nfl.basesdk.BaseSDK[BaseSDK]
griddy.nfl.basesdk.BaseSDK --> griddy.nfl.endpoints.ngs.news.NgsNews
click griddy.nfl.endpoints.ngs.news.NgsNews href "" "griddy.nfl.endpoints.ngs.news.NgsNews"
click griddy.nfl.basesdk.BaseSDK href "" "griddy.nfl.basesdk.BaseSDK"
NGS News endpoints for articles and videos.
Note: This sub-SDK uses api.nfl.com instead of nextgenstats.nfl.com.
Provides access to: - Mixed content (articles and videos) - Articles - Video clips
Source code in griddy/nfl/basesdk.py
Functions¶
get_mixed_content
¶
get_mixed_content(
*,
limit: int = 16,
offset: int = 0,
retries: OptionalNullable[RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None
) -> NgsMixedContentResponse
Get mixed NGS content (articles and videos).
| PARAMETER | DESCRIPTION |
|---|---|
limit
|
Number of items to return (default: 16)
TYPE:
|
offset
|
Offset for pagination (default: 0)
TYPE:
|
Source code in griddy/nfl/endpoints/ngs/news.py
get_mixed_content_async
async
¶
get_mixed_content_async(
*,
limit: int = 16,
offset: int = 0,
retries: OptionalNullable[RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None
) -> NgsMixedContentResponse
Get mixed NGS content (async).
Source code in griddy/nfl/endpoints/ngs/news.py
get_articles
¶
get_articles(
*,
category: str = "next-gen-stats-news",
limit: int = 16,
offset: int = 0,
retries: OptionalNullable[RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None
) -> NgsArticlesResponse
Get NGS articles.
| PARAMETER | DESCRIPTION |
|---|---|
category
|
Article category slug (default: "next-gen-stats-news")
TYPE:
|
limit
|
Number of items to return (default: 16)
TYPE:
|
offset
|
Offset for pagination (default: 0)
TYPE:
|
Source code in griddy/nfl/endpoints/ngs/news.py
get_articles_async
async
¶
get_articles_async(
*,
category: str = "next-gen-stats-news",
limit: int = 16,
offset: int = 0,
retries: OptionalNullable[RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None
) -> NgsArticlesResponse
Get NGS articles (async).
Source code in griddy/nfl/endpoints/ngs/news.py
get_video_clips
¶
get_video_clips(
*,
video_channel: str = "next-gen-stats-vc",
limit: int = 16,
offset: int = 0,
retries: OptionalNullable[RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None
) -> NgsVideosResponse
Get NGS video clips.
| PARAMETER | DESCRIPTION |
|---|---|
video_channel
|
Video channel slug (default: "next-gen-stats-vc")
TYPE:
|
limit
|
Number of items to return (default: 16)
TYPE:
|
offset
|
Offset for pagination (default: 0)
TYPE:
|
Source code in griddy/nfl/endpoints/ngs/news.py
get_video_clips_async
async
¶
get_video_clips_async(
*,
video_channel: str = "next-gen-stats-vc",
limit: int = 16,
offset: int = 0,
retries: OptionalNullable[RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None
) -> NgsVideosResponse
Get NGS video clips (async).