> ## 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 Celo epoch details.

> Retrieves detailed information about a Celo epoch.



## OpenAPI

````yaml /openapi-specs/pro-api-v11.yaml get /v2/celo/epochs/{number}
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/celo/epochs/{number}:
    get:
      tags:
        - celo
      summary: Get Celo epoch details.
      description: Retrieves detailed information about a Celo epoch.
      operationId: BlockScoutWeb.API.V2.CeloController.epoch
      parameters:
        - description: Epoch number in the path.
          in: path
          name: number
          required: true
          schema:
            $ref: '#/components/schemas/IntegerString'
        - 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/CeloEpochDetailed'
          description: Celo epoch details.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponse'
          description: Not Found
        '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
    CeloEpochDetailed:
      additionalProperties: false
      description: Celo epoch summary.
      nullable: false
      properties:
        aggregated_election_rewards:
          additionalProperties:
            additionalProperties: false
            nullable: true
            properties:
              count:
                minimum: 0
                nullable: false
                type: integer
                x-struct: null
                x-validate: null
              token:
                additionalProperties: true
                nullable: true
                type: object
                x-struct: null
                x-validate: null
              total:
                $ref: '#/components/schemas/IntegerString'
            required:
              - total
              - count
              - token
            type: object
            x-struct: null
            x-validate: null
          nullable: true
          type: object
          x-struct: null
          x-validate: null
        distribution:
          additionalProperties: true
          nullable: true
          type: object
          x-struct: null
          x-validate: null
        end_block_number:
          minimum: 0
          nullable: false
          type: integer
          x-struct: null
          x-validate: null
        end_processing_block_hash:
          $ref: '#/components/schemas/FullHashNullable'
        end_processing_block_number:
          minimum: 0
          nullable: true
          type: integer
          x-struct: null
          x-validate: null
        is_finalized:
          nullable: false
          type: boolean
          x-struct: null
          x-validate: null
        number:
          minimum: 0
          nullable: false
          type: integer
          x-struct: null
          x-validate: null
        start_block_number:
          minimum: 0
          nullable: false
          type: integer
          x-struct: null
          x-validate: null
        start_processing_block_hash:
          $ref: '#/components/schemas/FullHashNullable'
        start_processing_block_number:
          minimum: 0
          nullable: true
          type: integer
          x-struct: null
          x-validate: null
        timestamp:
          $ref: '#/components/schemas/TimestampNullable'
        type:
          enum:
            - L1
            - L2
          nullable: false
          type: string
          x-struct: null
          x-validate: null
      required:
        - number
        - type
        - start_block_number
        - end_block_number
        - timestamp
        - is_finalized
        - distribution
        - start_processing_block_hash
        - start_processing_block_number
        - end_processing_block_hash
        - end_processing_block_number
        - aggregated_election_rewards
      title: CeloEpochDetailed
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Celo.Epoch
      x-validate: null
    NotFoundResponse:
      description: Response returned when the requested resource is not found
      properties:
        message:
          description: Error message indicating the requested resource was not found
          example: Resource not found
          type: string
          x-struct: null
          x-validate: null
      title: NotFoundResponse
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.ErrorResponses.NotFoundResponse
      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
    FullHashNullable:
      nullable: true
      pattern: ^0x([A-Fa-f0-9]{64})$
      title: FullHashNullable
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.FullHashNullable
      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

````