Vidzee API documentation
Everything you need to embed movies and TV shows: endpoints, parameters, player events, error codes and copy-paste integration examples. The Vidzee API is a video streaming API designed to be read once and used immediately.
Quick start
The Vidzee API has one job: turn a TMDB ID into a playable embed. There is no authentication header and no SDK. Build a URL, put it in an iframe, and the player does the rest.
- Find the TMDB ID on themoviedb.org — the number at the end of the title URL.
- Choose the movie or TV endpoint below and insert the ID.
- Paste the iframe into your page inside a 16:9 container.
The base URL for every request is https://vidzee.site. Both endpoints return a complete HTML page with the Vidzee player already configured.
<iframe
src="https://vidzee.site/embed/movie/533535"
width="100%"
height="100%"
frameborder="0"
allow="autoplay; encrypted-media; picture-in-picture"
allowfullscreen>
</iframe>
Documentation built for a developer-friendly streaming API
This is the complete streaming API documentation for Vidzee: endpoints, parameters, player events, error codes and integration examples. It is written to be read once and used immediately, because a developer-friendly streaming API should not need a walkthrough to produce a first embed.
Movie-specific details live in the movie API documentation pattern — one endpoint, one ID — while the TV API documentation adds season and episode routing. Both share the same optional parameters, so an iframe video integration behaves predictably whether it sits on a film page or an episode page.
If you are building interactive controls, the video player events section documents the postMessage contract for play, pause and ended, and the event listener API example shows how to verify the origin before trusting a message.
Embed endpoints
Two routes cover the whole catalog. Both accept the same optional query parameters and return the same player shell.
| Method | Endpoint | Description | Required |
|---|---|---|---|
| GET | /embed/movie/{tmdb_id} |
Returns a movie embed page for the given TMDB movie ID. | tmdb_id |
| GET | /embed/tv/{tmdb_id}/{season}/{episode} |
Returns an episode embed page for the given TMDB TV ID, season and episode. | tmdb_id season episode |
# Movie embed by TMDB ID
GET https://vidzee.site/embed/movie/533535
# With optional player parameters
GET https://vidzee.site/embed/movie/533535?autoplay=true&theme=7c5cff
# TV episode by season and episode
GET https://vidzee.site/embed/tv/94997/1/1
# Season 2, episode 5 of the same show
GET https://vidzee.site/embed/tv/94997/2/5
0 is not a valid value; requests with a missing or zero season/episode return a 404 response.
URL parameters
Append any combination of these query parameters to an embed URL. They are read by the Vidzee player when the page loads.
| Parameter | Type | Default | Description |
|---|---|---|---|
autoplay | boolean | false | Start playback as soon as the stream is ready. Mobile browsers may still require a tap. |
theme | hex | brand | Player accent color without the leading hash, for example 7c5cff. |
color | hex | brand | Global primary color used for controls and highlights. |
title | string | TMDB title | Override the title shown in the player header. |
poster | URL | source poster | Override the poster image shown before playback starts. |
startAt | integer | 0 | Start playback at a given offset in seconds. |
lang | string | source default | Preferred audio or subtitle language, for example en, es or fr. |
showRelated | boolean | true | Show related titles inside the player after playback. |
disableInfo | boolean | false | Hide the inline subtitle and info button. |
disableControls | boolean | false | Hide the extended settings and fullscreen controls. |
Listen to playback with the player events API
The Vidzee player posts messages to the parent window during playback. Use the event listener API to sync your UI, analytics or resume logic with what the viewer is doing.
| Event | Fires when |
|---|---|
vidzee:play | Playback starts or resumes. |
vidzee:pause | Playback is paused by the viewer. |
vidzee:ended | The stream reaches the end of the media. |
window.addEventListener('message', (event) => {
// Optionally check event.origin before trusting the data
if (event.origin !== 'https://vidzee.site') return;
switch (event.data?.type) {
case 'vidzee:play':
console.log('Playback started');
break;
case 'vidzee:pause':
console.log('Playback paused');
break;
case 'vidzee:ended':
console.log('Playback finished');
break;
}
});
JavaScript player events are delivered through postMessage, so they work from any framework without a bridge library. Keep the origin check in place when you embed on a domain you control.
Drop the Vidzee embed into your stack
Because the API is a plain iframe, the integration looks the same everywhere. These examples use a responsive 16:9 wrapper.
export function MovieEmbed({ tmdbId }) {
return (
<div style={{ aspectRatio: '16 / 9' }}>
<iframe
src={`https://vidzee.site/embed/movie/${tmdbId}`}
title="Movie player"
allow="autoplay; encrypted-media; picture-in-picture"
allowFullScreen
style={{ width: '100%', height: '100%', border: 0 }}
/>
</div>
);
}
<template>
<div class="player-wrap">
<iframe
:src="`https://vidzee.site/embed/tv/${tmdbId}/${season}/${episode}`"
allow="autoplay; encrypted-media"
allowfullscreen
/>
</div>
</template>
<style scoped>
.player-wrap { aspect-ratio: 16 / 9; }
.player-wrap iframe { width: 100%; height: 100%; border: 0; }
</style>
Also works in Svelte, Angular, Next.js server components, PHP templates and WordPress HTML blocks.
Error codes and limits
The API uses conventional HTTP status codes. Embed pages stay lightweight, so most integrations never hit the fair-use limit.
| Status | Meaning | What to do |
|---|---|---|
200 OK | The embed page was generated. | Load it in an iframe. |
404 Not Found | The TMDB ID, season or episode is missing or invalid. | Check the ID and the season/episode numbers. |
429 Too Many Requests | The request rate from your IP exceeded fair use. | Back off briefly and cache embed URLs. |
500 Gateway Error | An upstream source was temporarily unreachable. | Retry after a moment; the player usually fails over automatically. |
CORS
Embed endpoints are designed for iframe use and do not require CORS headers on the parent page. There is no preflight step.
Caching
Embed URLs are stable, so you can cache the URL string in your database or CDN. The player resolves the current stream at load time.
Fair use
There is no published per-key quota because there are no keys. Requests are rate-limited per IP to keep the service fast for everyone.
Integration questions
Is the Vidzee API a REST API or an iframe?
It is both. The endpoints are simple GET URLs that return a playable embed page, and the intended client is an iframe. You can request the URLs directly with cURL to inspect responses, but browsers should load them in an iframe so the player can handle playback.
Do I need an API key or token?
No. Vidzee does not issue API keys. Endpoints are open and identified by the TMDB ID in the path. If you need private analytics or custom rate limits, put the iframe behind your own application layer.
What is the base URL for the Vidzee API?
All endpoints live on https://vidzee.site. Movie embeds use /embed/movie/{tmdb_id} and TV embeds use /embed/tv/{tmdb_id}/{season}/{episode}. There is no version prefix and no alternate host.
Which parameters can I pass in the URL?
Optional query parameters include autoplay, theme, color, title, poster, startAt, lang, showRelated, disableInfo and disableControls. They are documented in the parameters table above and are safe to combine.
How do I listen for player events?
Add a window message listener in the parent page and check the event names vidzee:play, vidzee:pause and vidzee:ended. The payload is a small JSON object, so you can sync analytics or UI state with playback.
What does a 429 response mean?
It means the request rate from your IP exceeded the fair-use limit. Back off for a short period and cache embed URLs on your side. Embed pages are lightweight, so most sites never reach the limit.
Ready to wire it up?
Generate a working iframe in seconds, or read the embed guide for responsive wrappers and framework recipes.