Analyzes bundle content over a series of time periods and generates a trend report.
interval specifies the duration of each time period in the report. For example, you can generate a report that gives monthly statistics. If there are no bundles for a given period, that period will not be present in the report.
content specifies the content type to analyze and include in the report. These can include tracks and insights. Multiple values can be specified to generate a rich report. If content is not specified, only bundle counts are included in the report.
filter is used to limit the bundles in the report according to specific criteria based on metadata and bundle values. A report filter behaves in the same way as a search filter. It uses an expression syntax similar to Javascript boolean expressions. An expression is made up of zero or more terms joined by logical operators with each term having a field, a comparison operator, and a literal value. Parentheses can be used to logically group terms.
field-name comparison-operator literal-value
where:field-name
is a metadata field or bundle.name
, bundle.id
, bundle.external_id
, bundle.created
, or bundle.updated
.comparison-operator
is ==
, <
, >
, <=
, >=
, or !=
literal-value
is a number (integer or decimal), boolean true
or false
, or a string with either double quotes ("
) or single quotes ('
).&&
(logical AND), ||
(logical OR). A logical NOT is !
and can be placed before a term (or group of terms.)category=="music" && (tag == "soft" || tag == "smooth") && tag != "jazz" && bundle.created > "2014-03-15T00:00:00.0Z"
language parameter specifies the language to use for analyzing the report. This value is only relevant for language-related insight data. Supported languages: en, en-UK, en-US, es, fr.
curl --location --request GET 'https://api.clarify.io//v1/reports/trends?interval='
{}