渠道管理/作品
获取作品数据
接口说明:获取指定作品的分析数据
GET
/
api
/
v2
/
channels
/
works
/
{platform}
/
{platformWorkId}
/
analytics
获取作品数据
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/works/{platform}/{platformWorkId}/analytics \
--header 'X-Api-Key: <api-key>'{
"code": 0,
"message": "请求成功",
"data": {
"platform": "douyin",
"platformWorkId": "string",
"accountId": "string",
"work": {
"id": "string",
"url": "string",
"title": "string",
"description": "string",
"mediaType": "string",
"coverUrl": "string",
"publishedAt": "2026-07-02T12:00:00.000Z",
"status": "string",
"author": "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
},
"snapshots": [],
"extra": {},
"snapshotId": "string",
"fetchedAt": "2026-07-02T12:00:00.000Z",
"message": "string"
}
}授权
AiToEarn Open Platform API Key。
查询参数
账号 ID
Minimum string length:
1开始时间
结束时间
响应
200 - application/json
请求已被服务处理。业务是否成功以响应体 code === 0 为准。
业务状态码。0 表示成功,非 0 表示业务错误。
响应消息。
Hide child attributes
Hide child attributes
平台
可用选项:
douyin, xhs, wxSph, KWAI, youtube, wxGzh, bilibili, twitter, tiktok, facebook, instagram, threads, pinterest, linkedin, google_business 平台作品 ID
账号 ID
作品指标
Hide child attributes
Hide child attributes
浏览数
播放数
曝光数
触达数
点赞数
收藏数
评论数
分享数
保存数
点击数
互动数
观看时长秒数
本次保存的作品数据快照
Hide child attributes
Hide child attributes
快照对应时间
平台数据获取时间
作品资料
Hide child attributes
Hide child attributes
平台作品 ID
作品链接
作品标题
作品描述
作品媒体类型
封面 URL
发布时间
作品状态
作者
快照 ID
平台作品 ID
区间开始时间
区间结束时间
作品指标
Hide child attributes
Hide child attributes
浏览数
播放数
曝光数
触达数
点赞数
收藏数
评论数
分享数
保存数
点击数
互动数
观看时长秒数
平台特殊字段
平台特殊字段
本次主快照 ID
平台数据获取时间
提示信息
请求 ID。
错误响应时间戳,Unix 毫秒。
⌘I
获取作品数据
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/works/{platform}/{platformWorkId}/analytics \
--header 'X-Api-Key: <api-key>'{
"code": 0,
"message": "请求成功",
"data": {
"platform": "douyin",
"platformWorkId": "string",
"accountId": "string",
"work": {
"id": "string",
"url": "string",
"title": "string",
"description": "string",
"mediaType": "string",
"coverUrl": "string",
"publishedAt": "2026-07-02T12:00:00.000Z",
"status": "string",
"author": "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
},
"snapshots": [],
"extra": {},
"snapshotId": "string",
"fetchedAt": "2026-07-02T12:00:00.000Z",
"message": "string"
}
}
