Get all pages from the api