Documentation

AutoEmbed API

Embed any movie or TV episode with a single URL using an IMDb or TMDB ID. No API key, no signup — drop the URL into an iframe and it plays.

Base URL: https://autoembed.me

Movie embed

Embed a movie player by IMDb ID (with the tt prefix) or numeric TMDB ID.

GET/movie/imdb/{IMDB_ID}
GET/movie/tmdb/{TMDB_ID}
ParameterRequiredDescription
IMDB_IDOne ofIMDb ID including the tt prefix, e.g. tt0439572
TMDB_IDOne ofNumeric TMDB ID, e.g. 385687
IMDb example
https://autoembed.me/movie/imdb/tt0439572
TMDB example
https://autoembed.me/movie/tmdb/385687
HTML
<iframe
  src="https://autoembed.me/movie/imdb/tt0439572"
  width="100%" height="100%"
  frameborder="0" allowfullscreen
></iframe>

TV episode embed

Embed a specific episode. Season and episode are joined to the ID with dashes.

GET/tv/imdb/{IMDB_ID}-{SEASON}-{EPISODE}
GET/tv/tmdb/{TMDB_ID}-{SEASON}-{EPISODE}
ParameterRequiredDescription
IMDB_ID / TMDB_IDYesShow ID — IMDb with tt prefix, or numeric TMDB
SEASONYesSeason number, e.g. 1
EPISODEYesEpisode number, e.g. 1
IMDb example — S01E01
https://autoembed.me/tv/imdb/tt9208876-1-1
TMDB example — S01E01
https://autoembed.me/tv/tmdb/88396-1-1

Query parameters

Every embed URL accepts these optional parameters. Add them as a normal query string, e.g. ?autoplay=1&color=e63946.

UI & display

ParameterTypeDescription
color alias: primaryColorHexPrimary UI color. URL-encode the # as %23, or omit it: color=e63946
titleStringCustom title shown in the player (URL-encoded)
posterURLCustom poster / thumbnail image
showTitleBooleanShow or hide the title overlay. Default true
controlsBooleanSet false to hide the control bar (also hides the hover overlay)
overlayBooleanSet false to disable the hover gradient and title area
thumbnailsURLSprite image for seek-bar preview thumbnails

Playback

ParameterTypeDescription
autoplay0 / 1Force autoplay on or off. Browsers may block unmuted autoplay — the player then starts muted with an unmute prompt.
startAtSecondsStart playback at a specific time
resumeAtSecondsAlias for startAt — handy for resuming where a viewer left off

Subtitles

Load your own subtitle file, or let the player auto-search subtitles in a given language.

ParameterTypeDescription
sub_url alias: sub_fileURLURL-encoded remote .srt or .vtt file. Fetched server-side — no CORS setup needed.
sub_labelStringLabel shown for the subtitle track
sub_langStringLanguage code of the track. Default en
sub_defaultBooleanEnable this track by default
ds_lang alias: langStringDefault language for automatic subtitle search — ISO 639-1 (en, de) or 3-letter codes (eng, ger)
Movie with a remote subtitle file
https://autoembed.me/movie/imdb/tt0439572?sub_url=https%3A%2F%2Fexample.com%2Fsubs%2Fmovie.srt&sub_label=English&sub_default=true
Episode with German subtitles auto-selected
https://autoembed.me/tv/tmdb/88396-1-1?ds_lang=de

Resume playback

Pass a timestamp in seconds with resumeAt to continue where the viewer stopped.

Resume at 5 minutes
https://autoembed.me/movie/imdb/tt0439572?resumeAt=300
Resume an episode at 20 minutes
https://autoembed.me/tv/imdb/tt9208876-1-3?resumeAt=1200

Player events

The player sends a PLAYER_EVENT message to your page via postMessage on every state change and roughly every 5 seconds while playing. Each message carries the full player state.

