Comment on page
How pagination works on the Rated API.
Pagination operates in reverse chronological order, starting from the most recent complete day and working back to genesis.
In order for Rated to accurately calculate the data for a given day, it is essential that the "day" has passed in its entirety, allowing us to fetch all slots.
When you get data from the Rated API, you can choose a time frame by setting start and end days. Just use the
You can also pick how many items show up per page by using the
sizequery parameter. The default is 10 items per page.
from=700&size=10will return data from day
datetimeis also supported in
to. Alternatively, one could query
from=2022-12-01&size=10to obtain data from
In this case the Rated API will convert the date to the
daythat was completed on the
2022-12-01, essentially retrieving data for the period between
When you get data from the Rated API, it might give you a link to more data if there's more than one page of results.
Just use the URL in
nextto continue fetching the rest of the data.
When there's no more data left, the Rated API will stop giving you the link and show
next: null. If you didn't set a end date with the
toquery parameter, it will keep giving you data all the way back to the genesis.