Search Public Videos by Image
Public Video Library
Search Public — by Image
Find visually similar frames across the public TikTok / YouTube / Instagram video library using a query image.
POST
Search Public Videos by Image
Product: Visual Search
Use case: Upload videos and images, auto-index them, then search by natural language, image, or transcript phrase
Host:
https://api.memories.ai/serve/api/v1
Auth: Authorization: sk-mavi-... (no Bearer prefix)Prerequisites
- You have created a memories.ai API key.
Request Example
Uses
multipart/form-data. The file part carries the query image; other parameters are sent as form fields.Parameters
file
required
Query image. Allowed:
.jpg, .jpeg, .png, .gif, .bmp, .webp. Maximum 20 MB.string
default:"TIKTOK"
Platform to search. One of
TIKTOK, YOUTUBE, INSTAGRAM.number
default:"0.85"
Minimum similarity threshold (0 – 1). Only results with score ≥ this value are returned.
Response
string
Public video identifier (typically prefixed with
PI-).string
Public video title or name.
string
Matched keyframe start time, in seconds.
string
Matched keyframe end time, in seconds.
number
Visual similarity score (0 – 1).
string
GCS bucket of our cached copy of the public video. Omitted when the storage location cannot be resolved.
string
GCS blob (object) path of the cached video. Use it with
video_bucket at GET /serve/api/v2/download?bucket=&blob= to fetch the file directly.string
GCS bucket of the matched keyframe image.
string
GCS blob (object) path of the matched keyframe image.
Notes & Limits
- Rate limiting: Exceeding the per-account rate limit returns an error. See Rate limits.
- Billing: Each successful call deducts credits from your account balance.
Authorizations
Body
multipart/form-data
Query image. Allowed extensions: .jpg/.jpeg/.png/.gif/.bmp/.webp. Content-Type must start with image/. Max 20 MB.
Source platform to search within.
Available options:
TIKTOK, YOUTUBE, INSTAGRAM Minimum similarity threshold (0-1). Results below this score are filtered out.
Required range:
0 <= x <= 1