Skip to main content
Version: v1.0

Search Key Clip

While the Search-Video API retrieves the most relevant videos, this API identifies and ranks the most relevant clips within one or multiple videos. The output is sorted by the relevance of the clips. With this API, developers can quickly pinpoint moments of interest across all uploaded videos in just milliseconds.

Host URL

POST /api/serve/video/searchVideoFragment

Request Example

import requests

headers = {"Authorization": token} # access token
data = {"videoNos": [], "searchValue": "<your prompt>"}
response = requests.post(
"https://mavi-backend.memories.ai/api/serve/video/searchVideoFragment",
headers=headers,
json=data
)

Request Body

{
"videoNos": [],
"searchValue": "string"
}

Request Parameters

NameLocationTypeRequiredDescription
AuthorizationheaderstringYesauthorization token
videoNosbody[string]Yeslist of video IDs to search from (max 50 for free tier)
searchValuebodystringYessearch prompt

Response Example

{
"code": "string",
"msg": "string",
"data": {
"videos": [
{
"videoNo": "string",
"videoName": "string",
"videoStatus": "string",
"uploadTime": "string",
"duration": "string"
}
]
}
}

Response Result

Status codeStatus code msgDescriptionData
200OKnoneInline

Response Structure

Status code 200

NameTypeRequiredRestrictionDescription
codestringtruenoneresponse code
msgstringtruenonemessage with response code
dataobjecttruenoneJSON data
» videos[object]truenoneJSON data
»» videoNostringfalsenonevideo number
»» videoNamestringfalsenonevideo name/title
»» videoStatusstringfalsenonevideo processing status
»» uploadTimestringfalsenoneupload timesatmp(ms)
»» durationstringfalsenonevideo length(seconds)
»» fragmentStartTimestringtruenonevideo clip start time (s)
»» fragmentEndTimestringtruenonevideo clip end time(s)