渠道管理/作品
作品详情
接口说明:查询指定平台作品详情。调用前请以「平台列表」的 capabilities.work.getDetail 为准;不支持时返回 code: 15080,data 仅包含 platform 与 capability。
GET
/
api
/
v2
/
channels
/
works
/
{platform}
/
{platformWorkId}
作品详情
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/works/{platform}/{platformWorkId} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/v2/channels/works/{platform}/{platformWorkId}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://aitoearn.cn/api/v2/channels/works/{platform}/{platformWorkId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/v2/channels/works/{platform}/{platformWorkId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "请求成功",
"data": {
"platform": "KWAI",
"work": {
"id": "string",
"url": "string",
"title": "string",
"description": "string",
"mediaType": "string",
"coverUrl": "string",
"publishedAt": "string",
"status": "string"
},
"snapshots": [
{
"id": "string",
"platformWorkId": "string",
"snapshotAt": "string",
"fetchedAt": "string",
"work": {
"id": "string",
"url": "string",
"title": "string",
"description": "string",
"mediaType": "string",
"coverUrl": "string",
"publishedAt": "string",
"status": "string"
},
"metrics": {
"viewCount": "number",
"likeCount": "number",
"commentCount": "number"
},
"extra": {
"pending": "boolean"
}
}
],
"extra": {
"pending": "boolean"
},
"snapshotId": "string",
"fetchedAt": "string"
},
"requestId": "string"
}授权
需要从 AiToEarn 获取 API Key。点击前往「API Key 获取教程」。
查询参数
账号 ID
Minimum string length:
1响应
200 - application/json
请求已被服务处理。业务是否成功以响应体 code === 0 为准。
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
业务状态码。0 表示成功,非 0 表示业务错误。
响应消息。
请求 ID。
错误响应时间戳,Unix 毫秒。
最后修改于 2026年7月31日
⌘I
作品详情
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/works/{platform}/{platformWorkId} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/v2/channels/works/{platform}/{platformWorkId}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://aitoearn.cn/api/v2/channels/works/{platform}/{platformWorkId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/v2/channels/works/{platform}/{platformWorkId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "请求成功",
"data": {
"platform": "KWAI",
"work": {
"id": "string",
"url": "string",
"title": "string",
"description": "string",
"mediaType": "string",
"coverUrl": "string",
"publishedAt": "string",
"status": "string"
},
"snapshots": [
{
"id": "string",
"platformWorkId": "string",
"snapshotAt": "string",
"fetchedAt": "string",
"work": {
"id": "string",
"url": "string",
"title": "string",
"description": "string",
"mediaType": "string",
"coverUrl": "string",
"publishedAt": "string",
"status": "string"
},
"metrics": {
"viewCount": "number",
"likeCount": "number",
"commentCount": "number"
},
"extra": {
"pending": "boolean"
}
}
],
"extra": {
"pending": "boolean"
},
"snapshotId": "string",
"fetchedAt": "string"
},
"requestId": "string"
}
