---
title: "账号列表"
method: GET
path: "/api/v2/channels/accounts"
tags: ["渠道管理/账号"]
---

# 账号列表

`GET /api/v2/channels/accounts`

## Request

- Base URL: `https://aitoearn.cn`
- URL: `https://aitoearn.cn/api/v2/channels/accounts`
- Auth: API key in header `X-Api-Key`

接口说明：分页获取当前用户的渠道账号列表。

## Query parameters

- `ids` string[]: 账号 ID 数组
- `types` string[]: 平台类型数组。取值为各平台的枚举标识，先调用[「平台列表」](/api-reference/get-api-v2-channels-platforms)接口（`GET /api/v2/channels/platforms`），使用其返回的 `data[n].platform`。
- `status` number: 账号状态：`1` 正常（可用），`0` 异常（不可用）。

## Response `200`

请求已被服务处理。业务是否成功以响应体 code === 0 为准。

- object
  - `data` object
    - `total` number
    - `list` object[]
      - `id` string
      - `userId` string
      - `type` string
      - `uid` string
      - `avatar` string
      - `nickname` string
      - `fansCount` number
      - `followingCount` number
      - `readCount` number
      - `likeCount` number
      - `collectCount` number
      - `forwardCount` number
      - `commentCount` number
      - `lastStatsTime` string
      - `workCount` number
      - `income` number
      - `groupId` string
      - `status` number
      - `rank` number
      - `relayAccountRef` string, nullable
      - `createdAt` string
      - `updatedAt` string
  - `code` integer: 业务状态码。0 表示成功，非 0 表示业务错误。
  - `message` string: 响应消息。
  - `requestId` string: 请求 ID。
  - `timestamp` integer: 错误响应时间戳，Unix 毫秒。

## Changes

- **2026-11-03** `7cc8f21c4c96`: 14 breaking, 3 warning, 15 info
  - the response property `code` became optional for the status `200`
  - the response property `data/list` became optional for the status `200`
  - the response property `data/list/items/groupId` became optional for the status `200`
  - the response property `data/list/items/id` became optional for the status `200`
  - …28 more

[Operation history](https://skmtc.dev/aitoearn/apis/aitoearn-api/changes/api/v2/channels/accounts/get.md)

---

[API](https://skmtc.dev/aitoearn/apis/aitoearn-api.md) - [All operations](https://skmtc.dev/aitoearn/apis/aitoearn-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aitoearn/apis/aitoearn-api/revisions/f1597859a3d0?raw)
