> ## 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 por pregunta

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

Devuelve cómo se respondió cada pregunta de un formulario, en el mismo orden de preguntas del formulario: cuántas respuestas la contestaron, qué proporción de las respuestas representa eso y — para las preguntas de opción, de valoración y de escala — con qué frecuencia se dio cada respuesta.

<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">
  Solo cuenta las respuestas de esta fecha en adelante (`YYYY-MM-DD`).
</ParamField>

<ParamField query="to" type="string">
  Solo cuenta las respuestas hasta esta fecha inclusive (`YYYY-MM-DD`).
</ParamField>

<ParamField query="qr_code_id" type="string">
  Solo cuenta las respuestas enviadas a través de este código QR (su `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` es `answered` como porcentaje de las respuestas del formulario en el período, con un decimal. Los envíos omitidos no son respuestas y no se cuentan.
* `distribution` solo aparece en las preguntas de opción (`multipleChoice`, `checkbox`, `dropdown`), de valoración (`starRating`, `emoji`, `likeDislike`) y de escala (`linearScale`, `number`). En las preguntas de opción se enumeran todas las opciones, incluidas las que nadie eligió, de la más elegida a la menos. Una respuesta `checkbox` cuenta una vez por cada opción que marcó.
* Los bloques de contenido que solo se muestran no son preguntas y no aparecen.

## Relacionado

* [Obtener analíticas de formulario](/es/api-reference/management-api/forms/analytics) — totales de respuestas y omisiones a lo largo del tiempo, y respuestas por fuente.
* [Listar respuestas de formulario](/es/api-reference/management-api/forms/responses-list) — los envíos individuales detrás de estos números.
* [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/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.

````