Thanks for your question and sorry to not specify it at the original post.
The data source is a play-by-play dataset bought at www.nbastuffer.com. I am pretty sure that this kind of data can be extracted from stats.nba.com using scrapping techniques. But I do not know yet how to do it.