curl --request GET \
--url https://api.rendi.dev/v1/commands \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.rendi.dev/v1/commands"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.rendi.dev/v1/commands', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rendi.dev/v1/commands",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rendi.dev/v1/commands"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rendi.dev/v1/commands")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rendi.dev/v1/commands")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"command_id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2024-01-01T00:00:00Z",
"environment_name": "main",
"ffmpeg_command_run_seconds": 19.58,
"output_file_count": 2,
"processing_quota_used": 2.4,
"processing_seconds": 24.96,
"queued_seconds": 0.42,
"status": "SUCCESS",
"storage_quota_used": 0.85
}
]{
"detail": "Invalid authorization key"
}List FFmpeg Commands
Get the statuses of a previously submitted FFmpeg commands, ordered by creation time - descending.
curl --request GET \
--url https://api.rendi.dev/v1/commands \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.rendi.dev/v1/commands"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.rendi.dev/v1/commands', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rendi.dev/v1/commands",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rendi.dev/v1/commands"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rendi.dev/v1/commands")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rendi.dev/v1/commands")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"command_id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2024-01-01T00:00:00Z",
"environment_name": "main",
"ffmpeg_command_run_seconds": 19.58,
"output_file_count": 2,
"processing_quota_used": 2.4,
"processing_seconds": 24.96,
"queued_seconds": 0.42,
"status": "SUCCESS",
"storage_quota_used": 0.85
}
]{
"detail": "Invalid authorization key"
}Authorizations
Query Parameters
Maximum number of commands to return
x <= 1000Number of commands to skip before starting to collect the result set
x >= 0Response
Successful Response
Unique identifier for the submitted command
"123e4567-e89b-12d3-a456-426614174000"
Current status of the FFmpeg command
QUEUED, PROCESSING, PREPARED_FFMPEG_COMMAND, FAILED, SUCCESS "SUCCESS"
The environment this command was created in (e.g., 'main', 'test', 'dev').
"main"
Amount of storage quota used in MB
x >= 05.2
Amount of processing quota used in MB
x >= 012.5
Number of output files generated by the command
x >= 072
Status of any error that occurred during command execution
"UNREACHABLE_INPUT_FILE"
Error details if the command failed
"Input file url https://rendi.dev/example does not have a valid file name in its' end."
Time when the command was created, in UTC
"2024-01-01T00:00:00Z"
The exact time the specific FFMPEG command took on our servers, in seconds
Total processing time from queue to finish, in seconds (finished_at - queued_at)
Time, in seconds, the command waited in the queue before a server started processing it. While the command is still queued, this is the time waited so far. Includes time spent waiting for free vCPUs while your account's other commands are using its vCPU limit.
0.42
Was this page helpful?