Smartocto Insights API: Sort parameter

To sort by a specific field, use a field name followed by ".desc" or ".asc" for different sort directions. Please, use some sample requests to obtain all the available field names, but keep in mind the differences described below in this article.

Example:

cpi_general.desc

Differences for field and sort names

For legacy reasons, a sort parameter doesn't always have the same name as the field in the response. 

The differences are as follows:

Parameter Field name in the response Sort name
Article reads total article_reads article_reads_total
Social actions social_actions social_actions_total
Attention time attention_minutes attention_minutes_total