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

# Retrieve blockchain network statistics and metrics

> Retrieves blockchain network statistics including total blocks, transactions, addresses, average block time, market data, and network utilization.



## OpenAPI

````yaml /openapi-specs/pro-api-v11.yaml get /v2/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/stats:
    get:
      tags:
        - stats
      summary: Retrieve blockchain network statistics and metrics
      description: >-
        Retrieves blockchain network statistics including total blocks,
        transactions, addresses, average block time, market data, and network
        utilization.
      operationId: BlockScoutWeb.API.V2.StatsController.stats
      parameters:
        - description: API key for rate limiting or for sensitive endpoints
          in: query
          name: apikey
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
        - description: Secret key for getting access to restricted resources
          in: query
          name: key
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatsResponse'
          description: Blockchain network statistics.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonErrorResponse'
          description: Unprocessable Entity
      callbacks: {}
components:
  schemas:
    StatsResponse:
      description: Stats response
      properties:
        average_block_time:
          format: float
          type: number
          x-struct: null
          x-validate: null
        coin_image:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        coin_price:
          $ref: '#/components/schemas/FloatStringNullable'
        coin_price_change_percentage:
          format: float
          nullable: true
          type: number
          x-struct: null
          x-validate: null
        gas_price_updated_at:
          $ref: '#/components/schemas/TimestampNullable'
        gas_prices:
          nullable: true
          type: object
          x-struct: null
          x-validate: null
        gas_prices_update_in:
          nullable: true
          type: integer
          x-struct: null
          x-validate: null
        gas_used_today:
          anyOf:
            - $ref: '#/components/schemas/IntegerStringNullable'
            - type: integer
              x-struct: null
              x-validate: null
          x-struct: null
          x-validate: null
        market_cap:
          $ref: '#/components/schemas/FloatString'
        network_utilization_percentage:
          nullable: true
          type: number
          x-struct: null
          x-validate: null
        secondary_coin_image:
          nullable: true
          type: string
          x-struct: null
          x-validate: null
        secondary_coin_price:
          $ref: '#/components/schemas/FloatStringNullable'
        static_gas_price:
          $ref: '#/components/schemas/IntegerStringNullable'
        total_addresses:
          $ref: '#/components/schemas/IntegerString'
        total_blocks:
          $ref: '#/components/schemas/IntegerString'
        total_gas_used:
          $ref: '#/components/schemas/IntegerString'
        total_transactions:
          $ref: '#/components/schemas/IntegerString'
        transactions_today:
          $ref: '#/components/schemas/IntegerString'
        tvl:
          $ref: '#/components/schemas/IntegerStringNullable'
      title: StatsResponse
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Stats.Response
      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
    FloatStringNullable:
      nullable: true
      pattern: ^([1-9][0-9]*|0)(\.[0-9]+)?$
      title: FloatStringNullable
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.FloatStringNullable
      x-validate: null
    TimestampNullable:
      format: date-time
      nullable: true
      title: TimestampNullable
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.TimestampNullable
      x-validate: null
    IntegerStringNullable:
      nullable: true
      pattern: ^-?([1-9][0-9]*|0)$
      title: IntegerStringNullable
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.IntegerStringNullable
      x-validate: null
    FloatString:
      pattern: ^([1-9][0-9]*|0)(\.[0-9]+)?$
      title: FloatString
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.FloatString
      x-validate: null
    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

````