---
title: "Get quiz answers analytics data"
method: POST
path: "/cabinet/analytics/quiz-answers/get-data"
---

# Get quiz answers analytics data

`POST /cabinet/analytics/quiz-answers/get-data`

## Request

- Base URL: `https://api.web2wave.com/api`
- URL: `https://api.web2wave.com/api/cabinet/analytics/quiz-answers/get-data`
- Auth: API key in header `api_key`

Retrieve user response analytics for a specific quiz showing distribution of answers across quiz screens.
This endpoint returns data for creating charts showing how users answered each question in the quiz.

## Request body `application/x-www-form-urlencoded`

- object
  - `project_id` integer, required: Project ID to analyze
  - `quiz_id` integer, required: Quiz ID to analyze
  - `from` string, date: Start date for analysis (YYYY-MM-DD)
  - `to` string, date: End date for analysis (YYYY-MM-DD)
  - `_token` string, required: CSRF token for authentication

## Response `200`

Analytics data retrieved successfully

- object
  - `success` boolean
  - `data` object[]
    - `screen_id` string: Unique identifier for the quiz screen
    - `screen_index` integer: Screen position in quiz (0-based)
    - `screen_title` string: Title of the quiz screen/question
    - `total_responses` integer: Total number of user responses for this screen
    - `chart_data` object: Data formatted for Chart.js visualization
      - `labels` string[]: Answer options
      - `datasets` object[]
        - `label` string
        - `data` integer[]: Number of users who selected each answer
        - `backgroundColor` string[]: Colors for each chart segment
  - `quiz` object
    - `id` integer
    - `name` string
    - `screens_count` integer: Total number of screens in the quiz
  - `period` object
    - `from` string, date
    - `to` string, date

## Other responses

- `400`: Bad request - missing required parameters
- `403`: Access denied to project or quiz

## Changes

- **2026-11-03** `eb8b2d9124ac`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/web2wave/apis/web2wave-api/changes/cabinet/analytics/quiz-answers/get-data/post.md)

---

[API](https://skmtc.dev/web2wave/apis/web2wave-api.md) - [All operations](https://skmtc.dev/web2wave/apis/web2wave-api/llms.txt) - [OpenAPI document](https://skmtc.dev/web2wave/apis/web2wave-api/revisions/eb8b2d9124ac?raw)
