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.
| Parameter | Required | Description |
|---|---|---|
IMDB_ID | One of | IMDb ID including the tt prefix, e.g. tt0439572 |
TMDB_ID | One of | Numeric TMDB ID, e.g. 385687 |
https://autoembed.me/movie/imdb/tt0439572
https://autoembed.me/movie/tmdb/385687
<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.
| Parameter | Required | Description |
|---|---|---|
IMDB_ID / TMDB_ID | Yes | Show ID — IMDb with tt prefix, or numeric TMDB |
SEASON | Yes | Season number, e.g. 1 |
EPISODE | Yes | Episode number, e.g. 1 |
https://autoembed.me/tv/imdb/tt9208876-1-1
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
| Parameter | Type | Description |
|---|---|---|
color alias: primaryColor | Hex | Primary UI color. URL-encode the # as %23, or omit it: color=e63946 |
title | String | Custom title shown in the player (URL-encoded) |
poster | URL | Custom poster / thumbnail image |
showTitle | Boolean | Show or hide the title overlay. Default true |
controls | Boolean | Set false to hide the control bar (also hides the hover overlay) |
overlay | Boolean | Set false to disable the hover gradient and title area |
thumbnails | URL | Sprite image for seek-bar preview thumbnails |
Playback
| Parameter | Type | Description |
|---|---|---|
autoplay | 0 / 1 | Force autoplay on or off. Browsers may block unmuted autoplay — the player then starts muted with an unmute prompt. |
startAt | Seconds | Start playback at a specific time |
resumeAt | Seconds | Alias 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.
| Parameter | Type | Description |
|---|---|---|
sub_url alias: sub_file | URL | URL-encoded remote .srt or .vtt file. Fetched server-side — no CORS setup needed. |
sub_label | String | Label shown for the subtitle track |
sub_lang | String | Language code of the track. Default en |
sub_default | Boolean | Enable this track by default |
ds_lang alias: lang | String | Default language for automatic subtitle search — ISO 639-1 (en, de) or 3-letter codes (eng, ger) |
https://autoembed.me/movie/imdb/tt0439572?sub_url=https%3A%2F%2Fexample.com%2Fsubs%2Fmovie.srt&sub_label=English&sub_default=true
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.
https://autoembed.me/movie/imdb/tt0439572?resumeAt=300
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.
{
"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"]
}
}| Status | Fired when |
|---|---|
playing | Playback starts or resumes, then every ~5 s as a progress update |
paused | The viewer pauses |
seeked | The viewer jumps to another position |
completed | The video reaches the end |
// 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
https://autoembed.me/movie/imdb/tt0439572?autoplay=1&color=e63946&title=The%20Flash
https://autoembed.me/movie/tmdb/385687?controls=false&overlay=false
<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
| File | Content | Format | IDs | Size | |
|---|---|---|---|---|---|
movie_list_imdb.txt | Movie IMDb IDs | tt1234567 | 97,414 | 979 KB | Download |
movie_list_tmdb.txt | Movie TMDB IDs | 385687 | 96,750 | 644 KB | Download |
tv_list_imdb.txt | TV show IMDb IDs | tt0944947 | 20,979 | 216 KB | Download |
tv_list_tmdb.txt | TV show TMDB IDs | 1399 | 20,977 | 131 KB | Download |
eps_list_tmdb.txt | Episode TMDB IDs | 314541_1x3 | 514,863 | 5.1 MB | Download |
eps_list_imdb.txt | Episode IMDb IDs | tt0944947_1x1 | 514,865 | 7.2 MB | Download |
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.
| List | Line | Embed URL |
|---|---|---|
movie_list_imdb | tt0439572 | /movie/imdb/tt0439572 |
movie_list_tmdb | 385687 | /movie/tmdb/385687 |
eps_list_imdb | tt0944947_1x1 | /tv/imdb/tt0944947-1-1 |
eps_list_tmdb | 1399_1x1 | /tv/tmdb/1399-1-1 |
$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>';
}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}`;
});#, &, full URLs). In JavaScript use encodeURIComponent(), in PHP use rawurlencode().