Read authorized immutable bytes; supports a single Range, never shared-cacheable
curl --request GET \
--url https://radiotools.rivi.software/api/media/public/{stationId}/{id}import requests
url = "https://radiotools.rivi.software/api/media/public/{stationId}/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://radiotools.rivi.software/api/media/public/{stationId}/{id}', 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://radiotools.rivi.software/api/media/public/{stationId}/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://radiotools.rivi.software/api/media/public/{stationId}/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://radiotools.rivi.software/api/media/public/{stationId}/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://radiotools.rivi.software/api/media/public/{stationId}/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body"<string>"{
"error": {
"code": "VALIDATION_ERROR",
"message": "The request contains invalid parameters or input.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3",
"issues": [
{
"path": "query",
"message": "Check the parameter types and bounds documented for this operation."
}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "A valid station credential with the required scope is needed.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "The credential does not permit this operation.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "The resource is missing, unpublished, disabled, or unavailable for this station. A switched-off station module returns MODULE_DISABLED.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "REVISION_CONFLICT",
"message": "The request conflicts with the current resource revision.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"message": "<string>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Reduce the request frequency.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "PROVIDER_UNAVAILABLE",
"message": "An upstream service is temporarily unavailable.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}Public listener
Get public media
Fetch published media bytes anonymously. The id is the published version UUID, not the asset ID. Only published media can be delivered. A single Range header can request part of the file; 206 returns bytes, not JSON.
Example: Range: bytes=0-1023. Do not parse this response as JSON or store it in a shared cache.
GET
/
api
/
media
/
public
/
{stationId}
/
{id}
Read authorized immutable bytes; supports a single Range, never shared-cacheable
curl --request GET \
--url https://radiotools.rivi.software/api/media/public/{stationId}/{id}import requests
url = "https://radiotools.rivi.software/api/media/public/{stationId}/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://radiotools.rivi.software/api/media/public/{stationId}/{id}', 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://radiotools.rivi.software/api/media/public/{stationId}/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://radiotools.rivi.software/api/media/public/{stationId}/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://radiotools.rivi.software/api/media/public/{stationId}/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://radiotools.rivi.software/api/media/public/{stationId}/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body"<string>"{
"error": {
"code": "VALIDATION_ERROR",
"message": "The request contains invalid parameters or input.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3",
"issues": [
{
"path": "query",
"message": "Check the parameter types and bounds documented for this operation."
}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "A valid station credential with the required scope is needed.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "The credential does not permit this operation.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "The resource is missing, unpublished, disabled, or unavailable for this station. A switched-off station module returns MODULE_DISABLED.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "REVISION_CONFLICT",
"message": "The request conflicts with the current resource revision.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"message": "<string>",
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Reduce the request frequency.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}{
"error": {
"code": "PROVIDER_UNAVAILABLE",
"message": "An upstream service is temporarily unavailable.",
"requestId": "28e5d867-1f87-4ca7-bca9-4ebc09b36ba3"
}
}Was this page helpful?