API reference · WeChat Search

wechat-search/v2/search-videos

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

APISynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/run
Model IDwechat-search/v2/search-videos
01

Input Schema

7 parameters · 1 required · 6 optional

ParameterTypeRequiredDescription
keywordstringRequired搜索关键词(1-100 字)/Search keyword (1-100 chars) · Min length: 1 · Max length: 100
rawbooleanOptionalTrue=原始搜索响应;False=精简解析结构/True=raw search response; False=simplified parsed structure · Default: true
sortunionOptional排序:不限(相关性) default/0 / 最新(发布时间降序) latest/1 / 最热(点赞降序) hot/2,字符串键或整数均可/Sort: default/0 (relevance) / latest/1 (newest) / hot/2 (most liked); string key or integer · Default: "default"
cursorunionOptional翻页游标,用法同综合搜索:首页留空;翻页时把上一页响应返回的 cursor 原样传回/Pagination cursor, same as universal search: leave empty for the first page; pass back the cursor from the previous response
offsetintegerOptional首页传 0;翻页请用 cursor(只传 offset 无效)/Pass 0 for the first page; use cursor to paginate (offset alone does not work) · Min: 0 · Default: 0
durationunionOptional时长档(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_timeunionOptional发布时间:不限 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

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-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"
}'