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

# Get task statistics

> Returns aggregated task counts grouped by status. Provides an overview of all tasks in the system across different processing stages.



## OpenAPI

````yaml /data-processor-api/openapi/openapi-hdp-server.json get /tasks/stats
openapi: 3.1.0
info:
  title: Herodotus Data Processor Server API
  description: API documentation for the Herodotus Data Processor Server
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://staging.hdp.api.herodotus.cloud
    description: Staging API endpoint
security: []
tags:
  - name: tasks
    description: Task management endpoints
  - name: health
    description: Health check endpoints
  - name: modules
    description: Module registry endpoints
paths:
  /tasks/stats:
    get:
      tags:
        - tasks
      summary: Get task statistics
      description: >-
        Returns aggregated task counts grouped by status. Provides an overview
        of all tasks in the system across different processing stages.
      operationId: getTaskStats
      responses:
        '200':
          description: Statistics retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskStatsResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TaskStatsResponse:
      type: object
      required:
        - total_tasks
        - stats_by_status
      properties:
        stats_by_status:
          type: object
          additionalProperties:
            type: integer
            format: int64
            minimum: 0
          propertyNames:
            type: string
        total_tasks:
          type: integer
          format: int64
          minimum: 0
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        details:
          type:
            - string
            - 'null'
        error:
          type: string
        message:
          type:
            - string
            - 'null'
        taskId:
          type:
            - string
            - 'null'

````