> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: totalPages() # Method package: wixSearch # Method menu location: wixSearch --> WixSearchResult --> totalPages # Method Link: https://dev.wix.com/docs/velo/apis/wix-search/wix-search-result/total-pages.md # Method Description: Returns the total number of pages the search produced. The page size is defined by the [`limit()`](https://dev.wix.com/docs/velo/api-reference/wix-search/wix-search-builder/limit.md) function, can be retrieved using the [`pageSize`](#pageSize) property. You navigate through pages using the [`prev()`](#prev) and [`next()`](#next) functions. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get the total number of pages in a search result ```javascript let resultPages = results.totalPages; // 2 ``` ## Perform a search and get the total number of pages in the search result ```javascript import wixSearch from 'wix-search'; // ... wixSearch.search(phrase) .find() .then( (results) => { let resultPages = results.totalPages; // 2 } ) ; ``` ---