Skip to content

Collection Information​

GET
/mongodb/collections/{collectionName}

All Information about a single Collection. 404 for a collection that does not exist (2.0.0).

Authorizations​

httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)

Parameters​

Path Parameters

collectionName*

The name of your MongoDb Collection

Type
string
Required

Query Parameters

includeDetails

Include all details for the Collection

Type
boolean
Default
false

Responses​

application/json
JSON
{
  
"ns": "string",
  
"collectionType": "string",
  
"scaleFactor": 0,
  
"size": 0,
  
"count": 0,
  
"storageSize": 0,
  
"avgObjSize": 0,
  
"nindexes": 0,
  
"indexSizes": {
  
  
"additionalProperties": 0
  
},
  
"totalIndexSize": 0,
  
"ok": 0,
  
"fetched": "2024-01-01T00:00:00Z",
  
"map": {
  
  
"additionalProperties": null
  
}
}

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.