count
AggregateReturns the number of items in an array, the number of keys in an object, or the character length of a string. No arguments required.
Syntax
countUse cases
| Use case | Description | URL | |
|---|---|---|---|
| Total public repos | Count how many public repos a GitHub user has. | https://httpip.es/api/pipe/fetch:https://api.github.com/users/octocat/repos|count | |
| Count completed todos | Filter then count to get the number of finished tasks. | https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/todos|filter:completed,eq,true|count | |
| Count one user's posts | Filter posts by author then count to get their post total. | https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/posts|filter:userId,eq,1|count | |
| Count repos per language | Group by language then count the keys of the result object. | https://httpip.es/api/pipe/fetch:https://api.github.com/users/octocat/repos|group:language|keys|count | |
| Count available API fields | Check how many fields a single API record exposes. | https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/users/1|count |