Skip to main content

Sort

You can sort the data returned by the API by using the following parameters.

ParameterDescriptionTypeFormat
sort_fieldSpecifies the field to sort by.string
directionSpecifies the sort direction. If not specified, defaults to 'DESC'.stringMust be either 'ASC' or 'DESC'
note

The sorting parameters are optional. If not specified, the data is sorted in descending order by default.

Example:

To sort results in ascending order by creation date, use the following query string parameters:

GET ...?sort_field=source_created_at&direction=ASC