渠道管理/内容发布
已发布列表
接口说明:查询已经发布完成的发布记录。不传查询参数时返回全部已发布记录;也可以按渠道账号、平台或发布时间范围筛选。
GET
/
api
/
v2
/
channels
/
publish
/
records
/
published
已发布列表
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/publish/records/published \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/v2/channels/publish/records/published"
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/publish/records/published', 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/publish/records/published"
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": [
{
"id": "string",
"flowId": "string",
"userTaskId": "string",
"accountId": "string",
"accountType": "string",
"type": "string",
"status": "number",
"title": "string",
"desc": "string",
"publishTime": "string",
"platformWorkId": "string",
"workLink": "string",
"videoUrl": "string",
"coverUrl": "string",
"imgUrlList": [
"string"
],
"source": "string",
"createdAt": "string",
"updatedAt": "string"
}
],
"requestId": "string"
}授权
需要从 AiToEarn 获取 API Key。点击前往「API Key 获取教程」。
查询参数
渠道账号 ID。可选;取值来自「账号列表」返回的 data.list[n].id。
渠道账号 ID。可选;取值来自「账号列表」返回的 data.list[n].id。
平台标识。可选;取值来自「平台列表」返回的 data[n].platform。
平台标识。可选;取值来自「平台列表」返回的 data[n].platform。
可用选项:
douyin, xhs, wxSph, KWAI, youtube, wxGzh, bilibili, twitter, tiktok, facebook, instagram, threads, pinterest, linkedin, google_business 响应
200 - application/json
请求已被服务处理。业务是否成功以响应体 code === 0 为准。
Hide child attributes
Hide child attributes
⌘I
已发布列表
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/publish/records/published \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/v2/channels/publish/records/published"
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/publish/records/published', 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/publish/records/published"
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": [
{
"id": "string",
"flowId": "string",
"userTaskId": "string",
"accountId": "string",
"accountType": "string",
"type": "string",
"status": "number",
"title": "string",
"desc": "string",
"publishTime": "string",
"platformWorkId": "string",
"workLink": "string",
"videoUrl": "string",
"coverUrl": "string",
"imgUrlList": [
"string"
],
"source": "string",
"createdAt": "string",
"updatedAt": "string"
}
],
"requestId": "string"
}
