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

# Export Conversion Analytics

> Export aggregated conversion analytics in CSV/XLS/XLSX formats.

## Query Parameters

| Parameter           | Type                  | Required | Description                                                                                                                               |
| :------------------ | :-------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------- |
| `type`              | `string`              | No       | Comma-separated sections. Typical: `count,trend,event_breakdown,site_breakdown,funnel,scan_overview,hybrid_funnel`.                       |
| `from`              | `string (YYYY-MM-DD)` | Yes      | Inclusive start date.                                                                                                                     |
| `to`                | `string (YYYY-MM-DD)` | Yes      | Inclusive end date.                                                                                                                       |
| `file_format`       | `string`              | Yes      | One of: `csv`, `xls`, `xlsx`.                                                                                                             |
| `sheet`             | `string`              | No       | CSV-only selected sheet key. Examples: `count`, `trend`, `event_breakdown`, `site_breakdown`, `funnel`, `hybrid_funnel`, `scan_overview`. |
| `all`               | `boolean`             | No       | Include all QR Codes in scope.                                                                                                            |
| `search`            | `string`              | No       | Search value used with `all=true`.                                                                                                        |
| `category`          | `string`              | No       | Comma-separated category slugs.                                                                                                           |
| `users`             | `string`              | No       | Comma-separated user IDs.                                                                                                                 |
| `conversion_events` | `string`              | No       | Comma-separated conversion event keys.                                                                                                    |
| `funnel_steps`      | `string`              | No       | Ordered comma-separated event keys for funnel calculation.                                                                                |

## Request Body

| Field       | Type            | Required | Description                          |
| :---------- | :-------------- | :------- | :----------------------------------- |
| `filter_by` | `string`        | Yes      | One of: `qrid`, `id`, `tags`.        |
| `q`         | `array[string]` | Yes      | Values corresponding to `filter_by`. |

## Example

```bash theme={null}
curl -X POST "https://management.scanova.io/analytics/ct/export/?type=count,trend,event_breakdown,site_breakdown,funnel,scan_overview,hybrid_funnel&from=2026-03-03&to=2026-03-10&file_format=xlsx" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "filter_by": "qrid",
    "q": ["Q20a18d4af3e947a1"]
  }'
```


## OpenAPI

````yaml POST /analytics/ct/export/
openapi: 3.0.0
info:
  title: Scanova API - Analytics
  description: >-
    Analytics endpoints for retrieving QR code scan data, statistics, and
    exporting analytics reports. These endpoints provide comprehensive insights
    into QR code performance, user behavior, and geographic distribution.
  version: 1.0.0
servers:
  - url: https://management.scanova.io
    description: Scanova Management API Server
security:
  - apiKeyAuth: []
paths:
  /analytics/ct/export/:
    post:
      tags:
        - Analytics
      summary: Export Conversion Analytics
      description: Export aggregated conversion analytics in CSV/XLS/XLSX.
      parameters:
        - name: type
          in: query
          required: false
          schema:
            type: string
          description: Comma-separated analytics sections.
        - name: from
          in: query
          required: true
          schema:
            type: string
            format: date
        - name: to
          in: query
          required: true
          schema:
            type: string
            format: date
        - name: file_format
          in: query
          required: true
          schema:
            type: string
            enum:
              - csv
              - xls
              - xlsx
        - name: sheet
          in: query
          required: false
          schema:
            type: string
          description: CSV sheet key.
        - name: all
          in: query
          required: false
          schema:
            type: boolean
        - name: search
          in: query
          required: false
          schema:
            type: string
        - name: category
          in: query
          required: false
          schema:
            type: string
        - name: users
          in: query
          required: false
          schema:
            type: string
        - name: conversion_events
          in: query
          required: false
          schema:
            type: string
        - name: funnel_steps
          in: query
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - filter_by
                - q
              properties:
                filter_by:
                  type: string
                  enum:
                    - qrid
                    - id
                    - tags
                q:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: File generated successfully
          content:
            text/csv:
              schema:
                type: string
                format: binary
            application/vnd.ms-excel:
              schema:
                type: string
                format: binary
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API key authentication. Enter your API key directly in the Authorization
        header.

````