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

# getEntitiesCountByType

Get the total number of entities of the queried type.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Iota mainnet API",
    "description": "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://suiscan.xyz/</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-testnet",
      "description": "Production"
    }
  ],
  "security": [
    {
      "x-api-key": []
    }
  ],
  "paths": {
    "/v1/total/values/{entity}": {
      "get": {
        "tags": [
          "Objects"
        ],
        "summary": "getEntitiesCountByType",
        "description": "Get the total number of entities of the queried type.",
        "operationId": "getEntitiesCountByType",
        "parameters": [
          {
            "name": "entity",
            "in": "path",
            "description": "Queried entity type.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Queried entity type.",
              "default": "NFT",
              "enum": [
                "NFT",
                "CHECKPOINT",
                "ACCOUNT",
                "TRANSACTION_BLOCK",
                "TRANSACTION"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "x-api-key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```