主题
resource_search
口径:本页参数表最后核对于 v23.9(2026-10-27)。v24.0~v24.8 的改动(add_video 的 timeline_start/timeline_end 别名、apply_edl 批内失败计数、resource/search 的 limit 与 count 等价、/agent/route 类型分诊等)以 llms-full.txt 与 GET /agent/capabilities 为准。
接口描述
按分类和关键词搜索统一资源目录,返回剪映资源名称和资源 ID。适合大模型先搜索,再把 resource_id 或 name 传给添加接口。
请求方法
GET / POST
请求路径
/resource/search
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
category | string | 否 | 分类,例如 transition、filter、scene_effect、font |
keyword | string | 否 | 关键词,支持资源名称、成员名、ID 和别名 |
mode | integer | 否 | 0 全部,1 VIP,2 免费,默认 0 |
count | integer | 否 | 返回条数,1-500,默认 50 |
offset | integer | 否 | 分页偏移,默认 0 |
请求示例
text
GET /resource/search?category=transition&keyword=3D&count=5返回示例
json
{
"success": true,
"output": {
"data": [
{
"category": "transition",
"name": "_3D空间",
"display_name": "3D空间",
"resource_id": "7049979667406656014",
"effect_id": "1506926",
"md5": "aaecc038f6543411f601608fc5539f0b",
"is_vip": false,
"default_duration": 1.5
}
],
"total": 53,
"offset": 0,
"count": 1
},
"error": ""
}