Get WeChat Channels Video Detail API
Get WeChat Channels Video Detail
USD 0.010000 / llamada correcta
ID público: social.tikhub.wechat.channels.v2.fetch.video.detail · Versión 1
Precios
USD 0.010000 / llamada correcta
Inicio rápido
Busca esta herramienta con tu clave API e inspecciona el provider y el endpoint devueltos antes de ejecutarla.
Configura GLOOP_API_BASE con la dirección de tu API y GLOOP_API_KEY con tu clave del servidor.
curl
curl --fail-with-body "${GLOOP_API_BASE%/}/v1/discover" \
-H "Authorization: Bearer $GLOOP_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"limit": 5,
"query": "Get WeChat Channels Video Detail"
}'Python
import os, json, urllib.request
url = os.environ['GLOOP_API_BASE'].rstrip('/') + "/v1/discover"
headers = {'Authorization': 'Bearer ' + os.environ['GLOOP_API_KEY']}
headers['Content-Type'] = 'application/json'
data = "{\n \"limit\": 5,\n \"query\": \"Get WeChat Channels Video Detail\"\n}".encode('utf-8')
request = urllib.request.Request(url, data=data, headers=headers)
with urllib.request.urlopen(request) as response:
print(json.load(response))Node.js
const url = process.env.GLOOP_API_BASE.replace(/\/$/, '') + "/v1/discover";
const headers = { Authorization: `Bearer ${process.env.GLOOP_API_KEY}` };
headers['Content-Type'] = 'application/json';
const response = await fetch(url, { method: 'POST', headers, body: JSON.stringify({
"limit": 5,
"query": "Get WeChat Channels Video Detail"
}) });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Documentación de API de herramientas · POST /v1/inspectEsquema de entrada
{
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"export_id": {
"description": "搜索结果中的 exportId(export/ 开头,会过期,需尽快使用)/exportId from search results (starts with export/, expires soon)",
"maxLength": 2048,
"title": "Export Id",
"type": "string"
},
"object_id": {
"description": "作品 objectId(纯数字,最优先)/Video objectId (numeric, highest priority)",
"maxLength": 32,
"title": "Object Id",
"type": "string"
},
"object_nonce_id": {
"description": "配套 objectNonceId(纯数字,可选,提升命中率)/Optional objectNonceId (numeric, improves hit rate)",
"maxLength": 32,
"title": "Object Nonce Id",
"type": "string"
},
"raw": {
"description": "True=原始响应;False=精简解析结构(推荐做媒体下载)/True=raw response; False=simplified parsed structure (recommended for media download)",
"title": "Raw",
"type": "boolean"
},
"share_url": {
"description": "视频号分享短链(https://weixin.qq.com/sph/…),仅在 object_id 与 export_id 都为空时使用/Share URL (https://weixin.qq.com/sph/…), used only when object_id and export_id are empty",
"maxLength": 256,
"title": "Share Url",
"type": "string"
}
},
"title": "FetchVideoDetailRequest",
"type": "object"
},
"queryParams": {
"additionalProperties": false,
"properties": {},
"type": "object"
}
},
"required": [],
"type": "object"
}Esquema de salida
{
"type": "object"
}