Description Details Author(s) See Also
A simple interface to stats.nba.com providing basic query functionality
This is a simple interface to stats.nba.com based off of the Python package nba_py.
Before going into any further details of the package, there are some house-keeping tasks:
All the data from the website is Copyright (c) 2016 NBA Media Ventures, LLC. All rights reserved. When using this package you must agree to the Terms of Use of the website.
As this package sends http requests to stats.nba.com, you should read their their Privacy Policy before using this package.
This code is licensed under the MIT license https://www.r-project.org/Licenses/MIT, and you may use this package strictly under those terms.
The details of the API end-points were manually sourced by the approach given on this blog post: http://www.gregreda.com/2015/02/15/web-scraping-finding-the-api. In order to semi-future-proof this, the queries to these end-points and the data extracted from them are evaluated through a fairly informal abstract data layer (ADL). The ADL is specified in internal data extracted, from a YAML which can be viewed on github: http://www.github.com/stephematician/statsnbaR/data-raw.
The package is split into player, team and game data.
Stephen Wade stephematician@gmail.com
yaml, httr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.