Video Proxy
Proxy endpoint for streaming video content with support for HLS playlists and range requests.Endpoint
Authentication
No authentication required.Rate Limiting
This endpoint is rate-limited. The default configuration allows:- 100 requests per 60 seconds per IP address
429 Too Many Requests status with a Retry-After header.
Query Parameters
The URL of the video resource to proxy. Supports both HLS playlist files (.m3u8) and video segments.
Request Headers
HTTP range header for partial content requests (e.g.,
bytes=0-1023). Enables video seeking and bandwidth optimization.Response
Success Response
Status Code:200 OK or 206 Partial Content (when Range header is provided)
Headers:
MIME type of the resource:
application/vnd.apple.mpegurlfor playlistsvideo/mp2tor other video MIME types for segments
Caching policy:
- Playlists:
public, max-age=86400, s-maxage=86400(24 hours) - Video segments:
public, max-age=86400(24 hours)
Always set to
bytes to indicate support for range requests.Size of the response body in bytes.
Present when responding to range requests. Format:
bytes <start>-<end>/<total>Expiration date for playlist resources (24 hours from request).
- For playlists: Modified M3U8 content with proxied URLs
- For video segments: Binary video stream
Error Response
Status Code:400 Bad Request, 404 Not Found, 429 Too Many Requests, or 500 Internal Server Error
Examples
Usage in Video Players
The video proxy automatically handles HLS playlist manipulation, rewriting segment URLs to route through the proxy for seamless streaming.
Features
- Range Request Support: Enables video seeking and progressive loading
- HLS Playlist Processing: Automatically rewrites playlist URLs
- Caching: 24-hour cache for improved performance
- Stream Processing: Efficient streaming without loading entire files into memory
- Error Handling: Comprehensive error messages for debugging
Related Endpoints
- Image Proxy - Proxy and optimize images
- Upload Image - Upload images to the platform
