The NBAapi package is designed to make accessing the NBA API (stat.com.nba) easier. It provides functions to download, for example, shot chart data or play-by-play data. Additionally it provides graphical functions to plot court markings, which can be used in conjunction with the shot chart data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.