Get Collection Statistics
get_collection_statsGet Bruno collection stats: counts by method, folder, environment, and per-request details. Filter to narrow scope or exclude requests for counts-only overview.
Instructions
Get statistics about a Bruno collection — request counts by method, folders, environments, and per-request details including each request's file path and URL. environmentDetails lists each environment with the NAMES of the variables it declares (values are withheld), so you can see what an environment already defines before merging into it with set_environment_variable. Use filePath values as entries in the requests list of run_collection.
SIZE: the per-request array is the bulk of the response and grows with the collection — a few hundred requests run to tens of kilobytes. Narrow it with folder, method or nameContains, or pass includeRequests: false for counts only. The counts always describe the WHOLE collection; a filtered call adds matchedRequests so the two cannot be confused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Report only requests in this folder, path relative to the collection root. Nested folders are included, so "auth" also matches "auth/oauth2". | |
| method | No | Report only requests with this method, case-insensitive. A request that has no method is bucketed under its kind, so "GRPC" and "WS" work here too. | |
| nameContains | No | Report only requests whose name contains this text, case-insensitive. | |
| collectionPath | Yes | Absolute path to collection directory. Use the path returned by list_collections. | |
| includeRequests | No | Set false to drop the per-request array and return only the counts, folders and environments. |