Skip to content

Getting around ergast.get_race_results() result value limits #640

Answered by theOehrly
nirbhaykwatra asked this question in Q&A
Discussion options

You must be logged in to vote

ergast.get_race_results takes an optional limit parameter that you can set to any value you want.

https://docs.fastf1.dev/ergast.html#fastf1.ergast.Ergast.get_race_results

Note that the ergast server accepts a maximum limit of 100, though. So you will still need to make multiple requests.

The ErgastMultiResponse inherits from ErgastResponseMixin, so you can call .get_next_result_page() on each returned result object to get the next results.

https://docs.fastf1.dev/ergast.html#fastf1.ergast.interface.ErgastResponseMixin

You will need to merge the data manually though. Auto-merging is not implemented.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nirbhaykwatra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants