API v1 · stable

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.

  1. Find the TMDB ID on themoviedb.org — the number at the end of the title URL.
  2. Choose the movie or TV endpoint below and insert the ID.
  3. 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.

quick-start.html
<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.

Reference

Embed endpoints

Two routes cover the whole catalog. Both accept the same optional query parameters and return the same player shell.

MethodEndpointDescriptionRequired
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 request
# 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 request
# 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
Tip: season and episode numbers are one-based. 0 is not a valid value; requests with a missing or zero season/episode return a 404 response.
Customize

URL parameters

Append any combination of these query parameters to an embed URL. They are read by the Vidzee player when the page loads.

ParameterTypeDefaultDescription
autoplaybooleanfalseStart playback as soon as the stream is ready. Mobile browsers may still require a tap.
themehexbrandPlayer accent color without the leading hash, for example 7c5cff.
colorhexbrandGlobal primary color used for controls and highlights.
titlestringTMDB titleOverride the title shown in the player header.
posterURLsource posterOverride the poster image shown before playback starts.
startAtinteger0Start playback at a given offset in seconds.
langstringsource defaultPreferred audio or subtitle language, for example en, es or fr.
showRelatedbooleantrueShow related titles inside the player after playback.
disableInfobooleanfalseHide the inline subtitle and info button.
disableControlsbooleanfalseHide the extended settings and fullscreen controls.
Player events API

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.

EventFires when
vidzee:playPlayback starts or resumes.
vidzee:pausePlayback is paused by the viewer.
vidzee:endedThe stream reaches the end of the media.
events.js
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.

Integration examples

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.

React
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>
  );
}
Vue
<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.

Behaviour

Error codes and limits

The API uses conventional HTTP status codes. Embed pages stay lightweight, so most integrations never hit the fair-use limit.

StatusMeaningWhat to do
200 OKThe embed page was generated.Load it in an iframe.
404 Not FoundThe TMDB ID, season or episode is missing or invalid.Check the ID and the season/episode numbers.
429 Too Many RequestsThe request rate from your IP exceeded fair use.Back off briefly and cache embed URLs.
500 Gateway ErrorAn 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.

API FAQ

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.

Copied to clipboard