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
Query image. Allowed:
.jpg, .jpeg, .png, .gif, .bmp, .webp. Maximum 20 MB.Platform to search. One of
TIKTOK, YOUTUBE, INSTAGRAM.Minimum similarity threshold (0 – 1). Only results with score ≥ this value are returned.
Response
Public video identifier (typically prefixed with
PI-).Public video title or name.
Matched keyframe start time, in seconds.
Matched keyframe end time, in seconds.
Visual similarity score (0 – 1).
GCS bucket of our cached copy of the public video. Omitted when the storage location cannot be resolved.
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.GCS bucket of the matched keyframe image.
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