min
AggregateReturns the minimum numeric value in an array. With a field argument, extracts that field from each object and returns the smallest value found.
Syntax
min:field?fieldoptionalField name to compare from each object. Omit for arrays of numbers.Use cases
| Use case | Description | URL | |
|---|---|---|---|
| Smallest repo by disk size | Find the smallest repo (in KB) in a user's portfolio. | https://httpip.es/api/pipe/fetch:https://api.github.com/users/octocat/repos|min:size | |
| Lowest post ID for a user | Find the user's earliest post by its lowest ID. | https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/posts|filter:userId,eq,3|min:id | |
| Minimum of a number array | Return the smallest value from a literal array. | https://httpip.es/api/pipe/echo:[42,17,88,5,63]|min | |
| Least open issues | Find which repo has the fewest open issues. | https://httpip.es/api/pipe/fetch:https://api.github.com/users/octocat/repos|min:open_issues_count |