-
When I am trying to get the lap times for the different races, I am bumping in to some inconsistent data it looks like, or I am reading the data wrong - if so please advice In addition, driver on position 1 (Max Verstappen) is not showing with offset=1 where in offset=0 the last driver is hulkenberg. kindly advice if this is the data presentation or I am doing something wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, Limit tells the API how kany results to return (in this case 100) For example, if I have a list of numbers from 1 to 10: So to get all the results in the smallest number of queries, you'd want to increase the offset in multiples of the limit This is different to the usual paging system for results that many other APIs use. |
Beta Was this translation helpful? Give feedback.
Hey,
Limit tells the API how kany results to return (in this case 100)
Offset tells the API at what result to start outputting from, not what multiple of the limit.
For example, if I have a list of numbers from 1 to 10:
limit=2,offset=0 would return 1,2
limit=2,offset=1 would return 2,3
So to get all the results in the smallest number of queries, you'd want to increase the offset in multiples of the limit
limit=2,offset=2 returns 3,4
This is different to the usual paging system for results that many other APIs use.