> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acusight.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get project analytics

> Returns the latest dataset analytics for a project and can queue a regeneration job when requested.



## OpenAPI

````yaml /api-spec.json get /data/projects/{id}/analytics
openapi: 3.0.0
info:
  contact:
    name: Acusight API Support
  description: >-
    Acusight platform API - custom endpoints + Portainer proxy routes for edge
    AI deployments
  title: Acusight API
  version: 1.0.0
servers:
  - url: https://acusight.io/api
    description: AcuSight Cloud (hosted)
security: []
tags:
  - name: Devices & provisioning
    description: Register, provision, and manage edge devices and their agents.
  - name: Virtual devices
    description: Create and drive simulated devices for testing and demos.
  - name: Alerts & telemetry
    description: Model alerts, alert rules, and product telemetry.
  - name: Organization
    description: Organization-level settings.
  - name: Datasets & data
    description: Projects, batches, datasets, images, annotations, and drift.
  - name: Models & training
    description: Model registry, training jobs, exports, and inference.
  - name: Pipeline data
    description: Detection time-series and aggregated pipeline analytics.
paths:
  /data/projects/{id}/analytics:
    get:
      tags:
        - Datasets & data
      summary: Get project analytics
      description: >-
        Returns the latest dataset analytics for a project and can queue a
        regeneration job when requested.
      parameters:
        - description: Project ID
          in: path
          name: id
          required: true
          schema:
            type: integer
        - description: Set to true to enqueue analytics regeneration
          in: query
          name: regenerate
          schema:
            type: boolean
      responses:
        '200':
          description: Project analytics payload
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/types.APIResponse'
                  - properties:
                      data:
                        $ref: '#/components/schemas/types.ProjectAnalyticsDTO'
                    type: object
        '400':
          description: Invalid project ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.APIResponse'
        '404':
          description: Analytics not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.APIResponse'
        '500':
          description: Failed to load analytics
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.APIResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    types.APIResponse:
      properties:
        data: {}
        error:
          $ref: '#/components/schemas/types.APIError'
        meta:
          $ref: '#/components/schemas/types.APIMeta'
        success:
          type: boolean
      type: object
    types.ProjectAnalyticsDTO:
      properties:
        avg_megapixels:
          type: number
        classes:
          items:
            $ref: '#/components/schemas/types.DatasetClassAnalyticsDTO'
          type: array
        generated_at:
          type: string
        job_id:
          type: integer
        max_megapixels:
          type: number
        median_height:
          type: number
        median_ratio:
          type: number
        median_shape:
          type: string
        median_width:
          type: number
        min_megapixels:
          type: number
        null_images:
          type: integer
        project_id:
          type: integer
        regenerating:
          type: boolean
        status:
          type: string
        total_batches:
          type: integer
        total_classes:
          type: integer
        total_images:
          type: integer
      type: object
    types.APIError:
      properties:
        code:
          type: string
        details:
          type: string
        message:
          type: string
      type: object
    types.APIMeta:
      properties:
        count:
          type: integer
        limit:
          type: integer
        offset:
          type: integer
        total:
          type: integer
      type: object
    types.DatasetClassAnalyticsDTO:
      properties:
        class_color:
          type: string
        class_id:
          type: integer
        class_name:
          type: string
        missing_count:
          type: integer
        null_example_count:
          type: integer
        test_count:
          type: integer
        total_count:
          type: integer
        train_count:
          type: integer
        valid_count:
          type: integer
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT access token. Paste the token only; the Bearer prefix is added
        automatically.

````