Git Product home page Git Product logo

fantasymoneyball's Introduction

Fantasy Moneyball

What?

An ongoing project consisting of scripts and web-app for viewing and analyzing our fantasy baseball league hosted on ESPN Fantasy Baseball

Why?

ESPN Fantasy & Games provides effective tools for draft prep, live drafts and league and roster management. However, we saw a distance between the detail of the provided team stats relative to the volume of available baseball Sabermetrics.

ESPN API

Below is some documentation on of the JSON API endpoints used by ESPN Fantasy Sports to populate their own client views through the fantasy baseball portal. Your experience may vary, so please share any comments!

Daily Stats

BASE URL:

REQUIRED PARAMETERS:

  • INVARIANT:

    • view='stats'
    • mode='bydate'
  • INVARIANT FOR LEAGUE:

    • leagueId=[INTEGER]
  • VARIABLE:

    • filter=[1=batting, 2=pitching]
    • teamId=[INTEGER]
    • start=[YYYYMMDD] (20140322 for 2014)
    • end=[YYYYMMDD] (20141231 for 2014)

Daily Roster

BASE URL:

REQUIRED PARAMS:

  • INVARIANT:
    • view=stats
    • managingIr=false
    • droppingPlayers=false
    • asLM=false
  • INVARIANT FOR LEAGUE:
    • leagueId=[INTEGER]
  • VARIABLE:
    • teamId=[INTEGER]
    • scoringPeriodId=[INTEGER 1-# games in season] (191 for 2014)
    • seasonId=[YYYY]

Condensed roster

BASE = "http://games.espn.go.com/flb/boxscorequick?"

  • INVARIANT:
    • view=scoringperiod
    • version=quick
  • INVARIANT FOR LEAGUE:
    • leagueId=[INTEGER]
  • VARIABLE:
    • teamId=[INTEGER]
    • scoringPeriodId=[INTEGER 1-# games in season] (191 for 2014)
    • seasonId=[YYYY]

fantasymoneyball's People

Contributors

dagrha avatar dmarkell avatar

Watchers

 avatar

Forkers

digideskio

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.