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

# Get transaction statistics

> Retrieves statistics for transactions, including counts and fee summaries for the last 24 hours.



## OpenAPI

````yaml /openapi-specs/pro-api-v11.yaml get /v2/transactions/stats
openapi: 3.0.0
info:
  contact:
    email: info@blockscout.com
  title: Blockscout
  version: 11.0.3
servers:
  - url: http://localhost/api
    variables: {}
security: []
tags:
  - name: blocks
  - name: transactions
  - name: addresses
  - name: internal-transactions
  - name: tokens
  - name: token-transfers
  - name: smart-contracts
  - name: config
  - name: main-page
  - name: search
  - name: stats
  - name: csv-export
  - name: account-abstraction
  - name: withdrawals
  - name: advanced-filters
  - name: arbitrum
  - name: legacy
  - name: optimism
  - name: mud
  - name: celo
  - name: scroll
  - name: zilliqa
paths:
  /v2/transactions/stats:
    get:
      tags:
        - transactions
      summary: Get transaction statistics
      description: >-
        Retrieves statistics for transactions, including counts and fee
        summaries for the last 24 hours.
      operationId: BlockScoutWeb.API.V2.TransactionController.stats
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  pending_transactions_count:
                    $ref: '#/components/schemas/IntegerString'
                  transaction_fees_avg_24h:
                    $ref: '#/components/schemas/IntegerString'
                  transaction_fees_sum_24h:
                    $ref: '#/components/schemas/IntegerString'
                  transactions_count_24h:
                    $ref: '#/components/schemas/IntegerString'
                required:
                  - transactions_count_24h
                  - pending_transactions_count
                  - transaction_fees_sum_24h
                  - transaction_fees_avg_24h
                type: object
                x-struct: null
                x-validate: null
          description: Transaction statistics.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonErrorResponse'
          description: Unprocessable Entity
      callbacks: {}
components:
  schemas:
    IntegerString:
      nullable: false
      pattern: ^-?([1-9][0-9]*|0)$
      title: IntegerString
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.IntegerString
      x-validate: null
    JsonErrorResponse:
      properties:
        errors:
          items:
            properties:
              detail:
                example: null value where string expected
                type: string
                x-struct: null
                x-validate: null
              source:
                properties:
                  pointer:
                    example: /data/attributes/petName
                    type: string
                    x-struct: null
                    x-validate: null
                required:
                  - pointer
                type: object
                x-struct: null
                x-validate: null
              title:
                example: Invalid value
                type: string
                x-struct: null
                x-validate: null
            required:
              - title
              - source
              - detail
            type: object
            x-struct: null
            x-validate: null
          type: array
          x-struct: null
          x-validate: null
      required:
        - errors
      title: JsonErrorResponse
      type: object
      x-struct: Elixir.OpenApiSpex.JsonErrorResponse
      x-validate: null

````