Platform Publish Options
Endpoint description: Queries whether a specified platform requires platform-specific publishing parameters, including their field names, value structures, and account requirements.
Each data[n] item represents an additional parameter. Common scenarios include the Bilibili partition tid, YouTube category categoryId, Threads location location_id, and Pinterest Board boardId. An empty array means the platform currently has no additional parameters that need to be handled through the publishing options endpoint.
Usage: Pass the returned field to the Publish Option Values endpoint. If a future response includes filterSchema, pass matching filters as query parameters. If it includes createSchema, construct the request body from that schema and call Create Publish Option Value.
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/platforms/{platform}/publish-options \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/v2/channels/platforms/{platform}/publish-options"
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/platforms/{platform}/publish-options', 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/{platform}/publish-options"
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": "Request succeeded",
"data": [
{
"field": "string",
"label": "string",
"description": "string",
"valueType": "string",
"requiresAccount": "boolean"
}
],
"requestId": "string"
}Authorizations
Need to get API Key from AiToEarn. Click to go to "API Key Obtaining Tutorial".
Path Parameters
Platform ID. The value comes from the data[n].platform returned by the "Platform List" interface (GET /api/v2/channels/platforms).
bilibili, youtube, pinterest, twitter, tiktok, facebook, instagram, threads, linkedin, xhs, wxSph, douyin, KWAI, wxGzh "bilibili"
Response
The request has been processed by the service. Business success is determined by whether the response body has code === 0.
The publishing options currently supported by the specified platform. An empty array means there are no additional publishing options.
Hide child attributes
Hide child attributes
Publishing options field
display name
illustrate
Value structure
list, tree Is account authorization required?
filter schema
Create parameter schema
Business status code. 0 means success; non-zero means a business error.
Response message.
Request ID.
Error response timestamp in Unix milliseconds.
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/platforms/{platform}/publish-options \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/v2/channels/platforms/{platform}/publish-options"
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/platforms/{platform}/publish-options', 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/{platform}/publish-options"
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": "Request succeeded",
"data": [
{
"field": "string",
"label": "string",
"description": "string",
"valueType": "string",
"requiresAccount": "boolean"
}
],
"requestId": "string"
}
