Relative Content

Tag Archive for pythondatabaseapidata-collection

How do I get all the data I need from this API instead of querying one by one?

Ideally, I need to get statistics for 1,000+ players over 10 seasons or more. I am using this API – https://rapidapi.com/tipsters/api/os-sports-perform/playground/apiendpoint_b6145a7f-5108-4d5a-b9ba-9510e1c1cbea. At the moment I can only see my option as doing it one by one using the ‘GET player statistics’ option but of course, this would be extremely time intensive. Is there a way I can query it all at once or at least in chunks? My problem is that I have to specify each player_id, tournament_id and season_id each time I want a player’s statistics. I thought about a loop but I’m not sure how easy this would be to implement given that the IDs for players, tournaments and seasons are not sequential. Also, simply gathering all the IDs in the first place seems like it would take a lot of time. Any help would be greatly appreciated, thanks!