> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取表单逐题分析

> GET /forms/{form_id}/analytics/questions/

按表单自身的问题顺序，返回每个问题的作答情况：有多少条响应回答了该问题、占全部响应的比例，以及 —— 对于选择题、评分题和量表题 —— 每个答案被选择的次数。

<Note>
  需要具有 `MANAGEMENT_API`（或 `MANAGEMENT_API_SANDBOX`）配额和 `LEAD_GENERATION_ANALYTICS_CAN_VIEW` 权限的管理 API 密钥，作为原始 `Authorization` 标头值发送 —— 参见[管理 API 概述](/zh/api-reference/management-api/overview)。
</Note>

<ParamField path="form_id" type="string" required>
  表单的 `form_id`。
</ParamField>

<ParamField query="from" type="string">
  仅统计该日期当天或之后的响应（`YYYY-MM-DD`）。
</ParamField>

<ParamField query="to" type="string">
  仅统计该日期当天或之前的响应（`YYYY-MM-DD`）。
</ParamField>

<ParamField query="qr_code_id" type="string">
  仅统计通过此二维码（其 `qrid`）提交的响应。
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.scanova.io/forms/F8a9b0c1d2e3f4g5h/analytics/questions/?from=2026-08-01&to=2026-08-31' \
    --header 'Authorization: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  [
    { "question": "Name", "type": "shortAnswer", "answered": 38, "response_rate": 100.0 },
    {
      "question": "Where would you like to sit?",
      "type": "multipleChoice",
      "answered": 30,
      "response_rate": 78.9,
      "distribution": [
        { "label": "Terrace", "count": 21 },
        { "label": "Inside", "count": 9 },
        { "label": "Bar", "count": 0 }
      ]
    },
    {
      "question": "How was your last visit?",
      "type": "starRating",
      "answered": 25,
      "response_rate": 65.8,
      "distribution": [
        { "label": "5", "count": 14 },
        { "label": "4", "count": 8 },
        { "label": "3", "count": 3 }
      ]
    }
  ]
  ```
</ResponseExample>

* `response_rate` 是 `answered` 占该时间段内表单响应总数的百分比，保留一位小数。跳过的提交不算作响应，不计入统计。
* `distribution` 仅出现在选择题（`multipleChoice`、`checkbox`、`dropdown`）、评分题（`starRating`、`emoji`、`likeDislike`）和量表题（`linearScale`、`number`）中。对于选择题，会列出所有选项（包括无人选择的选项），并按被选次数从多到少排序。一条 `checkbox` 响应中勾选的每个选项各计一次。
* 仅用于展示的内容区块不属于问题，不会出现在结果中。

## 相关内容

* [获取表单分析](/zh/api-reference/management-api/forms/analytics) —— 随时间变化的响应和跳过总数，以及按来源统计的响应数。
* [列出表单响应](/zh/api-reference/management-api/forms/responses-list) —— 这些数字背后的具体提交记录。
* [管理 API 概述](/zh/api-reference/management-api/overview) —— 此端点所属的身份验证方案和配额体系。


## OpenAPI

````yaml api-reference/openapi/management-api.json GET /forms/{form_id}/analytics/questions/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    api.scanova.io (QR codes, folders, tags, leads, forms, analytics, plans,
    shared users & roles), plus the token-creation and usage-stats endpoints
    used to authenticate against it. Every path and request/response shape below
    was verified live against a real API key and the actual running backend
    (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://api.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /forms/{form_id}/analytics/questions/:
    get:
      summary: Get per-question form analytics
      operationId: getManagedFormQuestionAnalytics
      parameters:
        - name: form_id
          in: path
          required: true
          schema:
            type: string
          description: The form's `form_id`.
        - name: from
          in: query
          schema:
            type: string
            format: date
          description: Only responses on or after this date (`YYYY-MM-DD`).
        - name: to
          in: query
          schema:
            type: string
            format: date
          description: Only responses on or before this date (`YYYY-MM-DD`).
        - name: qr_code_id
          in: query
          schema:
            type: string
          description: Only responses submitted through this QR Code (`qrid`).
      responses:
        '200':
          description: One entry per question, in the form's question order.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    question:
                      type: string
                    type:
                      type: string
                    answered:
                      type: integer
                    response_rate:
                      type: number
                    distribution:
                      type: array
                      items:
                        type: object
                        properties:
                          label:
                            type: string
                          count:
                            type: integer
        '404':
          description: No form with this `form_id` in the account.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: YOUR_API_KEY`. A header containing more than
        one space-separated part is rejected outright. Requests also require the
        request's Host header to be the management API host (e.g.
        api.scanova.io) — the same key sent to the regular API host will not
        authenticate.

````