sum

When you use this function in a query, it calculates the sum of the values of the specified column in the specified dataset.

For more information on using query rules in a REST API request, see Queries.

For more information on using query functions and operators in a REST API request, see Queries. For an end-to-end description of how to create a query, see Creating a Query.

The codeblock example below calculates the sum of the values for the Magnitude column of the earthquake dataset, whose {DATASET_ID} is 90af668484394fa782cc103409cafe39, for each value in the Region column.