跳转到主要内容
GET
/
api
/
v2
/
channels
/
works
/
{platform}
作品列表
curl --request GET \
  --url https://aitoearn.cn/api/v2/channels/works/{platform} \
  --header 'X-Api-Key: <api-key>'
{
  "code": 0,
  "message": "请求成功",
  "data": {
    "platform": "douyin",
    "items": {
      "platformWorkId": "string",
      "contentMode": "article2",
      "title": "string",
      "description": "string",
      "url": "string",
      "coverUrl": "string",
      "publishedAt": "2026-07-02T12:00:00.000Z",
      "authorName": "string",
      "authorPlatformUid": "string",
      "status": "string",
      "metrics": {
        "viewCount": 1,
        "playCount": 1,
        "impressionCount": 1,
        "reachCount": 1,
        "likeCount": 1,
        "collectCount": 1,
        "commentCount": 1,
        "shareCount": 1,
        "saveCount": 1,
        "clickCount": 1,
        "engagementCount": 1,
        "watchTimeSeconds": 1
      }
    },
    "pagination": {
      "mode": "string",
      "hasNext": true,
      "hasPrevious": true,
      "limit": 1,
      "nextCursor": "string",
      "previousCursor": "string"
    }
  }
}

授权

X-Api-Key
string
header
必填

AiToEarn Open Platform API Key。

路径参数

platform
string
必填

平台标识

查询参数

accountId
string
必填

账号 ID

Minimum string length: 1
pagination
object

分页参数

响应

200 - application/json

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

code
integer
必填

业务状态码。0 表示成功,非 0 表示业务错误。

message
string
必填

响应消息。

data
object
requestId
string

请求 ID。

timestamp
integer

错误响应时间戳,Unix 毫秒。