🎬 CinePro is officially here! Check out the latest release for details!🥳
const options = {method: 'GET'};
fetch('https://api.example.com/v1/proxy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Forwards requests to upstream streaming providers while handling headers and authentication.
Data Parameter Format:
The data parameter must be a encodeURIComponent() encoded JSON object:
{
"url": "https://upstream-provider.com/stream.m3u8",
"headers": {
"Referer": "https://provider.com",
"User-Agent": "Mozilla/5.0",
"more": "headers..."
}
}
The frontend does not have to care about these data objects, since the url fields from the backend response should automatically do that already.
Content-Type Handling: You will get that content type back, which you would, if you were requesting the url directly.
Caching:
const options = {method: 'GET'};
fetch('https://api.example.com/v1/proxy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Documentation Index
Fetch the complete documentation index at: https://docs.cinepro.cc/llms.txt
Use this file to discover all available pages before exploring further.
encodeURIComponent() encoded JSON object containing url and optional headers.
Example (decoded): {"url":"https://example.com/stream.m3u8","headers":{"Referer":"https://provider.com"}}
^[A-Za-z0-9_-]+$Upstream response proxied successfully
The response is of type string.
Was this page helpful?