Complete developer guide for the VidSrc embed API. Endpoints, query parameters, event listeners, and customization options. No API key required — start embedding in seconds.
The VidSrc API provides a simple, embeddable video player that streams movies and TV shows from 12+ providers. No API key, no authentication, no rate limits — just construct an iframe URL and embed it.
The API is completely free and designed for developers who want to add video streaming to their projects without building backend infrastructure. Full documentation is available on our homepage.
VidSrc uses TMDB IDs for content identification. Two endpoint patterns are supported:
Movie Embed
/embed/movie/{tmdb_id}
TV Show Embed
/embed/tv/{tmdb_id}/{season}/{episode}
Example — Embed a Movie
<iframe src="/embed/movie/533535" width="100%" height="100%" frameborder="0" allowfullscreen allow="autoplay; encrypted-media"></iframe>
Customize the player appearance and behavior with URL query parameters:
| Parameter | Type | Description |
| theme | hex | Primary accent color (default: da3633) |
| autoPlay | boolean | Start playback automatically |
| poster | boolean | Show cinematic backdrop (default: true) |
| hideServer | boolean | Disable server selection menu |
| hideControls | boolean | Hide all player UI controls |
| startAt | number | Start playback at N seconds |
| sub | string | Preferred subtitle language code |
The VidSrc player emits real-time playback events via the browser's postMessage API. Use these to build watch history, progress tracking, or synchronized viewing features.
window.addEventListener('message', (event) => {
if (event.data.type === 'VIDRACK_PLAYER_EVENT') {
const { event: name, currentTime, duration } = event.data.data;
console.log('Player:', name, currentTime, duration);
}
});
Events emitted: play, pause, timeupdate, ended, error
For developers interested in streaming source code and how VidSrc works under the hood:
The player frontend uses hls.js for adaptive bitrate streaming with native HLS fallback for Safari. The entire system is built with Next.js API routes and serverless functions.
Try the VidSrc player now — 4K streaming, multi-server failover, and subtitles built in.
Launch VidSrc Player