> 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: getPlanStats() # Method package: wixPricingPlansBackend # Method menu location: wixPricingPlansBackend --> getPlanStats # Method Link: https://dev.wix.com/docs/velo/apis/wix-pricing-plans-backend/get-plan-stats.md # Method Description: Gets statistics about the pricing plans. The `getPlanStats()` function returns a Promise that resolves to statistics about the plans on the site. Currently this function provides only the total number of pricing plans, including archived plans. Only users with "Manage Pricing Plans" [permissions](https://support.wix.com/en/article/roles-permissions-accessing-roles-permissions) can get plan statistics. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get statistics for the pricing plans ```javascript import { Permissions, webMethod } from 'wix-web-module'; import wixPricingPlansBackend from 'wix-pricing-plans-backend'; export const myGetPlanStatsFunction = webMethod(Permissions.Anyone, () => { return wixPricingPlansBackend.getPlanStats() .then((statistics) => { console.log(statistics); }) .catch((error) => { console.error(error); }); }); /* Statistics object relevant to the site's pricing plans: * * { * // Count of all plans (public, hidden and archived) * "total": 8 * } * */ ``` ---