> ## 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`، يُرسَل كقيمة خام لترويسة `Authorization` — راجع [نظرة عامة على واجهة برمجة التطبيقات للإدارة](/ar/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">
  احتساب الاستجابات المُرسَلة عبر رمز QR هذا فقط (قيمة `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` مرة واحدة لكل خيار حدّدته.
* كتل المحتوى المخصّصة للعرض فقط ليست أسئلة ولا تظهر.

## ذو صلة

* [الحصول على تحليلات النموذج](/ar/api-reference/management-api/forms/analytics) — إجماليات الاستجابات ومرات التخطي عبر الزمن، والاستجابات حسب المصدر.
* [سرد استجابات النموذج](/ar/api-reference/management-api/forms/responses-list) — الإرساليات الفردية وراء هذه الأرقام.
* [نظرة عامة على واجهة برمجة التطبيقات للإدارة](/ar/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.

````