Skip to main content
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)
Upload a query image and retrieve visually similar frames from the pre-indexed public social-media library. For text queries see Search Public — by Text; for exact-phrase transcript search see Search Public — by Transcript.

Prerequisites

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

Authorization
string
header
required

Body

multipart/form-data
file
file
required

Query image. Allowed extensions: .jpg/.jpeg/.png/.gif/.bmp/.webp. Content-Type must start with image/. Max 20 MB.

type
enum<string>
default:TIKTOK

Source platform to search within.

Available options:
TIKTOK,
YOUTUBE,
INSTAGRAM
similarity
number<double>
default:0.85

Minimum similarity threshold (0-1). Results below this score are filtered out.

Required range: 0 <= x <= 1

Response

200 - application/json

Successful response

code
string
Example:

"0000"

msg
string
Example:

"success"

data
object[]
success
boolean
Example:

true

failed
boolean
Example:

false