chickenstats-api
API for downloading NHL data
- API version: 0.1.9
- Package version: 0.1.9
Requirements
Python 3.9+
Installation
pip install chickenstats-api
import chickenstats_api
Getting Started
import chickenstats_api
from chickenstats_api.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.chickenstats.com
# See configuration.py for a list of all supported configuration parameters.
configuration = chickenstats_api.Configuration(
host = "https://api.chickenstats.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
configuration.access_token = os.environ["ACCESS_TOKEN"]
# Enter a context with an instance of the API client
with chickenstats_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = chickenstats_api.ChangesApi(api_client)
limit = 56 # int | Rows per page. When omitted, 10,000 or your tier's maximum, whichever is smaller; the response's `limit` says which. A value over your tier's maximum is refused with a 400. (optional)
offset = 0 # int | (optional) (default to 0)
with_total = True # bool | Include the exact total row count. Set false on broad queries: the count scans every matching row, which on a season-wide filter costs far more than the page itself. `total` is then -1 and `has_next` still works. (optional) (default to True)
season = [56] # List[int] | (optional)
sessions = ['sessions_example'] # List[str] | (optional)
game_id = [56] # List[int] | (optional)
event_team = ['event_team_example'] # List[str] | (optional)
period = [56] # List[int] | (optional)
include = ['include_example'] # List[str] | (optional)
try:
# Read Changes
api_response = api_instance.read_changes(limit=limit, offset=offset, with_total=with_total, season=season, sessions=sessions, game_id=game_id, event_team=event_team, period=period, include=include)
print("The response of ChangesApi->read_changes:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling ChangesApi->read_changes: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.chickenstats.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ChangesApi | read_changes | GET /api/v1/chicken_nhl/changes | Read Changes |
| ChangesApi | read_changes_game_ids | GET /api/v1/chicken_nhl/changes/game_ids | Read Changes Game Ids |
| GamesApi | read_game | GET /api/v1/chicken_nhl/games/{game_id} | Read Game |
| GamesApi | read_games | GET /api/v1/chicken_nhl/games | Read Games |
| InferenceApi | read_pred_goal | GET /api/v1/inference/pred_goal | Read Pred Goal |
| LinesApi | read_game_lines | GET /api/v1/chicken_nhl/lines/game | Read Game Lines |
| LinesApi | read_lines_game_ids | GET /api/v1/chicken_nhl/lines/game_ids | Read Lines Game Ids |
| LinesApi | read_season_lines | GET /api/v1/chicken_nhl/lines/season | Read Season Lines |
| LiveApi | read_live_games | GET /api/v1/live/games | Read Live Games |
| LiveApi | read_live_pbp | GET /api/v1/live/play_by_play | Read Live Pbp |
| LoginApi | login_firebase_token | POST /api/v1/login/firebase-token | Login Firebase Token |
| LoginApi | login_refresh | POST /api/v1/login/refresh | Login Refresh |
| LoginApi | login_verify_token | POST /api/v1/login/verify-token | Login Verify Token |
| LoginApi | recover_password | POST /api/v1/password-recovery/{email} | Recover Password |
| LoginApi | recover_password_html_content | POST /api/v1/password-recovery-html-content/{email} | Recover Password Html Content |
| LoginApi | reset_password | POST /api/v1/reset-password/ | Reset Password |
| LoginApi | test_token | POST /api/v1/login/test-token | Test Token |
| PlayByPlayApi | read_pbp | GET /api/v1/chicken_nhl/play_by_play | Read Pbp |
| PlayByPlayApi | read_pbp_game_ids | GET /api/v1/chicken_nhl/play_by_play/game_ids | Read Pbp Game Ids |
| PlayByPlayApi | read_pbp_play_ids | GET /api/v1/chicken_nhl/play_by_play/play_ids | Read Pbp Play Ids |
| PlayersApi | read_player | GET /api/v1/chicken_nhl/players/{api_id} | Read Player |
| PlayersApi | read_players | GET /api/v1/chicken_nhl/players | Read Players |
| RapmApi | read_rapm | GET /api/v1/chicken_nhl/rapm | Read Rapm |
| RostersApi | read_roster_game_ids | GET /api/v1/chicken_nhl/rosters/game_ids | Read Roster Game Ids |
| RostersApi | read_rosters | GET /api/v1/chicken_nhl/rosters | Read Rosters |
| ShiftsApi | read_shifts | GET /api/v1/chicken_nhl/shifts | Read Shifts |
| ShiftsApi | read_shifts_game_ids | GET /api/v1/chicken_nhl/shifts/game_ids | Read Shifts Game Ids |
| StandingsApi | read_standings | GET /api/v1/chicken_nhl/standings | Read Standings |
| StatsApi | read_game_stats | GET /api/v1/chicken_nhl/stats/game | Read Game Stats |
| StatsApi | read_season_stats | GET /api/v1/chicken_nhl/stats/season | Read Season Stats |
| StatsApi | read_stats_game_ids | GET /api/v1/chicken_nhl/stats/game_ids | Read Stats Game Ids |
| TeamStatsApi | read_game_team_stats | GET /api/v1/chicken_nhl/team_stats/game | Read Game Team Stats |
| TeamStatsApi | read_season_team_stats | GET /api/v1/chicken_nhl/team_stats/season | Read Season Team Stats |
| TeamStatsApi | read_team_stats_game_ids | GET /api/v1/chicken_nhl/team_stats/game_ids | Read Team Stats Game Ids |
| TeamsApi | read_teams | GET /api/v1/chicken_nhl/teams | Read Teams |
| UsersApi | confirm_email_change | POST /api/v1/users/email/confirm | Confirm Email Change |
| UsersApi | delete_sign_in_method | DELETE /api/v1/users/me/sign-in-methods/{provider} | Delete Sign In Method |
| UsersApi | delete_user_me | DELETE /api/v1/users/me | Delete User Me |
| UsersApi | get_programmatic_credentials | GET /api/v1/users/me/programmatic-credentials | Get Programmatic Credentials |
| UsersApi | read_link_token | POST /api/v1/users/me/sign-in-methods/link-token | Read Link Token |
| UsersApi | read_sign_in_methods | GET /api/v1/users/me/sign-in-methods | Read Sign In Methods |
| UsersApi | read_user_me | GET /api/v1/users/me | Read User Me |
| UsersApi | request_email_change | POST /api/v1/users/me/email | Request Email Change |
| UsersApi | resend_verification | POST /api/v1/users/me/resend-verification | Resend Verification |
| UsersApi | rotate_programmatic_credentials | POST /api/v1/users/me/programmatic-credentials/rotate | Rotate Programmatic Credentials |
| UsersApi | signup | POST /api/v1/users/signup | Signup |
| UsersApi | update_password_me | PATCH /api/v1/users/me/password | Update Password Me |
| UsersApi | update_user_me | PATCH /api/v1/users/me | Update User Me |
Documentation For Models
- ChangesPublic
- ChangesResponse
- EmailChangeConfirm
- EmailChangeRequest
- GamePublic
- GameResponse
- HTTPValidationError
- IdToken
- LinesCreate
- LinesGame
- LinesGameResponse
- LinesPublic
- LinesSeason
- LinesSeasonResponse
- LinkToken
- LiveGamesPublic
- LivePbpPublic
- LivePbpResponse
- Message
- NewPassword
- PbpPublic
- PbpResponse
- PlayerPublic
- PlayerResponse
- PredGoalResponse
- PredGoalRow
- ProgrammaticCredentials
- RapmResponse
- RapmScores
- RefreshTokenRequest
- RosterPublic
- RosterResponse
- ShiftsPublic
- ShiftsResponse
- SignInMethods
- StandingsPublic
- StandingsResponse
- StatsCreate
- StatsGame
- StatsGameResponse
- StatsSeason
- StatsSeasonResponse
- TeamPublic
- TeamResponse
- TeamStatsCreate
- TeamStatsGame
- TeamStatsGameResponse
- TeamStatsPublic
- TeamStatsSeason
- TeamStatsSeasonResponse
- Token
- UpdatePassword
- UserCreate
- UserPublic
- UserRegister
- UserUpdate
- UserUpdateMe
- UsersPublic
- ValidationError
- ValidationErrorLocInner
Documentation For Authorization
Authentication schemes defined for the API:
OAuth2PasswordBearer
- Type: OAuth
- Flow: password
- Authorization URL:
- Scopes: N/A
Author
Metadata
Release files for chickenstats-api 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chickenstats_api-0.1.9.tar.gz | 96.6 kB | With provenance | Details for chickenstats_api-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chickenstats_api-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for chickenstats_api-0.1.9-py3-none-any.whl |
Total release size: 276.3 kB
Release files / chickenstats_api-0.1.9.tar.gz
| Download URL | chickenstats_api-0.1.9.tar.gz |
|---|---|
| Size | 96.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34c65ab463d880c4745f8a4d84c58976cf2881378add1d90ad19b7bf67c33710
|
|
BLAKE2b-256 checksum How to use checksums |
d61e4dd5848401af1a432195dc451aa983d4a2d9b81d9bfce39b4bd191032f59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / chickenstats_api-0.1.9-py3-none-any.whl
| Download URL | chickenstats_api-0.1.9-py3-none-any.whl |
|---|---|
| Size | 179.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee51aabf4d06dac12dc619a7996177f132fb3d555ee181222a0ae0a3f4c684e1
|
|
BLAKE2b-256 checksum How to use checksums |
ff44ca3d90b89bd1ee4c5c084b81c87530a3fc7b3c326f866a814fee1ea352f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for chickenstats-api 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for chickenstats_api-0.1.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.