API reference · WeChat Search
wechat-search/v2/search-videos
Integrate this model through SandBase's unified API, with production-ready schemas and examples.
Production endpoint
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
POST
https://api.sandbase.ai/v1/runModel ID
wechat-search/v2/search-videos01
Input Schema
7 parameters · 1 required · 6 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
keyword | string | Required | 搜索关键词(1-100 字)/Search keyword (1-100 chars) · Min length: 1 · Max length: 100 |
raw | boolean | Optional | True=原始搜索响应;False=精简解析结构/True=raw search response; False=simplified parsed structure · Default: true |
sort | union | Optional | 排序:不限(相关性) default/0 / 最新(发布时间降序) latest/1 / 最热(点赞降序) hot/2,字符串键或整数均可/Sort: default/0 (relevance) / latest/1 (newest) / hot/2 (most liked); string key or integer · Default: "default" |
cursor | union | Optional | 翻页游标,用法同综合搜索:首页留空;翻页时把上一页响应返回的 cursor 原样传回/Pagination cursor, same as universal search: leave empty for the first page; pass back the cursor from the previous response |
offset | integer | Optional | 首页传 0;翻页请用 cursor(只传 offset 无效)/Pass 0 for the first page; use cursor to paginate (offset alone does not work) · Min: 0 · Default: 0 |
duration | union | Optional | 时长档(video 垂类专属):不限 all/0 / 短(<5min) short/1 / 中(5-10min) medium/2 / 长(20min+) long/3,字符串键或整数均可/Duration tier (Channels video only): all/0 / short/1 (<5min) / medium/2 (5-10min) / long/3 (20min+); string key or integer · Default: "all" |
publish_time | union | Optional | 发布时间:不限 all/0 / 最近一天 day/1 / 最近七天 week/2 / 最近半年 half_year/3,字符串键或整数均可/Publish time: all/0 / day/1 / week/2 / half_year/3; string key or integer · Default: "all" |
02
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
03
Code Examples
Ready-to-run snippets
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "wechat-search/v2/search-videos",
"raw": true,
"sort": "default",
"offset": 0,
"duration": "all",
"publish_time": "all",
"prompt": "a beautiful sunset over mountains"
}'
