Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This report returns the distribution of a given query within the group of pivots selected.

Report ID: FilterDistribution

Input parameters (see common parameters)

Parameter name

Type

Required

Description

Default

offsetint(error)The number of results to omit (from the start of the result set)0
rowsint(error)Number of results to return50
evolbool(error)Calculate the evolution of certain fields in the requestFalse
termsstr(tick)Query to searchNone
top_kint(error)Max results to return by pivot10
typeint(error)Type of queries to return (0: all, 1: queries w/results, 2: queries wo/results)0
pivotslist[str](tick)List of pivots to use in the request, separated by commaFilters in config

Responses

200 - successful information retrieve

Type: application/json
Example application/json
{
    "data": [
        {
            "filter": "lang",
            "distribution": [
                {
                    "value": "es",
                    "count": 4
                },
                {
                    "value": "pt",
                    "count": 2
                },
                {
                    "value": "es-mx",
                    "count": 2
                }
            ]
        }
    ],
    "params": {
        "site_id": "sample",
        "start_date": 1527897600000,
        "end_date": 1527984000000,
        "filters": [],
        "offset": 0,
        "rows": 50,
        "evol": false,
        "top_k": 10,
        "pivots": [
            "lang"
        ],
        "terms": "camisa",
        "terms_hash": 8926468711736637978,
        "type": 0
    }
}


  • No labels