Skip to main content

Histogram from global index

GET
api/v1/search/histogram/:type

Retrieve the distribution of the number of search results for a given search query. Histograms can be made for distribution over time or over specific metrics.

Path Parameters

  • type string required
    Example: published

Query Parameters

  • q string required

    The query to search for.

    Example: cats AND dogs
  • min string

    Minimum value for bins

  • max string

    Maximum value for bins

  • min_include string

    Include min value. Allowed values: true or false. Default value: true.

  • max_include string

    Include max value. Allowed values: true or false. Default value: false.

  • interval string

    Bin Interval. Duration for published and search_indexed / Integer for histogram / not used for distribution.

  • timezone string

    Timezone for the duration interval (e.g. Europe/Luxembourg). Allowed values are timezone names. Default value: UTC

    Example: UTC
  • breakdown string

    Nested histogram. Allowed values: sentiment, sourcetype, country.

    Example: sentiment
  • value_type string

    Nested metric for time based histograms.

    Example: engagement
  • top_n integer

    Size limiter for demographic distribution.

    Example: 10
Responses

OK


Schema
  • object
Loading...