HTTP Drop Aggregation


Drop data within a single Flow can be grouped and aggregated in powerful ways. For example:

  • Get the average wind speed in the last 10 minutes, by town
  • Get the maximum temperature within 5 miles of New York City
  • Get the percentage of sensors that are currently online

Request


POST https://api.flowthings.io/v0.1/<account_id>/drop/<flowId>/aggregate

Required Fields


groupBy
A list of the fields by which you'd like the results grouped. Results can be grouped by any literal element within a Drop
output
The fields you want to output in your query

Optional Fields


filter
Filter will only include the Drops whose data you're interested in aggregating
rules
Takes boolean expressions and returns a list of booleans expressed as 0s and 1s for which drops returned true or false
sorts
The order in which the results are returned

Further Information

For additional information on usage, visit the Drop Aggregation page.