--- url: https://docs.youcan.shop/themes/sdk/pages.md --- # Pages This module provides a halper for fetching the store's pages. :::info This module is using the Pagination module. The Pagination module to be documented. ::: ## How to use ```ts const response = youcanjs.page.fetchAll(); const pages = await response.data(); const nextPage = response.next().data(); ``` ## Returns Array of [Page](/themes/sdk/types/page/)s. ## Throws [ApplicationException](/themes/sdk/types/exceptions/#applicationexception) if the request fails, or any other error occurs.