---
title: "web端追剧接口"
method: POST
path: "/webCollect"
tags: ["CollectAndHistory"]
---

# web端追剧接口

`POST /webCollect`

Web 端新增或取消剧集收藏，并返回最新收藏数展示值。

响应契约：CollectResult。

需要登录。 需要请求签名。 响应会经过加密中间件。

认证要求：需要登录。

签名要求：需要请求签名。

响应处理：默认会经过响应加密。

## Headers

- `lang` string — 语言代码，例如 en、zh、es。
- `device_number` string — 设备唯一标识。
- `app_version` string — 客户端版本号。
- `timestamp` integer — 请求时间戳（秒）。
- `signature` string — 接口签名。

## Request body

- object
  - `series_id` string, required — 剧集 ID，可为单个或批量标识。
  - `is_delete` integer — 1 表示取消收藏，0 表示收藏。

## Response `200`

请求成功

- object
  - `code` integer, required
  - `msg` string, required
  - `data` union, required
    - object — 旧版本返回的单个计数对象。
      - `collect_num_str` string
    - object[] — 新版本返回的计数列表。
      - `series_id` integer
      - `collect_num_str` string
  - `info` object, required
  - `is_encrypt` 0 | 1, required
  - `request_id` string, required
  - `response_time` integer, required
  - `original_data` object

## Other responses

- `400` — 请求失败

---

[API](https://skmtc.dev/flextv/apis/flextv-api.md) · [All operations](https://skmtc.dev/flextv/apis/flextv-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flextv/flextv-api/revisions/84f55eb57fd0/schema)
