渠道管理/平台
平台列表
接口说明:获取当前已注册渠道平台的元数据目录,包括平台展示信息、授权方式、内容限制、媒体规则、发布与互动能力、发布选项 Schema 和可用状态。平台能力可能随服务更新,请以本接口的实时返回值为准。
本接口只查询平台元数据,不会发起账号授权、内容发布或其他平台操作。
GET
/
api
/
v2
/
channels
/
platforms
平台列表
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/platformsimport requests
url = "https://aitoearn.cn/api/v2/channels/platforms"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://aitoearn.cn/api/v2/channels/platforms', 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/platforms"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "请求成功",
"data": [
{
"platform": "string",
"displayName": {
"en-US": "string",
"zh-CN": "string"
},
"logoUrl": "string",
"authType": "string",
"authInstructions": {
"en-US": "string",
"zh-CN": "string"
},
"emptyAccountHint": {
"title": {
"en-US": "string",
"zh-CN": "string"
},
"description": {
"en-US": "string",
"zh-CN": "string"
},
"action": {
"label": {
"en-US": "string",
"zh-CN": "string"
},
"url": "string"
}
},
"editor": "string",
"contentLimits": {
"modes": [
"string"
],
"maxTitleLength": "number",
"maxBodyLength": "number",
"maxTotalTextLength": "number",
"minImages": "number",
"maxImages": "number",
"maxVideos": "number",
"coverRequired": "boolean"
},
"mediaRules": {
"imageFormats": [
"string"
],
"videoFormats": [
"string"
],
"maxImageSize": "number",
"maxVideoSize": "number",
"maxVideoDuration": "number",
"minVideoFps": "number",
"maxVideoFps": "number",
"maxImageShortSide": "number",
"aspectRatio": {
"min": "number",
"max": "number"
}
},
"topic": {
"supported": "boolean",
"nativeField": "boolean",
"maxCount": "number",
"maxTotalLength": "number"
},
"capabilities": {
"auth": {
"supported": "boolean",
"revoke": "boolean",
"selectableAccounts": "boolean",
"refreshAccountAccess": "boolean"
},
"publish": {
"supported": "boolean",
"cancel": "boolean",
"update": "boolean",
"verify": "boolean",
"finalize": "boolean",
"scheduleByPlatform": "boolean",
"optionSources": "boolean",
"completionStrategy": "string"
},
"analytics": {
"account": "boolean",
"work": "boolean"
},
"engagement": {
"comments": {
"list": "object",
"create": "object"
},
"functions": [
"object"
]
},
"work": {
"listWorks": "boolean",
"listWorksPagination": "object",
"getLinkInfo": "boolean",
"getDetail": "boolean",
"verifyOwnership": "boolean"
},
"browse": {
"search": "boolean",
"getDetail": "boolean"
},
"webhook": {
"supported": "boolean"
}
},
"optionSchema": "object",
"status": "string"
}
],
"requestId": "string"
}响应
200 - application/json
请求已被服务处理。业务是否成功以响应体 code === 0 为准。
当前已注册的平台元数据列表。平台能力、限制和状态可能随服务更新,请以每次接口返回为准。
Hide child attributes
Hide child attributes
平台标识
可用选项:
douyin, xhs, wxSph, KWAI, youtube, wxGzh, bilibili, twitter, tiktok, facebook, instagram, threads, pinterest, linkedin 授权类型
可用选项:
oauth2, plugin, qrcode 编辑器类型
可用选项:
text, html 内容限制
Hide child attributes
Hide child attributes
支持的发布内容模式
可用选项:
article2, article, video 标题最大长度
正文最大长度
最终发布文本最大长度
图片最小数量
图片最大数量
视频最大数量
是否必须提供封面
媒体规则
Hide child attributes
Hide child attributes
图片格式
视频格式
图片最大字节数
视频最大字节数
视频最大秒数
视频最小帧率
视频最大帧率
图片短边最大像素数
平台状态
可用选项:
available, unavailable 业务状态码。0 表示成功,非 0 表示业务错误。
响应消息。
请求 ID。
错误响应时间戳,Unix 毫秒。
最后修改于 2026年7月31日
⌘I
平台列表
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/platformsimport requests
url = "https://aitoearn.cn/api/v2/channels/platforms"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://aitoearn.cn/api/v2/channels/platforms', 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/platforms"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "请求成功",
"data": [
{
"platform": "string",
"displayName": {
"en-US": "string",
"zh-CN": "string"
},
"logoUrl": "string",
"authType": "string",
"authInstructions": {
"en-US": "string",
"zh-CN": "string"
},
"emptyAccountHint": {
"title": {
"en-US": "string",
"zh-CN": "string"
},
"description": {
"en-US": "string",
"zh-CN": "string"
},
"action": {
"label": {
"en-US": "string",
"zh-CN": "string"
},
"url": "string"
}
},
"editor": "string",
"contentLimits": {
"modes": [
"string"
],
"maxTitleLength": "number",
"maxBodyLength": "number",
"maxTotalTextLength": "number",
"minImages": "number",
"maxImages": "number",
"maxVideos": "number",
"coverRequired": "boolean"
},
"mediaRules": {
"imageFormats": [
"string"
],
"videoFormats": [
"string"
],
"maxImageSize": "number",
"maxVideoSize": "number",
"maxVideoDuration": "number",
"minVideoFps": "number",
"maxVideoFps": "number",
"maxImageShortSide": "number",
"aspectRatio": {
"min": "number",
"max": "number"
}
},
"topic": {
"supported": "boolean",
"nativeField": "boolean",
"maxCount": "number",
"maxTotalLength": "number"
},
"capabilities": {
"auth": {
"supported": "boolean",
"revoke": "boolean",
"selectableAccounts": "boolean",
"refreshAccountAccess": "boolean"
},
"publish": {
"supported": "boolean",
"cancel": "boolean",
"update": "boolean",
"verify": "boolean",
"finalize": "boolean",
"scheduleByPlatform": "boolean",
"optionSources": "boolean",
"completionStrategy": "string"
},
"analytics": {
"account": "boolean",
"work": "boolean"
},
"engagement": {
"comments": {
"list": "object",
"create": "object"
},
"functions": [
"object"
]
},
"work": {
"listWorks": "boolean",
"listWorksPagination": "object",
"getLinkInfo": "boolean",
"getDetail": "boolean",
"verifyOwnership": "boolean"
},
"browse": {
"search": "boolean",
"getDetail": "boolean"
},
"webhook": {
"supported": "boolean"
}
},
"optionSchema": "object",
"status": "string"
}
],
"requestId": "string"
}
