max
AggregateReturns the maximum numeric value in an array. With a field argument, extracts that field from each object and returns the largest value found.
Syntax
max:field?fieldoptionalField name to compare from each object. Omit for arrays of numbers.Use cases
| Use case | Description | URL | |
|---|---|---|---|
| Highest star count | Find the peak star count across all of a user's repos. | https://httpip.es/api/pipe/fetch:https://api.github.com/users/octocat/repos|max:stargazers_count | |
| Largest repo by size | Find the biggest repo in KB by maximising the size field. | https://httpip.es/api/pipe/fetch:https://api.github.com/users/octocat/repos|max:size | |
| Highest ID (most recent record) | Use max on an auto-incrementing ID to find the newest record. | https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/posts|max:id | |
| Maximum of a number array | Return the largest value from a literal array. | https://httpip.es/api/pipe/echo:[42,17,88,5,63]|max |