# 数据统计

### 获取meta信息中所有key的GroupBy统计

**请求参数**

| 参数     | 类型     | 是否必传 | 描述                            |
| ------ | ------ | ---- | ----------------------------- |
| sensor | string | 否    | 如为融合数据，可传入单独筛选出单独传感器的metakeys |

```
GET http://{{host}}/v1/dataset/{{dataset_id}}/metakeys?sensor=camera_0
Content-Type: application/json
T-key: {{T-key}}


Response:
{
  "code": "",
  "msg": "",
  "data": {
    "items": {
      "k": 8,
      "k1": 7
    }
  }
}

```

### 获取具体metaKey中value的数量GroupBy统计

**请求参数**

| 参数     | 类型     | 是否必传 | 描述                                                              |
| ------ | ------ | ---- | --------------------------------------------------------------- |
| sensor | string | 否    | 如为融合数据，可传入单独筛选出单独传感器的metaKey对应value值的GroupBy统计数据（暂支持200条以内结果返回） |

```
GET http://{{host}}/v1/dataset/{{dataset_id}}/metakeystat/{key_name}?sensor=camera_0
Content-Type: application/json
T-key: {{T-key}}

Response:
{
  "code": "",
  "msg": "",
  "data": {
    "items": [
      {
        "value": "v",
        "count": 8
      }
    ]
  }
}

```

### 获取标注结果中lebel的统计信息

```
GET http://{{host}}/v1/dataset/{{dataset_id}}/labels
Content-Type: application/json
T-key: {{T-key}}

Response:
{
  "code": "",
  "msg": "",
  "data": {
    "items": [
      {
        "label": "car",
        "count": "1"
      },
      {
        "label": "person",
        "count": "1"
      }
    ]
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://testindata.gitbook.io/dataset/open-api/stats.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
