--- title: "Get Collection Stats" slug: "get-collection-stats-advanced" updated: 2025-01-30T21:06:28Z published: 2025-01-30T21:06:28Z canonical: "documentation.decisions.com/get-collection-stats-advanced" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Get Collection Stats | Step Details | | --- | | **Introduced in Version** | 9.6 | | **Last Modified in Version** | 9.6 | | **Location** | Integration > MongoDB > Advanced | This Step retrieves a list of statistics/properties from a specified collection. ### Prerequisites - Install the [MongoDB](https://documentation.decisions.com/docs/mongodb) Module. - **For v9 Users**: Add a [Project Dependency](https://documentation.decisions.com/docs/project-dependencies) once the MongoDB Module is installed. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Collection Name | Allows Users to specify a Collection Name. | String | | Connection String | Allows Users to specify a Connection String. | String | | Database Name | Allows Users to specify a Database Name. | String | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Collection Stats | This property returns the following collection statistics from the specified collection: **Collection** **Namespace, Number of Documents, Average Document Size, Data Size, Storage Size, Number of Indexes, Index Size, and Average Index Size**. | N/A | | Collection Stats Raw String | This property returns a Raw String of Collection Stats. | String | --- #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-01-20_15h57_02.png) --- Related Information [MongoDB Module Overview](https://documentation.decisions.com/docs/mongodb)