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

# Retrieve blobs by block ID

> The /eth/v1/beacon/blobs/{block_id} method retrieves information about blobs by block ID. Retrieve blobs by block ID on Chainstack via Chainstack.

The `/eth/v1/beacon/blobs/{block_id}` method returns the blobs of a block on the consensus layer as hex strings, ordered the same as the KZG commitments in the block. To get only specific blobs, pass their blob versioned hashes in `versioned_hashes`. It enables developers and users to programmatically interact with and analyze the blob data associated with Ethereum's beacon chain, which is especially useful in the context of rollups and data-intensive operations.

## Parameters

* `block_id` — the block identifier to retrieve blobs for. This can be one of the following:
  * `head` — the head of the chain
  * `genesis` — the genesis block
  * `finalized` — the most recent finalized block
  * A slot number
  * A hex-encoded block root with `0x` prefix
* `versioned_hashes` — optional; the blob versioned hashes of the blobs to return, as repeated query parameters. Without it, the method returns all blobs in the block.

## Response

The response is an object containing the following fields:

* `execution_optimistic` — whether the response references an unverified execution payload
* `finalized` — whether the response references a finalized block
* `data` — an array of blobs, each a hex string of 131,072 bytes


## OpenAPI

````yaml openapi/ethereum_beacon_chain_api/state/getBlobsByBlockId.json GET /beacon/mt_c524ad9781ae5dccd9ac6f5b0370e/eth/v1/beacon/blobs/{block_id}
openapi: 3.0.0
info:
  title: Ethereum Beacon Blobs API
  version: 1.0.0
servers:
  - url: https://ethereum-mainnet.core.chainstack.com
security: []
paths:
  /beacon/mt_c524ad9781ae5dccd9ac6f5b0370e/eth/v1/beacon/blobs/{block_id}:
    get:
      summary: Get blobs by block_id
      operationId: getBlobsByBlockId
      parameters:
        - name: block_id
          in: path
          description: >-
            Block identifier: 'head', 'genesis', 'finalized', a slot number, or
            a hex-encoded block root with the 0x prefix.
          required: true
          schema:
            type: string
            default: head
        - name: versioned_hashes
          in: query
          description: >-
            Blob versioned hashes of the blobs to return. Returns all blobs in
            the block if not specified.
          required: false
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
      responses:
        '200':
          description: Blobs successfully retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlobsResponse'
        '404':
          description: Block not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    BlobsResponse:
      type: object
      properties:
        execution_optimistic:
          type: boolean
        finalized:
          type: boolean
        data:
          type: array
          items:
            type: string
            description: Blob as a hex string
      required:
        - execution_optimistic
        - finalized
        - data
    Error:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
      required:
        - code
        - message

````