List Live Transcoding Profiles
List Live Transcoding Profiles
curl -X GET "https://api.5centscdn.com/v2/streams/settings/profiles" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY"
import requests
import json
url = "https://api.5centscdn.com/v2/streams/settings/profiles"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.5centscdn.com/v2/streams/settings/profiles", {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.5centscdn.com/v2/streams/settings/profiles", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.5centscdn.com/v2/streams/settings/profiles')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"result": "success",
"lists": {
"0": {
"id": 1,
"serviceid": 103,
"type": "file",
"name": "720p",
"filemode": "Single",
"settings": {
"name": "720p",
"f": "mp4",
"cv": "libx264",
"sv": "720p",
"svvalue": "",
"deinterlace": 0,
"preset": "superfast",
"bv": 1,
"bvvalue": 2000,
"vpass": 1,
"fps": 30,
"vprofile": "main",
"ca": "aac",
"aca": 2,
"ba": 1,
"bavalue": 128,
"ara": 44100,
"now": 0
},
"codec": "h264"
}
}
}
/streams/settings/profiles
Target server for requests. Edit to use your own host.
API key (sent in header)
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Provide your API key in the header.
Responses
Status of the API response.
Unique numeric identifier.
Unique identifier of the service this stream belongs to.
Type identifier for this stream or object.
Name of the stream.
File mode setting for the transcoding profile.
Name of the stream.
Output container format.
Video codec used for transcoding.
Target video size/resolution preset.
Custom video size value when using a custom size preset.
Whether deinterlacing is applied during transcoding.
Encoder speed preset.
Whether a custom video bitrate is set.
Custom video bitrate in kbps.
Number of encoding passes for the video.
Target frames per second for the output.
H.264/H.265 encoder profile.
Audio codec used for transcoding.
Number of audio channels in the output.
Whether a custom audio bitrate is set.
Custom audio bitrate in kbps.
Audio sample rate in Hz.
Whether to start transcoding immediately.
Video codec used for the stream.