There are different pagination schemas can be applied and we need to choose one a standard, so we use it for all APIs.
We could consider ones from Django rest framework - https://www.django-rest-framework.org/api-guide/pagination/#api-reference . The same strategies are mentioned in JSON API specification - https://jsonapi.org/format/#fetching-pagination
I would opt for offset strategy, but all of them are valid options.