Event payload
{
  "type": "PLAYER_EVENT",
  "data": {
    "player_info": {
      "imdb": "tt0439572",   // or null
      "tmdb": null,          // or null
      "mediaType": "movie",  // "movie" | "tv"
      "season": null,        // TV only
      "episode": null,       // TV only
      "title": "The Flash",
      "poster": "https://..."
    },
    "player_status": "playing",
    "player_progress": 125.4,   // seconds
    "player_duration": 7200,    // seconds
    "quality": { "label": "1080p", "width": 1920, "height": 1080 },
    "availableQualities": ["1080p", "720p", "480p", "360p"]
  }
}
StatusFired when
playingPlayback starts or resumes, then every ~5 s as a progress update
pausedThe viewer pauses
seekedThe viewer jumps to another position
completedThe video reaches the end
JavaScript — save & restore progress
// Save progress while the video plays
window.addEventListener('message', (e) => {
  if (!e.data || e.data.type !== 'PLAYER_EVENT') return;
  const { player_info, player_status, player_progress } = e.data.data;
  if (player_status === 'playing') {
    const id = player_info.imdb || player_info.tmdb;
    localStorage.setItem('progress_' + id, player_progress);
  }
});

// Restore it next time the iframe is created
const saved = localStorage.getItem('progress_tt0439572');
iframe.src = 'https://autoembed.me/movie/imdb/tt0439572'
           + (saved ? '?resumeAt=' + Math.floor(saved) : '');

Full examples

Autoplay with brand color and custom title
https://autoembed.me/movie/imdb/tt0439572?autoplay=1&color=e63946&title=The%20Flash
Minimal player — no controls, no overlay
https://autoembed.me/movie/tmdb/385687?controls=false&overlay=false
Responsive 16:9 iframe
<div style="position:relative;padding-top:56.25%">
  <iframe
    src="https://autoembed.me/tv/imdb/tt9208876-1-1?autoplay=1"
    style="position:absolute;inset:0;width:100%;height:100%;border:0"
    allowfullscreen allow="autoplay; fullscreen; encrypted-media"
  ></iframe>
</div>

Content ID lists

Download plain-text files containing every IMDb and TMDB ID available on AutoEmbed. One ID per line, updated daily. Useful for syncing your catalog or building import scripts.

Last updated: Nov 30, 2026 00:06 UTC

FileContentFormatIDsSize
movie_list_imdb.txtMovie IMDb IDstt123456797,414979 KBDownload
movie_list_tmdb.txtMovie TMDB IDs38568796,750644 KBDownload
tv_list_imdb.txtTV show IMDb IDstt094494720,979216 KBDownload
tv_list_tmdb.txtTV show TMDB IDs139920,977131 KBDownload
eps_list_tmdb.txtEpisode TMDB IDs314541_1x3514,8635.1 MBDownload
eps_list_imdb.txtEpisode IMDb IDstt0944947_1x1514,8657.2 MBDownload
File URLs
https://autoembed.me/ids/movie_list_imdb.txt
https://autoembed.me/ids/movie_list_tmdb.txt
https://autoembed.me/ids/tv_list_imdb.txt
https://autoembed.me/ids/tv_list_tmdb.txt
https://autoembed.me/ids/eps_list_tmdb.txt
https://autoembed.me/ids/eps_list_imdb.txt

Mapping IDs to embed URLs

Episode lines use the format {ID}_{season}x{episode}. Replace _ and x with - to build the embed URL.

ListLineEmbed URL
movie_list_imdbtt0439572/movie/imdb/tt0439572
movie_list_tmdb385687/movie/tmdb/385687
eps_list_imdbtt0944947_1x1/tv/imdb/tt0944947-1-1
eps_list_tmdb1399_1x1/tv/tmdb/1399-1-1
PHP — check if a movie is available
$ids = file('https://autoembed.me/ids/movie_list_imdb.txt', FILE_IGNORE_NEW_LINES);
$available = array_flip($ids);

if (isset($available['tt0439572'])) {
    echo '<iframe src="https://autoembed.me/movie/imdb/tt0439572" allowfullscreen></iframe>';
}
JavaScript — episode list to embed URLs
const res = await fetch('https://autoembed.me/ids/eps_list_tmdb.txt');
const urls = (await res.text()).trim().split('\n').map(line => {
  const [id, se] = line.split('_');
  const [s, e] = se.split('x');
  return `https://autoembed.me/tv/tmdb/${id}-${s}-${e}`;
});
Tip: Lists refresh once a day. Cache them on your side and sync daily rather than downloading on every request — the episode lists are several megabytes.
Tip: Always URL-encode parameter values that contain special characters (spaces, #, &, full URLs). In JavaScript use encodeURIComponent(), in PHP use rawurlencode().