# 获取活动实时信息

## 接口

获取活动实时信息, 该接口限频 5次 / 分钟

```javascript
GET /api/v3/activity/:id/state
```

## 授权

请求 header

```http
Authorization: Bearer <accessToken>
Content-Type: application/json
```

注：请将上方的`<accessToken>`替换为分配给您的秘钥串。关于如何获取 accessToken ，请咨询杨经理（18968187008）。

## 参数

无

## 请求样例

```bash
curl -H 'authorization: bearer <accessToken>' \
    https://shangzhibo.tv/api/v3/activity/:id/state
```

## 响应参数

| 参数                   | 类型      | 描述     |
| -------------------- | ------- | ------ |
| concurrent           | integer | 实时并发人数 |
| highestUvToday       | object  | 今日最高并发 |
| highestUvToday.time  | string  | 最高并发时间 |
| highestUvToday.count | integer | 最高并发人数 |

## 响应示例

```javascript
{
  "concurrent": 100,
  "highestUvToday": {
    "time": "2020-12-04T01:50:52.659Z",
    "count": 0
  }
}
```


---

# 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://shangzhibo.gitbook.io/api/huo-qu-zhi-ding-huo-dong-lei-ji-tui-liu-shi-chang/get-activity-realtime-state.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.
