🎬 VidPro API

Unified Video Proxy Server v2.0.0

Vidlink.pro Puppeteer

Full-featured player with custom controls, progress tracking, and 3rd party API.

GET /movie/:tmdbId
Play a movie with custom player
GET /tv/:tmdbId/:season/:episode
Play a TV episode with custom player
GET /api/movie/:tmdbId
Get movie sources as JSON
GET /api/tv/:tmdbId/:season/:episode
Get TV sources as JSON

Vidsrc/Viewlix Cheerio

Fast scraping with iframe/direct source support. Supports resumeAt and autoplay.

GET /embed/movie/:tmdb
Embed movie player. Query: ?resumeAt=seconds&autoplay=true
GET /embed/tv/:tmdb/:season/:ep
Embed TV player. Query: ?resumeAt=seconds&autoplay=true
POST /dl/:type/:tmdbID
Get download links. Query: ?season=1&episode=1&slider=100
GET /proxy?url=ENCODED_URL
Proxy streaming for CORS bypass

Utility Endpoints

GET /health
Health check
POST /cache/clear
Clear all caches

Examples

3rd Party API (Vidlink Player)

Control the player from external scripts:

// Direct API
window.VidProPlayer.getState()     // Get current state
window.VidProPlayer.play()         // Play
window.VidProPlayer.pause()        // Pause
window.VidProPlayer.setProgress(50) // Set to 50%
window.VidProPlayer.seek(10)       // Skip 10 seconds

// PostMessage (for iframes)
iframe.contentWindow.postMessage({ action: 'play' }, '*')
iframe.contentWindow.postMessage({ action: 'setProgress', progress: 50 }, '*')

// Listen for events
window.addEventListener('message', (e) => {
    if (e.data.type === 'vidpro-progress') {
        console.log('Progress:', e.data.state.progress + '%');
    }
});