Skip to main content
GET
/
v1
/
proxy
Proxy upstream provider requests
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>"

Query Parameters

data
string
required

encodeURIComponent() encoded JSON object containing url and optional headers. Example (decoded): {"url":"https://example.com/stream.m3u8","headers":{"Referer":"https://provider.com"}}

Pattern: ^[A-Za-z0-9_-]+$

Response

Upstream response proxied successfully

The response is of type string.