---
updatedAt: 2025-11-12T01:01:38.000Z
agentTools:
  projectIndex: https://docs.blockberry.one/llms.txt
---

# getPackageById

Get package details by id.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Iota mainnet API",
    "description": "This is the new API Module implementation. The IOTA Blockchain API is used to retrieve IOTA Blockchain data. In order to execute queries you need to get API Key and use it in header 'x-api-key'. However, before that you need to sign up on the explorer or company website. If an account is created on the website <strong>https://staketab.com/</strong> or <strong>https://iotascan.com/</strong>, the user will be granted the <strong>ROLE_USER</strong> role. After that you may fetch API KEY.",
    "termsOfService": "terms-of-service",
    "contact": {
      "name": "Staketab tech support",
      "url": "https://staketab.com/",
      "email": "support@staketab.com"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.blockberry.one/iota-mainnet",
      "description": "Production"
    }
  ],
  "security": [
    {
      "x-api-key": []
    }
  ],
  "paths": {
    "/v1/packages/{packageId}": {
      "get": {
        "tags": [
          "Objects"
        ],
        "summary": "getPackageById",
        "description": "Get package details by id.",
        "operationId": "getPackageById",
        "parameters": [
          {
            "name": "packageId",
            "in": "path",
            "description": "Package id (hash).",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Package id (hash).",
              "default": "0xa4682f62428176133307b7f3f04c468b99d33a3dc6cf46efa266d9d3ee4aa933"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/PackageDtoAPI"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PackageDtoAPI": {
        "type": "object",
        "properties": {
          "packageId": {
            "type": "string"
          },
          "packageName": {
            "type": "string"
          },
          "securityMessage": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "format": "int64"
          },
          "publisherAddress": {
            "type": "string"
          },
          "publisherName": {
            "type": "string"
          },
          "publisherImg": {
            "type": "string"
          },
          "publisherSecurityMessage": {
            "type": "string"
          },
          "projectName": {
            "type": "string"
          },
          "projectImg": {
            "type": "string"
          },
          "socialWebsite": {
            "type": "string"
          },
          "socialDiscord": {
            "type": "string"
          },
          "socialTwitter": {
            "type": "string"
          },
          "socialTelegram": {
            "type": "string"
          },
          "projectCoins": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "projectPackages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "modulesCount": {
            "type": "integer",
            "format": "int64"
          },
          "txsCount": {
            "type": "integer",
            "format": "int64"
          },
          "createTimestamp": {
            "type": "integer",
            "format": "int64"
          },
          "isVerified": {
            "type": "boolean"
          }
        }
      }
    },
    "securitySchemes": {
      "x-api-key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```