Skip to main content

Histogram from a talkwalker project

GET
api/v1/search/p/:project_id/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

  • project_id string required
    Example: a1ab1abc-a123-123a-123a-abcd12ab1a12
  • type string required
    Example: published

Query Parameters

  • q string

    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, topic, channel.

    Example: sentiment
  • value_type string

    Nested metric for time based histograms.

    Example: engagement
  • top_n integer

    Size limiter for demographic distribution.

    Example: 10
  • forecast_days integer

    Time series forecast in days for enabled projects. Available for histogram types published and search_indexed Value: [1, 90]

    Example: 14
Responses

OK


Schema
  • object
Loading...