Giter VIP home page Giter VIP logo

fantasy-data-client-python's Introduction

swagger-client

NFL rosters, player stats, team stats, and fantasy stats API.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com//.git

(you may need to run pip with root permission: sudo pip install git+https://github.com//.git)

Then import the package:

import swagger_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import swagger_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
# Configure API key authorization: apiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['subscription-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['subscription-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration))
format = 'format_example' # str | Desired response format. Valid entries are <code>XML</code> or <code>JSON</code>.

try:
    # Are Games In Progress
    api_response = api_instance.are_games_in_progress(format)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->are_games_in_progress: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://api.sportsdata.io/v3/nfl/stats

Class Method HTTP request Description
DefaultApi are_games_in_progress GET /{format}/AreAnyGamesInProgress Are Games In Progress
DefaultApi box_score_by_scoreid_v GET /{format}/BoxScoreByScoreIDV3/{scoreid} Box Score by ScoreID V3
DefaultApi box_score_v GET /{format}/BoxScoreV3/{season}/{week}/{hometeam} Box Score V3
DefaultApi box_scores_delta_v GET /{format}/BoxScoresDeltaV3/{season}/{week}/{playerstoinclude}/{minutes} Box Scores Delta V3
DefaultApi box_scores_v_simulation GET /{format}/SimulatedBoxScoresV3/{numberofplays} Box Scores V3 Simulation
DefaultApi bye_weeks GET /{format}/Byes/{season} Bye Weeks
DefaultApi daily_fantasy_players GET /{format}/DailyFantasyPlayers/{date} Daily Fantasy Players
DefaultApi daily_fantasy_scoring GET /{format}/DailyFantasyPoints/{date} Daily Fantasy Scoring
DefaultApi dfs_slates_by_date GET /{format}/DfsSlatesByDate/{date} DFS Slates by Date
DefaultApi dfs_slates_by_week GET /{format}/DfsSlatesByWeek/{season}/{week} DFS Slates by Week
DefaultApi fantasy_defense_game_stats GET /{format}/FantasyDefenseByGame/{season}/{week} Fantasy Defense Game Stats
DefaultApi fantasy_defense_game_stats_by_team GET /{format}/FantasyDefenseByGameByTeam/{season}/{week}/{team} Fantasy Defense Game Stats by Team
DefaultApi fantasy_defense_season_stats GET /{format}/FantasyDefenseBySeason/{season} Fantasy Defense Season Stats
DefaultApi fantasy_defense_season_stats_by_team GET /{format}/FantasyDefenseBySeasonByTeam/{season}/{team} Fantasy Defense Season Stats by Team
DefaultApi fantasy_player_ownership_percentages_season_long GET /{format}/PlayerOwnership/{season}/{week} Fantasy Player Ownership Percentages (Season-Long)
DefaultApi fantasy_players_with_adp GET /{format}/FantasyPlayers Fantasy Players with ADP
DefaultApi game_stats_by_season_deprecated_use_team_game_stats_instead GET /{format}/GameStats/{season} Game Stats by Season (Deprecated, use Team Game Stats instead)
DefaultApi game_stats_by_week_deprecated_use_team_game_stats_instead GET /{format}/GameStatsByWeek/{season}/{week} Game Stats by Week (Deprecated, use Team Game Stats instead)
DefaultApi idp_fantasy_players_with_adp GET /{format}/FantasyPlayersIDP IDP Fantasy Players with ADP
DefaultApi injuries GET /{format}/Injuries/{season}/{week} Injuries
DefaultApi injuries_by_team GET /{format}/Injuries/{season}/{week}/{team} Injuries by Team
DefaultApi league_leaders_by_season GET /{format}/SeasonLeagueLeaders/{season}/{position}/{column} League Leaders by Season
DefaultApi league_leaders_by_week GET /{format}/GameLeagueLeaders/{season}/{week}/{position}/{column} League Leaders by Week
DefaultApi legacy_box_score GET /{format}/BoxScore/{season}/{week}/{hometeam} Legacy Box Score
DefaultApi legacy_box_scores GET /{format}/BoxScores/{season}/{week} Legacy Box Scores
DefaultApi legacy_box_scores_active GET /{format}/ActiveBoxScores Legacy Box Scores Active
DefaultApi legacy_box_scores_delta GET /{format}/BoxScoresDelta/{season}/{week}/{minutes} Legacy Box Scores Delta
DefaultApi legacy_box_scores_delta_current_week GET /{format}/RecentlyUpdatedBoxScores/{minutes} Legacy Box Scores Delta (Current Week)
DefaultApi legacy_box_scores_final GET /{format}/FinalBoxScores Legacy Box Scores Final
DefaultApi legacy_box_scores_live GET /{format}/LiveBoxScores Legacy Box Scores Live
DefaultApi news GET /{format}/News News
DefaultApi news_by_date GET /{format}/NewsByDate/{date} News by Date
DefaultApi news_by_player GET /{format}/NewsByPlayerID/{playerid} News by Player
DefaultApi news_by_team GET /{format}/NewsByTeam/{team} News by Team
DefaultApi player_details_by_available GET /{format}/Players Player Details by Available
DefaultApi player_details_by_free_agents GET /{format}/FreeAgents Player Details by Free Agents
DefaultApi player_details_by_player GET /{format}/Player/{playerid} Player Details by Player
DefaultApi player_details_by_rookie_draft_year GET /{format}/Rookies/{season} Player Details by Rookie Draft Year
DefaultApi player_details_by_team GET /{format}/Players/{team} Player Details by Team
DefaultApi player_game_red_zone_stats GET /{format}/PlayerGameRedZoneStats/{season}/{week} Player Game Red Zone Stats
DefaultApi player_game_red_zone_stats_inside_five GET /{format}/PlayerGameRedZoneInsideFiveStats/{season}/{week} Player Game Red Zone Stats Inside Five
DefaultApi player_game_red_zone_stats_inside_ten GET /{format}/PlayerGameRedZoneInsideTenStats/{season}/{week} Player Game Red Zone Stats Inside Ten
DefaultApi player_game_stats_by_player GET /{format}/PlayerGameStatsByPlayerID/{season}/{week}/{playerid} Player Game Stats by Player
DefaultApi player_game_stats_by_team GET /{format}/PlayerGameStatsByTeam/{season}/{week}/{team} Player Game Stats by Team
DefaultApi player_game_stats_by_week GET /{format}/PlayerGameStatsByWeek/{season}/{week} Player Game Stats by Week
DefaultApi player_game_stats_by_week_delta GET /{format}/PlayerGameStatsByWeekDelta/{season}/{week}/{minutes} Player Game Stats by Week Delta
DefaultApi player_game_stats_delta GET /{format}/PlayerGameStatsDelta/{minutes} Player Game Stats Delta
DefaultApi player_season_red_zone_stats GET /{format}/PlayerSeasonRedZoneStats/{season} Player Season Red Zone Stats
DefaultApi player_season_red_zone_stats_inside_five GET /{format}/PlayerSeasonRedZoneInsideFiveStats/{season} Player Season Red Zone Stats Inside Five
DefaultApi player_season_red_zone_stats_inside_ten GET /{format}/PlayerSeasonRedZoneInsideTenStats/{season} Player Season Red Zone Stats Inside Ten
DefaultApi player_season_stats GET /{format}/PlayerSeasonStats/{season} Player Season Stats
DefaultApi player_season_stats_by_player GET /{format}/PlayerSeasonStatsByPlayerID/{season}/{playerid} Player Season Stats by Player
DefaultApi player_season_stats_by_team GET /{format}/PlayerSeasonStatsByTeam/{season}/{team} Player Season Stats by Team
DefaultApi player_season_third_down_stats GET /{format}/PlayerSeasonThirdDownStats/{season} Player Season Third Down Stats
DefaultApi pro_bowlers GET /{format}/ProBowlers/{season} Pro Bowlers
DefaultApi schedule GET /{format}/Schedules/{season} Schedule
DefaultApi scores_by_season GET /{format}/Scores/{season} Scores by Season
DefaultApi scores_by_week GET /{format}/ScoresByWeek/{season}/{week} Scores by Week
DefaultApi scores_by_week_simulation GET /{format}/SimulatedScores/{numberofplays} Scores by Week Simulation
DefaultApi season_current GET /{format}/CurrentSeason Season Current
DefaultApi season_last_completed GET /{format}/LastCompletedSeason Season Last Completed
DefaultApi season_upcoming GET /{format}/UpcomingSeason Season Upcoming
DefaultApi stadiums GET /{format}/Stadiums Stadiums
DefaultApi standings GET /{format}/Standings/{season} Standings
DefaultApi team_game_stats GET /{format}/TeamGameStats/{season}/{week} Team Game Stats
DefaultApi team_season_stats GET /{format}/TeamSeasonStats/{season} Team Season Stats
DefaultApi teams_active GET /{format}/Teams Teams (Active)
DefaultApi teams_all GET /{format}/AllTeams Teams (All)
DefaultApi teams_by_season GET /{format}/Teams/{season} Teams by Season
DefaultApi timeframes GET /{format}/Timeframes/{type} Timeframes
DefaultApi week_current GET /{format}/CurrentWeek Week Current
DefaultApi week_last_completed GET /{format}/LastCompletedWeek Week Last Completed
DefaultApi week_upcoming GET /{format}/UpcomingWeek Week Upcoming

Documentation For Models

Documentation For Authorization

apiKeyHeader

  • Type: API key
  • API key parameter name: Ocp-Apim-Subscription-Key
  • Location: HTTP header

apiKeyQuery

  • Type: API key
  • API key parameter name: subscription-key
  • Location: URL query string

Author

fantasy-data-client-python's People

Contributors

jamesanglin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.