You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@CristofherJT @- The NBA has been retiring several endpoints. This appears to be one of those. I have it on my backlog to do some testing in this area. This isn't the first, second, or even the fifth one I've seen. 😢
NBA API Version
1.6.1
Issue
Every time I try to retrieve data from the defensehub endpoint the function fails with a JSONDecodeError. I tried many ways to fix it but no luck.
Code
import pandas as pd
from nba_api.stats.endpoints import defensehub
def get_shot_defense_data(seasons):
shot_defense_data = []
The text was updated successfully, but these errors were encountered: