Skip to content

Getting lap times #112

Closed Answered by jolpica
Oldertarl asked this question in Q&A
Nov 27, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Oldertarl
Comment options

Answer selected by Oldertarl
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