API Documentation
EverPlayer dynamically parses URL hashes to mount and execute media routes securely within iframe environments, utilizing VidLink as the premium streaming backend.
Standard Routing Schema
Movies: https://html.cafe/x267bc125#m[TMDB_ID]
TV Shows: https://html.cafe/x267bc125#t[TMDB_ID]+s=[SEASON]+e=[EPISODE]
Anime: https://html.cafe/x267bc125#a[TMDB_ID]+s=[SEASON]+e=[EPISODE]
Modifiers: &color=[HEX_WITHOUT_HASH]
Events & Progress Tracking (VidLink API)
The player sends watch progress events to the parent window. You can save this progress to localStorage or your own backend to build a "Continue Watching" feature.
- play - Triggered when video starts playing
- pause - Triggered when video is paused
- seeked - Triggered when user seeks to a different timestamp
- ended - Triggered when video playback ends
- timeupdate - Triggered periodically during playback
Tracking Data Structure
{
type: "PLAYER_EVENT",
data: {
event: "play" | "pause" | "seeked" | "ended" | "timeupdate",
currentTime: number,
duration: number,
tmdbId: number,
mediaType: "movie" | "tv",
season?: number,
episode?: number
}
}
Event Listener Implementation
Add this script where your iframe is located to track VidLink events securely.
window.addEventListener('message', (event) => {
if (event.origin !== 'https://vidlink.pro') return;
if (event.data?.type === 'PLAYER_EVENT') {
const { event: eventType, currentTime, duration } = event.data.data;
console.log(`Player ${eventType} at ${currentTime}s of ${duration}s`);
}
if (event.data?.type === 'MEDIA_DATA') {
const mediaData = event.data.data;
localStorage.setItem('vidLinkProgress', JSON.stringify(mediaData));
}
});
Get Media Timestamps (TheIntroDB)
Retrieve skip timestamps for movies and TV episodes to automatically bypass intros and credits.
GET https://api.theintrodb.org/v3/media?tmdb_id=67890&season=1&episode=1&duration_ms=2700000
{
"tmdb_id": 67890,
"type": "tv",
"intro": [{ "start_ms": null, "end_ms": 23000 }],
"recap": [{ "start_ms": 25000, "end_ms": 134000 }],
"credits": [{ "start_ms": 5801777, "end_ms": null }]
}
Terms of Service: TheStreamDB (TSDB) functions exclusively as a search engine. All visual media and textual content displayed is aggregated automatically from external databases. TSDB does not host, upload, or control any media assets.
For DMCA inquiries or content removal requests, contact:
[email protected]