Applies the given function to the data from all pages of the given api call
The api call to get data from
The function to apply
The first page to start iterate from
The requested page size
Applies the given function to the data from all pages of the given api call