---
title: "Get detailed audience"
method: GET
path: "/audiences/detailed"
tags: ["Audience"]
---

# Get detailed audience

`GET /audiences/detailed`

Get detailed statistics for one segment

## Query parameters

- `request` DetailedAudienceRequestIO, required
  - `siteId` integer, required — Site on which audience is configured
  - `segmentId` integer, required — Segment for which you wish to get statistics
  - `startDate` string, date, required — Audience will be calculated since the date YYYY-MM-DD
  - `endDate` string, date, required — Audience will be calculated till the date YYYY-MM-DD
  - `analyticsLevel` 'VISIT' | 'VISITOR', required — Indicates at what level the calculations were made.
  - `filters` union[] — List of filters to apply on audience results.
    - union
      - ExperimentAudienceFilter — List of filters to apply on audience results.
        - `type` 'EXPERIMENT' | 'GOAL' | 'PERSONALIZATION' | 'SEGMENT_CRITERIA' | 'SEGMENT' | 'FAVORITE', required — Filter type
        - `id` integer, required — Experiment's id for this filter
        - `variationIds` integer[] — List of associated variation ids for this experiment filter
        - `include` boolean
      - FavoriteAudienceFilter — List of filters to apply on audience results.
        - `type` 'EXPERIMENT' | 'GOAL' | 'PERSONALIZATION' | 'SEGMENT_CRITERIA' | 'SEGMENT' | 'FAVORITE', required — Filter type
        - `include` boolean — Boolean value to include or exclude favorite segments.
      - GoalAudienceFilter — List of filters to apply on audience results.
        - `type` 'EXPERIMENT' | 'GOAL' | 'PERSONALIZATION' | 'SEGMENT_CRITERIA' | 'SEGMENT' | 'FAVORITE', required — Filter type
        - `ids` integer[] — List of goal ids
        - `include` boolean
      - PersonalizationAudienceFilter — List of filters to apply on audience results.
        - `type` 'EXPERIMENT' | 'GOAL' | 'PERSONALIZATION' | 'SEGMENT_CRITERIA' | 'SEGMENT' | 'FAVORITE', required — Filter type
        - `include` boolean
        - `id` integer, required — Personalization unique identifier
        - `exposition` 'ALL' | 'EXPOSED' | 'NOT_EXPOSED', required — Exposition's behavior for a visitor
      - SegmentAudienceFilter — List of filters to apply on audience results.
        - `type` 'EXPERIMENT' | 'GOAL' | 'PERSONALIZATION' | 'SEGMENT_CRITERIA' | 'SEGMENT' | 'FAVORITE', required — Filter type
        - `ids` integer[], required — Filter audience by segment ids.
        - `include` boolean
      - SegmentCriteriaAudienceFilter — List of filters to apply on audience results.
        - `type` 'EXPERIMENT' | 'GOAL' | 'PERSONALIZATION' | 'SEGMENT_CRITERIA' | 'SEGMENT' | 'FAVORITE', required — Filter type
        - `criterias` Filter[], required — Filter audience by segment criterias
          - `type` string, required
  - `breakdowns` string[] — List of breakdowns to be displayed

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api.md) · [All operations](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kameleoon/openapi-definition-for-automation-api/revisions/09f2abcea0b5/schema)
