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.

distinct

distinct

Returns distinct set of records

Works with the following datatypes:

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

The distinct keyword can be used in conjunction with $select to return one record for each distinct value in the selected column(s). For example, to fetch the distinct departments

https://data.cityofchicago.org/resource/tt4n-kn4t.json?$select=distinct department

It can also be used in a full $query to select distinct values.

https://data.cityofchicago.org/resource/tt4n-kn4t.json?$query=select distinct department