shinyapps.io: data from API (read_lines())

Yes it is possible to read external data from shinyapps.io.

However, shinyapps.io is hosted in AWS, and from I am reading, NBA stats is explicitly blocking AWS IP addresses. Sorry I don't have better news.