> ## 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/

يعيد تحليلات مجمَّعة لنموذج — أعداد الاستجابات/التخطي عبر الزمن وتفصيل حسب مصدر الزيارات.

<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`). مطلوب مع `to` لحساب `elevation` (نسبة التغيّر مقابل فترة سابقة بنفس الطول).
</ParamField>

<ParamField query="to" type="string">
  تاريخ الانتهاء (`YYYY-MM-DD`).
</ParamField>

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

<ResponseExample>
  ```json 200 theme={null}
  {
    "entries_count": {
      "total": 42,
      "form_entries": 40,
      "legacy_entries": 2,
      "responses": {
        "total": 38,
        "elevation": { "percent": 15, "previous": 33, "type": "+", "period": { "start": "2026-08-01", "end": "2026-08-31" } }
      },
      "skips": { "total": 4, "elevation": null }
    },
    "responses": [["2026-09-01", 5], ["2026-09-02", 3]],
    "skips": [["2026-09-01", 1]],
    "responses_by_source": [["Direct", 10], ["docs-v2-first-qr-code", 28]]
  }
  ```
</ResponseExample>

تكون `elevation` بقيمة `null` في `responses` و`skips` تحت `entries_count` ما لم يُقدَّم كل من `from` و`to`. يحسب `legacy_entries` الإرساليات المُرحَّلة من قائمة عملاء محتملين تم تحويل هذا النموذج منها، إن وُجدت. يتضمن `responses_by_source` دائمًا مجموعة `"Direct"` (إرساليات بدون رمز QR مرفق) حتى عندما تكون `0`.

## ذو صلة

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


## OpenAPI

````yaml api-reference/openapi/management-api.json GET /forms/{form_id}/analytics/
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/:
    get:
      summary: Get form analytics
      operationId: getManagedFormAnalytics
      responses:
        '200':
          description: Aggregated analytics for the form.
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: 401f7ac837da42b97f613d789819ff93537bee6a`. 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.

````