Everabyte API
    Everabyte API
    • Back to home
    • Datahub
    • Create
      PUT
    • Check size
      GET
    • List
      GET

      Check size

      Prod
      https://api.everabyte.io/api
      Prod
      https://api.everabyte.io/api
      GET
      https://api.everabyte.io/api
      /datahub/size/pmjqi75gtk1k74n192zukrec
      This endpoint retrieves the size information for a specific datahub. The sizes are returned in a human-readable format (e.g., "10 KB", "2 GB").
      Endpoint: /datahub/size/{datahubId}
      Method: GET
      Path Parameters:
      datahubId (required): The ID of the datahub for which to retrieve size information. Example: a1b2c3d4-e5f6-7890-1234-567890abcdef
      Response Data (JSON):
      {
        "currentObjectsSize": "1.5 GB",
        "versionsObjectsSize": "500 MB",
        "totalSize": "2 GB"
      }
      currentObjectsSize (string): The size of the current objects in the datahub, in a human-readable format.
      versionsObjectsSize (string): The size of the versions of objects in the datahub, in a human-readable format.
      totalSize (string): The total size of the datahub (current objects + versions), in a human-readable format.
      Example Request:
      GET /datahub/size/a1b2c3d4-e5f6-7890-1234-567890abcdef
      This request retrieves the size information for the datahub with ID a1b2c3d4-e5f6-7890-1234-567890abcdef.
      Response Codes:
      200 OK: Size information successfully retrieved.
      400 Bad Request: Invalid request parameters (e.g., invalid datahubId format).
      404 Not Found: Datahub not found.
      500 Internal Server Error: Server error.

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://api.everabyte.io/api/datahub/size/pmjqi75gtk1k74n192zukrec'

      Responses

      🟢200Success
      application/json
      Body
      status
      integer 
      required
      message
      string 
      required
      data
      object 
      required
      currentObjectsSize
      string 
      required
      versionsObjectsSize
      string 
      required
      totalSize
      string 
      required
      Example
      {
        "status": 200,
        "message": "",
        "data": {
          "currentObjectsSize": "1.5 GB",
          "versionsObjectsSize": "500 MB",
          "totalSize": "2 GB"
        }
      }
      Previous
      Create
      Next
      List
      Built with