eTheRNA BZZ API

The BZZ API from eTheRNA — 3 operation(s) for bzz.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

POST /bzz Upload file or a collection of files #
GET /bzz/{reference}/ Get file or index document from a collection of files #
HEAD /bzz/{reference}/ Get the headers containing the content type and length for the reference #
GET /bzz/{reference}/{path} Get referenced file from a collection of files #
HEAD /bzz/{reference}/{path} Get the headers containing the content type and length for the reference #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/etherna:etherna-bzz-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

etherna-bzz-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Etherna BZZ API
  version: 7.3.0
  description: 'Operations tagged BZZ across 2 of this provider''s published API definitions: etherna-swarm-openapi.yml, etherna-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://{apiRoot}:{port}/v1
  variables:
    apiRoot:
      default: localhost
      description: Base address of the local bee node main API
    port:
      default: '1633'
      description: Service port provided in bee node config
- url: http://{apiRoot}:{port}
  variables:
    apiRoot:
      default: localhost
      description: Base address of the local bee node main API
    port:
      default: '1633'
      description: Service port provided in bee node config
tags:
- name: BZZ
paths:
  /bzz:
    post:
      summary: Upload file or a collection of files
      description: 'In order to upload a collection, user can send a multipart request with all the files populated in the form data with appropriate headers.


        User can also upload a tar file along with the swarm-collection header. This will upload the tar file after extracting the entire directory structure.


        If the swarm-collection header is absent, all requests (including tar files) are considered as single file uploads.


        A multipart request is treated as a collection regardless of whether the swarm-collection header is present. This means in order to serve single files uploaded as a multipart request, the swarm-index-document header should be used with the name of the file.'
      tags:
      - BZZ
      parameters:
      - in: query
        name: name
        schema:
          $ref: SwarmCommon.yaml#/components/schemas/FileName
        required: false
        description: Filename when uploading single file
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmTagParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmPinParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmEncryptParameter
      - $ref: SwarmCommon.yaml#/components/parameters/ContentTypePreserved
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmCollection
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmIndexDocumentParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmErrorDocumentParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmPostageBatchId
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmDeferredUpload
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyLevelParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmAct
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmActHistoryAddress
      requestBody:
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
          application/x-tar:
            schema:
              type: string
              format: binary
      responses:
        '201':
          description: OK
          headers:
            swarm-tag:
              $ref: SwarmCommon.yaml#/components/headers/SwarmTag
            etag:
              $ref: SwarmCommon.yaml#/components/headers/ETag
            swarm-act-history-address:
              $ref: SwarmCommon.yaml#/components/headers/SwarmActHistoryAddress
          content:
            application/json:
              schema:
                $ref: SwarmCommon.yaml#/components/schemas/ReferenceResponse
        '400':
          $ref: SwarmCommon.yaml#/components/responses/400
        '402':
          $ref: SwarmCommon.yaml#/components/responses/402
        '500':
          $ref: SwarmCommon.yaml#/components/responses/500
        default:
          description: Default response
      operationId: postBzz
      x-operation-id-source: derived
    servers:
    - url: http://{apiRoot}:{port}/v1
      variables:
        apiRoot:
          default: localhost
          description: Base address of the local bee node main API
        port:
          default: '1633'
          description: Service port provided in bee node config
    - url: http://{apiRoot}:{port}
      variables:
        apiRoot:
          default: localhost
          description: Base address of the local bee node main API
        port:
          default: '1633'
          description: Service port provided in bee node config
  /bzz/{reference}/:
    get:
      summary: Get file or index document from a collection of files
      tags:
      - BZZ
      parameters:
      - in: path
        name: reference
        schema:
          $ref: SwarmCommon.yaml#/components/schemas/SwarmReference
        required: true
        description: Swarm address of content
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmCache
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyStrategyParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyFallbackModeParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyLevelParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmChunkRetrievalTimeoutParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmActTimestamp
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmActPublisher
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmActHistoryAddress
      responses:
        '200':
          description: OK
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          $ref: SwarmCommon.yaml#/components/responses/400
        '404':
          $ref: SwarmCommon.yaml#/components/responses/404
        '500':
          $ref: SwarmCommon.yaml#/components/responses/500
        default:
          description: Default response
      operationId: getBzzByReference
      x-operation-id-source: derived
    head:
      summary: Get the headers containing the content type and length for the reference
      tags:
      - BZZ
      parameters:
      - in: path
        name: reference
        schema:
          $ref: SwarmCommon.yaml#/components/schemas/SwarmReference
        required: true
        description: Swarm address of content
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmActTimestamp
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmActPublisher
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmActHistoryAddress
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyStrategyParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyFallbackModeParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyLevelParameter
      responses:
        '200':
          description: Chunk exists
        '400':
          $ref: SwarmCommon.yaml#/components/responses/400
        '404':
          $ref: SwarmCommon.yaml#/components/responses/404
        default:
          description: Default response
      operationId: headBzzByReference
      x-operation-id-source: derived
    servers:
    - url: http://{apiRoot}:{port}/v1
      variables:
        apiRoot:
          default: localhost
          description: Base address of the local bee node main API
        port:
          default: '1633'
          description: Service port provided in bee node config
    - url: http://{apiRoot}:{port}
      variables:
        apiRoot:
          default: localhost
          description: Base address of the local bee node main API
        port:
          default: '1633'
          description: Service port provided in bee node config
  /bzz/{reference}/{path}:
    get:
      summary: Get referenced file from a collection of files
      tags:
      - BZZ
      parameters:
      - in: path
        name: reference
        schema:
          $ref: SwarmCommon.yaml#/components/schemas/SwarmReference
        required: true
        description: Swarm address of content
      - in: path
        name: path
        schema:
          type: string
        required: true
        description: Path to the file in the collection.
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyStrategyParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyFallbackModeParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyLevelParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmChunkRetrievalTimeoutParameter
      responses:
        '200':
          description: OK
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          $ref: SwarmCommon.yaml#/components/responses/400
        '404':
          $ref: SwarmCommon.yaml#/components/responses/404
        '500':
          $ref: SwarmCommon.yaml#/components/responses/500
        default:
          description: Default response
      operationId: getBzzByReferenceByPath
      x-operation-id-source: derived
    head:
      summary: Get the headers containing the content type and length for the reference
      tags:
      - BZZ
      parameters:
      - in: path
        name: reference
        schema:
          $ref: SwarmCommon.yaml#/components/schemas/SwarmReference
        required: true
        description: Swarm address of content
      - in: path
        name: path
        schema:
          type: string
        required: true
        description: Path to the file in the collection.
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyStrategyParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyFallbackModeParameter
      - $ref: SwarmCommon.yaml#/components/parameters/SwarmRedundancyLevelParameter
      responses:
        '200':
          description: Chunk exists
        '400':
          $ref: SwarmCommon.yaml#/components/responses/400
        '404':
          $ref: SwarmCommon.yaml#/components/responses/404
        default:
          description: Default response
      operationId: headBzzByReferenceByPath
      x-operation-id-source: derived
    servers:
    - url: http://{apiRoot}:{port}/v1
      variables:
        apiRoot:
          default: localhost
          description: Base address of the local bee node main API
        port:
          default: '1633'
          description: Service port provided in bee node config
    - url: http://{apiRoot}:{port}
      variables:
        apiRoot:
          default: localhost
          description: Base address of the local bee node main API
        port:
          default: '1633'
          description: Service port provided in bee node config
externalDocs:
  description: Browse the documentation @ the Swarm Docs
  url: https://docs.ethswarm.org
x-refined-from:
- etherna-swarm-openapi.yml
- etherna-openapi.yaml