---
title: /v1/annotations/{uuid}/counts
slug: beta-developer-docs/v1annotationsuuidcounts
docTags: 
createdAt: 2024-11-18T10:12:21.918Z
---

{
  "id": "tLnQ4e3PR9w183cvAPxNq",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/v1/annotations/{uuid}/counts",
    "servers": [],
    "name": "",
    "description": "<p>Get the counts of shapes, objects etc available in the judgement of an annotation</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "uuid",
          "type": "string<uuid>",
          "description": ""
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Enveloped_JudgementCountsDto",
            "schema": [
              {
                "name": "data",
                "kind": "required",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/JudgementCountsDto",
                "customType": "JudgementCountsDto",
                "schema": [
                  {
                    "name": "propertyCounts",
                    "kind": "required",
                    "type": "object",
                    "description": "",
                    "modelRef": "#/components/schemas/PropertyCountsDto",
                    "customType": "PropertyCountsDto",
                    "schema": [
                      {
                        "name": "objectProperties",
                        "kind": "required",
                        "type": "object",
                        "description": "",
                        "modelRef": "#/components/schemas/ObjectPropertiesDto",
                        "customType": "ObjectPropertiesDto",
                        "schema": [
                          {
                            "name": "propertyTypeCounts",
                            "kind": "required",
                            "type": "object",
                            "description": "",
                            "modelRef": "#/components/schemas/Map_PropertyTypeCountDto",
                            "customType": "Map_PropertyTypeCountDto",
                            "schema": []
                          },
                          {
                            "name": "numDynamicObjectProperties",
                            "kind": "required",
                            "type": "integer<int32>",
                            "example": 0
                          },
                          {
                            "name": "numStaticObjectProperties",
                            "kind": "required",
                            "type": "integer<int32>",
                            "example": 0
                          },
                          {
                            "name": "numDynamicKeyFrameObjectProperties",
                            "kind": "required",
                            "type": "integer<int32>",
                            "example": 0
                          },
                          {
                            "name": "distinctDynamicObjectProperties",
                            "kind": "required",
                            "type": "integer<int32>",
                            "example": 0
                          },
                          {
                            "name": "distinctStaticObjectProperties",
                            "kind": "required",
                            "type": "integer<int32>",
                            "example": 0
                          }
                        ]
                      },
                      {
                        "name": "sceneProperties",
                        "kind": "required",
                        "type": "object",
                        "description": "",
                        "modelRef": "#/components/schemas/ScenePropertiesDto",
                        "customType": "ScenePropertiesDto",
                        "schema": [
                          {
                            "name": "propertyTypeCounts",
                            "kind": "required",
                            "type": "object",
                            "description": "",
                            "modelRef": "#/components/schemas/Map_PropertyTypeCountDto",
                            "customType": "Map_PropertyTypeCountDto",
                            "schema": []
                          },
                          {
                            "name": "numDynamicSceneProperties",
                            "kind": "required",
                            "type": "integer<int32>",
                            "example": 0
                          },
                          {
                            "name": "numStaticSceneProperties",
                            "kind": "required",
                            "type": "integer<int32>",
                            "example": 0
                          },
                          {
                            "name": "numDynamicKeyFrameSceneProperties",
                            "kind": "required",
                            "type": "integer<int32>",
                            "example": 0
                          },
                          {
                            "name": "distinctDynamicSceneProperties",
                            "kind": "required",
                            "type": "integer<int32>",
                            "example": 0
                          },
                          {
                            "name": "distinctStaticSceneProperties",
                            "kind": "required",
                            "type": "integer<int32>",
                            "example": 0
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "name": "geometryCounts",
                    "kind": "required",
                    "type": "object",
                    "description": "",
                    "modelRef": "#/components/schemas/GeometryCountsDto",
                    "customType": "GeometryCountsDto",
                    "schema": [
                      {
                        "name": "numGeometries",
                        "kind": "required",
                        "type": "integer<int32>",
                        "example": 0
                      },
                      {
                        "name": "geometryTypeCounts",
                        "kind": "required",
                        "type": "object",
                        "description": "",
                        "modelRef": "#/components/schemas/Map_GeometryTypeCountDto",
                        "customType": "Map_GeometryTypeCountDto",
                        "schema": []
                      },
                      {
                        "name": "numInterpolatedGeometries",
                        "kind": "required",
                        "type": "integer<int32>",
                        "example": 0
                      }
                    ]
                  },
                  {
                    "name": "objectCounts",
                    "kind": "required",
                    "type": "object",
                    "description": "",
                    "modelRef": "#/components/schemas/ObjectCountsDto",
                    "customType": "ObjectCountsDto",
                    "schema": [
                      {
                        "name": "objectClassCounts",
                        "kind": "required",
                        "type": "object",
                        "description": "",
                        "modelRef": "#/components/schemas/Map_Int",
                        "customType": "Map_Int",
                        "schema": []
                      }
                    ]
                  },
                  {
                    "name": "pointCloudClassification",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "modelRef": "#/components/schemas/PointCloudClassificationDto",
                    "customType": "PointCloudClassificationDto[]",
                    "schema": [
                      {
                        "name": "classId",
                        "kind": "required",
                        "type": "integer<int32>",
                        "example": 0
                      },
                      {
                        "name": "numPoints",
                        "kind": "required",
                        "type": "integer<int32>",
                        "example": 0
                      }
                    ]
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/Enveloped_JudgementCountsDto",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "BadRequest",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "example": ""
              },
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/BadRequest",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Unauthorized",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Unauthorized",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/Unauthorized",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "403",
        "description": "Forbidden",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Forbidden",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/Forbidden",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Not found",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "NotFound",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/NotFound",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "413",
        "description": "Payload too large",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "PayloadTooLarge",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/PayloadTooLarge",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "Internal server error",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "InternalServerError",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/InternalServerError",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "JEx37HbiR95ySdBYWUEt4",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url /v1/annotations/{uuid}/counts \\\n     --header 'accept: application/json'"
        },
        {
          "id": "GnoBeh8Yp3Jmo_Vq0Jeax",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/v1/annotations/{uuid}/counts\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "0MkNvAeQDDCY0urCWldrz",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/v1/annotations/{uuid}/counts\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "TabboUFEm942TlfPJN_Rf",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/v1/annotations/{uuid}/counts\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "JEx37HbiR95ySdBYWUEt4"
    },
    "results": {
      "languages": [
        {
          "id": "9VqbIvW0NZZ70myWjxpjD",
          "language": "200",
          "code": "{\n  \"data\": {\n    \"propertyCounts\": {\n      \"objectProperties\": {\n        \"propertyTypeCounts\": {},\n        \"numDynamicObjectProperties\": \"\",\n        \"numStaticObjectProperties\": \"\",\n        \"numDynamicKeyFrameObjectProperties\": \"\",\n        \"distinctDynamicObjectProperties\": \"\",\n        \"distinctStaticObjectProperties\": \"\"\n      },\n      \"sceneProperties\": {\n        \"propertyTypeCounts\": {},\n        \"numDynamicSceneProperties\": \"\",\n        \"numStaticSceneProperties\": \"\",\n        \"numDynamicKeyFrameSceneProperties\": \"\",\n        \"distinctDynamicSceneProperties\": \"\",\n        \"distinctStaticSceneProperties\": \"\"\n      }\n    },\n    \"geometryCounts\": {\n      \"numGeometries\": \"\",\n      \"geometryTypeCounts\": {},\n      \"numInterpolatedGeometries\": \"\"\n    },\n    \"objectCounts\": {\n      \"objectClassCounts\": {}\n    },\n    \"pointCloudClassification\": [\n      {\n        \"classId\": \"\",\n        \"numPoints\": \"\"\n      }\n    ]\n  }\n}"
        },
        {
          "id": "_KVcBzqEkHmbPc0gtSgVD",
          "language": "400",
          "code": "// Bad request\n{\n  \"message\": \"\",\n  \"errorCode\": \"\"\n}"
        },
        {
          "id": "zpZ3rLyJUbVDyP_UEZZ7W",
          "language": "401",
          "code": "// Unauthorized\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "YI39trK5aIvGO8r3hMdxo",
          "language": "403",
          "code": "// Forbidden\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "xqnPCcCU2F2f34jUrhYxf",
          "language": "404",
          "code": "// Not found\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "RDtF1wbKPWmDfaZcX6SMZ",
          "language": "413",
          "code": "// Payload too large\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "jnN9bIPTQY9tYlKrZpaxx",
          "language": "500",
          "code": "// Internal server error\n{\n  \"message\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "9VqbIvW0NZZ70myWjxpjD"
    }
  },
  "children": [
    {
      "id": "r7AO0JcoriBcB2jsuJ1zp",
      "type": "paragraph",
      "children": [
        {
          "text": "Get the counts of shapes, objects etc available in the judgement of an annotation"
        }
      ]
    }
  ]
}