Socrata was acquired by Tyler Technologies in 2018 and is now the Data and Insights division of Tyler. The platform is still powered by the same software formerly known as Socrata but you will see references to Data & Insights going forward.



Returns a count of a given set of records

Works with the following datatypes:

This function works with 2.0 and 2.1 endpoint(s). What does this mean? »

The count(...) function is most commonly used in $select aggregations to return the count of a set of values. For example, to fetch the total number of employees of the City of Chicago:$select=count(annual_salary)

It can also be used in $group aggregations, like this one to get the count of employees by job type:$select=position_title,count(annual_salary)&$group=position_title