Media matching API and search platform
Media matching API and search platform
Compare images, videos, and audio with Match API, or index large media libraries with MediaLayer Search for 1-to-many similarity search.
Start with Match API on RapidAPI →{
"source_url": "https://example.com/source.mp4",
"target_url": "https://example.com/target.mp4"
}{
"match": true,
"confidence": "high",
"similarity_score": 0.88
}The problem
Duplicate media is hard to detect across images, videos, and audio.
The same creative gets re-uploaded, re-encoded, cropped, watermarked, or trimmed before it lands back in your platform. Pixel hashes miss near-duplicates. Manual review queues do not scale with volume. And stitching together format-specific tools for image, video, and audio turns a one-line check into a pipeline.
Capabilities
Match individual assets or search indexed libraries
Compare two media URLs. Self-serve via RapidAPI.
POST /image/match
Image Similarity
Detect duplicate and near-duplicate images. Survives re-encoding, resizing, watermarking, and minor edits.
Learn more →POST /video/match
Video Similarity
Compare two videos and surface aligned matched segments with per-segment scores.
Learn more →POST /audio/match
Audio Fingerprinting
Match audio recordings even after transcoding or partial reuse. Returns offset-aligned overlapping segments.
Learn more →Cross-media
Duplicate Detection
One JSON request shape across image, video, and audio. One integration covers the full surface.
Learn more →Index a media library and search one asset against many. Managed onboarding.
1-to-N indexed media search
Ingest a library of images, videos, and audio. Query any asset against it and get ranked matches with similarity scores and timestamps. Designed for large-scale duplicate detection, archive search, and content reuse workflows.
How it works
Three steps from URL to match decision
- 1
Provide source URL
Send the URL of the source media you want to compare. http(s) only.
- 2
Provide target URL
Send the URL of the target media. The API downloads both server-side — no upload pipeline on your end.
- 3
Receive structured response
Get back a similarity score, confidence label, and matched segments where applicable.
API example
Two URLs in. One JSON envelope out.
The request shape is the same for image, video, and audio. The response carries everything you need for a match decision.
curl -X POST https://api.medialayer.ai/image/match \
-H "Content-Type: application/json" \
-d '{
"source_url": "https://example.com/source.jpg",
"target_url": "https://example.com/target.jpg"
}'{
"match": true,
"confidence": "high",
"similarity_score": 0.92,
"processing_time_ms": 42,
"media_type": "image",
"matched_segments": []
}| Field | Type | Description |
|---|---|---|
| match | boolean | Whether the two media items pass the similarity threshold. |
| confidence | string | "high", "medium", "low", or "none". |
| similarity_score | number (0–1) | Continuous score for ranking and tunable thresholds. |
| processing_time_ms | integer | Server-side processing time, excluding download. |
| matched_segments | array | Aligned start/end timestamps for audio and video. Empty for images. |
Use cases
Where teams use MediaLayer
Content moderation
Catch re-uploaded media before it propagates across surfaces.
Ecommerce media deduplication
Find copied product images, reused listing videos, and duplicate product media across seller accounts.
Ad-tech creative audit
Verify creative ownership and surface duplicate placements at scale.
Copyright / reuse detection
Identify reused video clips and audio across uploaded content.
Media deduplication
Collapse near-duplicate assets before they hit your storage tier.
Security & trust
Built with backend integration in mind
Operational guarantees that matter when you embed media matching into a workflow you operate.
URL validation
Only http and https URLs are accepted. Malformed URLs and missing hostnames are rejected up front.
SSRF protection
DNS-resolved IPs of every URL — and every redirect target — are checked against private, loopback, link-local, and cloud metadata ranges.
File size & duration limits
Per-request caps on bytes (15 MB image / 50 MB audio / 100 MB video) and duration (300 s audio / 180 s video) prevent runaway processing.
Safe demo limits
The website playground is rate-limited per visitor and isolated from production traffic. Production access is metered through RapidAPI.
MediaLayer Search
Need to search a media library?
MediaLayer Search indexes your image, video, and audio library so you can find duplicates and near-matches across millions of assets with a single query.