VaresWe offer free streaming links for movies and episodes that can be effortlessly integrated into your website through our embed links, API
Learn how to effortlessly integrate the player on your website.
Integrating Vares is as simple as inserting an iframe. Copy the snippet below and paste it into your HTML file.
<iframe src="https://vares.top/movie/1084242" width="100%" height="100%" frameborder="0" allowfullscreen ></iframe>
Vares supports specific URL structures for Movies, TV Episodes, and Anime titles depending on the media catalogs you are deploying.
| Type | Endpoint Structure | Example |
|---|---|---|
| Movie | /movie/{tmdb_id} | /movie/1084242 |
| TV Show | /tv/{tmdb_id}/{season}/{episode} | /tv/76479/1/1 |
| Anime | /anime/{anilist_id}/{episode} | /anime/172463/1 |
Append URL query parameters to customize the player controls, styling settings, subtitles, and server defaults.
| Param | Type | Description |
|---|---|---|
| autostart | boolean | Automatically trigger playback on document mount. Defaults to false. |
| sub_lang | string | Pre-select subtitles language code on startup (e.g. en, es, fr). |
| server | string | Direct default streaming server source selection index. |
The player sends watch-time progress updates periodically to the parent window layout using postMessage APIs.
// Listen to progress updates
window.addEventListener('message', (e) => {
if (e.data?.type !== 'MEDIA_DATA') return;
const entry = Object.values(e.data.data)[0] as {
id: string;
type: 'movie' | 'tv';
title: string;
progress: { watched: number; duration: number };
season?: number;
episode?: number;
};
console.log(entry.id, entry.progress.watched, '/', entry.progress.duration);
});You can also trigger direct actions on the embedded player frame by sending corresponding postMessage commands from your host page.
// Pause Active Playback
const iframe = document.querySelector('iframe');
iframe.contentWindow.postMessage({ type: 'PAUSE_MEDIA' }, '*');
// Trigger Playback
iframe.contentWindow.postMessage({ type: 'PLAY_MEDIA' }, '*');