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

# Get Router Statistics

> Obtém estatísticas de roteamento da instância (taxa de sucesso, fallback, tempo médio, etc.).



## OpenAPI

````yaml openapi-v2 GET /router/stats/{instance}
openapi: 3.0.3
info:
  title: ZapThinker API
  version: 2.1.1
servers:
  - url: https://api.zapthinker.com
security: []
paths:
  /router/stats/{instance}:
    get:
      tags:
        - Router Controller
      summary: Get routing statistics
      description: >-
        Obtém estatísticas de roteamento da instância (taxa de sucesso,
        fallback, tempo médio, etc.).
      operationId: getRouterStats
      parameters:
        - name: instance
          in: path
          required: true
          description: Nome da instância
          schema:
            type: string
        - name: days
          in: query
          required: false
          description: Período em dias
          schema:
            type: integer
            default: 7
      responses:
        '200':
          description: Estatísticas de roteamento
          content:
            application/json:
              schema:
                type: object
                properties:
                  period:
                    type: object
                  totalDecisions:
                    type: integer
                  successRate:
                    type: number
                  fallbackRate:
                    type: number
                  avgResponseTime:
                    type: number
                  byIntegration:
                    type: array
                    items:
                      type: object
                  byRule:
                    type: array
                    items:
                      type: object
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
      description: Your authorization key header

````