As I understand it, NBA.COM API is limited to only return 250 rows on an API call. I want to get lineup data with more row then that, so the best idea I came up with is to use the custom filters to filter the minutes (the key that the rows are sorted by), and that way with multiple calls I would get the entire lineups info:
As I understand it, NBA.COM API is limited to only return 250 rows on an API call. I want to get lineup data with more row then that, so the best idea I came up with is to use the custom filters to filter the minutes (the key that the rows are sorted by), and that way with multiple calls I would get the entire lineups info:
When I do this from the browser, the url is:
https://www.nba.com/stats/lineups/traditional?CF=MIN*LE*24&GroupQuantity=5&PerMode=Totals&Season=2021-22&SeasonType=Regular%20Season&TeamID=1610612744&slug=traditional
And specifically my change reflects in the url like another parameter:
CF=MIN*LE*24
So I tried to manually manipulate the library code manually to preform this request:
But I still get the same 250 df rows that I got before I passed this parameter. Even if I pass some gibberish:
I still get the same results. It like the parameter is being ignored completely for some reason.
Does anyone has a good idea why this happens? I'm not very familiar with the
requests
library so I might be missing something obvious.