Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start Period for BoxScores #74

Closed
akaushik101 opened this issue May 31, 2019 · 2 comments
Closed

Start Period for BoxScores #74

akaushik101 opened this issue May 31, 2019 · 2 comments
Labels
question Inquiry from community

Comments

@akaushik101
Copy link

Hi Swar,

For the BoxScoreAdvancedV2/ BoxScoreFourFactorsV2 etc. , I want to obtain only the first quarter data so I set start_period = 1 and end_period = 2. However, no matter what values I set for these variables, it always returns the information for the entire game. Is there a way to simply obtain halftime/ quarterly data?

Thanks!

@swar
Copy link
Owner

swar commented Jun 1, 2019

Just looked these up and they don't make much sense to me, but the following information should work for you.

1st Half
https://stats.nba.com/stats/boxscoretraditionalv2?EndPeriod=10&EndRange=14400&GameID=0021700807&RangeType=2&StartPeriod=1&StartRange=0

2nd Half
https://stats.nba.com/stats/boxscoretraditionalv2?EndPeriod=10&EndRange=28800&GameID=0021700807&RangeType=2&StartPeriod=1&StartRange=14400

1st Quarter
https://stats.nba.com/stats/boxscoretraditionalv2?EndPeriod=10&EndRange=7200&GameID=0021700807&RangeType=2&StartPeriod=1&StartRange=0

2nd Quarter
https://stats.nba.com/stats/boxscoretraditionalv2?EndPeriod=10&EndRange=14400&GameID=0021700807&RangeType=2&StartPeriod=1&StartRange=7200

3rd Quarter
https://stats.nba.com/stats/boxscoretraditionalv2?EndPeriod=10&EndRange=21600&GameID=0021700807&RangeType=2&StartPeriod=1&StartRange=14400

4th Quarter
https://stats.nba.com/stats/boxscoretraditionalv2?EndPeriod=10&EndRange=28800&GameID=0021700807&RangeType=2&StartPeriod=1&StartRange=21600

Qtr/Half RangeType StartPeriod EndPeriod StartRange EndRange
1st Half 2 1 10 0 14400
2nd Half 2 1 10 14400 28800
1st Qtr 2 1 10 0 7200
2nd Qtr 2 1 10 7200 14400
3rd Qtr 2 1 10 14400 21600
4th Qtr 2 1 10 21600 28800

@swar swar added the question Inquiry from community label Jun 1, 2019
@akaushik101
Copy link
Author

Works great, thank you so much - you're amazing Swar!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Inquiry from community
Projects
None yet
Development

No branches or pull requests

2 participants