I am trying to figure out how to loop through an api using a wrapper. The api endpoint has pagination, the only way to tell how many pages is when you eventually call a page