渠道管理/作品
解析作品链接
接口说明:根据链接获取作品信息
GET
/
api
/
v2
/
channels
/
works
/
link-info
解析作品链接
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/works/link-info \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/v2/channels/works/link-info"
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/link-info', 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/link-info"
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": "douyin",
"work": {
"id": "string",
"url": "string",
"title": "string",
"description": "string",
"mediaType": "string",
"coverUrl": "string",
"publishedAt": "2026-07-02T12:00:00.000Z",
"status": "string",
"author": "string"
},
"snapshots": [],
"extra": {},
"snapshotId": "string",
"fetchedAt": "2026-07-02T12:00:00.000Z",
"message": "string"
}
}授权
需要从 AiToEarn 获取 API Key。点击前往「API Key 获取教程」。
查询参数
平台
可用选项:
douyin, xhs, wxSph, KWAI, youtube, wxGzh, bilibili, twitter, tiktok, facebook, instagram, threads, pinterest, linkedin, google_business 作品链接
Minimum string length:
1账号 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 本次保存的作品数据快照
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/link-info \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/v2/channels/works/link-info"
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/link-info', 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/link-info"
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": "douyin",
"work": {
"id": "string",
"url": "string",
"title": "string",
"description": "string",
"mediaType": "string",
"coverUrl": "string",
"publishedAt": "2026-07-02T12:00:00.000Z",
"status": "string",
"author": "string"
},
"snapshots": [],
"extra": {},
"snapshotId": "string",
"fetchedAt": "2026-07-02T12:00:00.000Z",
"message": "string"
}
}
