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

# Obtener analíticas de formulario

> GET /forms/{form_id}/analytics/

Devuelve analíticas agregadas para un formulario — recuentos de respuestas/omisiones a lo largo del tiempo y un desglose por fuente de tráfico.

<Note>
  Requiere una clave de API de gestión con cuota `MANAGEMENT_API` (o `MANAGEMENT_API_SANDBOX`) y el permiso `LEAD_GENERATION_ANALYTICS_CAN_VIEW`, enviada como el valor sin procesar del encabezado `Authorization` — consulte el [resumen de la API de gestión](/es/api-reference/management-api/overview).
</Note>

<ParamField path="form_id" type="string" required>
  El `form_id` del formulario.
</ParamField>

<ParamField query="from" type="string">
  Fecha de inicio (`YYYY-MM-DD`). Requerida junto con `to` para calcular `elevation` (cambio porcentual respecto a un período anterior de igual duración).
</ParamField>

<ParamField query="to" type="string">
  Fecha de fin (`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` es `null` en `responses` y `skips` bajo `entries_count` a menos que se proporcionen tanto `from` como `to`. `legacy_entries` cuenta los envíos trasladados de una lista de leads de la que se convirtió este formulario, si existiera. `responses_by_source` siempre incluye un grupo `"Direct"` (envíos sin código QR adjunto) incluso cuando es `0`.

## Relacionado

* [Listar respuestas de formulario](/es/api-reference/management-api/forms/responses-list) — los envíos individuales detrás de estos números.
* [Exportar respuestas de formulario](/es/api-reference/management-api/forms/export) — descargar los datos subyacentes.
* [Resumen de la API de gestión](/es/api-reference/management-api/overview) — el esquema de autenticación y la arquitectura de cuotas a la que pertenece este endpoint.


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

````