Skip to main content
Version: v1.0

Search Video Metadata

MAVI stores metadata of uploaded videos to simplify developers' workflows. Developers can retrieve the metadata for all videos at once or flexibly fetch a subset of video metadata by using filtering parameters in their requests.

Host URL

Endpoint

GET /api/serve/video/searchDB

Request Example

import requests

headers = {"Authorization": "Bearer <YOUR_ACCESS_TOKEN>"} # access token
# Uncomment the line to search with filters; this filter will return parsed videos uploaded
# between 1740995860114 and 1740995860115 and return at most first 100 results.
# params={"startTime":1740995860114,"endTime":1740995860115,"videoStatus":"PARSE","page":1,"pageSize":100}
response = requests.get("https://mavi-backend.memories.ai/api/serve/video/searchDB",
# params=params,
headers=headers)

print(response.json())

Replace YOUR_ACCESS_TOKEN in the code above with your actual access token.

You can add filter conditions to the params, with the following available parameters:

  • startTime (ms): Timestamp of the uploaded video (start time).
  • endTime (ms): Timestamp of the uploaded video (end time).
  • videoStatus (PARSE, UNPARSE, FAIL): The processing status of the video.
  • page: The page number for pagination — i.e. which range of results to retrieve
  • pageSize: The number of elements per page.

Request Parameters

NameLocationTypeRequiredDescription
startTimequerynumberNotimesstamp (ms)
endTimequerynumberNotimesstamp (ms)
videoStatusquerystringNoPARSE, UNPARSE, FAIL
pagequerynumberNonone
pageSizequerystringNoDefault 20; max 200
AuthorizationheaderstringYesAuthentication token

Response Example

Status code 200

{
"code": "string",
"msg": "string",
"data": {
"page": 0,
"current": 0,
"total": 0,
"pageSize": 0,
"videoData": [
{
"videoNo": "string",
"videoName": "string",
"videoStatus": "string",
"uploadTime": "string",
"duration": "string"
}
]
}
}

Response Result

Status codeStatus code msgDescriptionData
200OKnoneInline

Response Structure

Status code 200

NameTypeRequiredRestrictionDescription
codestringtruenonenone
msgstringtruenonenone
dataobjecttruenonenone
» pagenumberfalsenonetotal number of pages
» currentnumbertruenonecurrent page number
» totalnumbertruenonetotal number of records
» pageSizenumbertruenonenumber of elements in the page
» videoData[object]truenoneJSON data
»» videoNostringtruenonevideo id
»» videoNamestringtruenonevideo name
»» videoStatusstringtruenonevideo status
»» uploadTimestringtruenoneupload timestamp(ms)
»» durationstringfalsenonevideo length(seconds)