curl --request GET \
--url https://radiotools.rivi.software/api/v1/stations/{stationSlug} \
--header 'Authorization: Bearer <token>'import requests
url = "https://radiotools.rivi.software/api/v1/stations/{stationSlug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://radiotools.rivi.software/api/v1/stations/{stationSlug}', 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/v1/stations/{stationSlug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/v1/stations/{stationSlug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/v1/stations/{stationSlug}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://radiotools.rivi.software/api/v1/stations/{stationSlug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"contractVersion": 1,
"id": "station-rivier",
"slug": "radio-rivier",
"name": "Radio Rivier",
"timezone": "Europe/Amsterdam",
"publishingLanguage": "nl",
"resources": {
"schemas": "/api/v1/stations/radio-rivier/schemas",
"content": "/api/v1/stations/radio-rivier/content",
"schedule": "/api/v1/stations/radio-rivier/schedule",
"programs": "/api/v1/stations/radio-rivier/programs",
"broadcast": "/api/v1/stations/radio-rivier/broadcast/current",
"nowPlaying": "/api/v1/stations/radio-rivier/now-playing",
"trackHistory": "/api/v1/stations/radio-rivier/track-history",
"realtime": {
"url": "wss://radiotools.rivi.software/api/v1/realtime/stations/station-rivier/feed",
"channel": "databases.public.tables.public_station_feed.rows"
},
"weather": null,
"traffic": null,
"media": "/api/media/public/station-rivier"
},
"delivery": {
"cache": "no-store",
"conditional": "etag",
"pollIntervalSeconds": 30
},
"profile": {
"tagline": "The sound of the river",
"description": "Local news, music, and events for the riverside towns.",
"frequencyLabel": "FM 104.3",
"websiteUrl": "https://www.example.com",
"streamUrl": "https://stream.example.com/radio-rivier.mp3",
"contactEmail": "studio@example.com",
"phone": "+31 20 123 4567",
"address": {
"street": "Kade 12",
"postalCode": "1011 AB",
"city": "Amsterdam",
"country": "Netherlands"
},
"social": [
{
"network": "instagram",
"url": "https://instagram.com/example"
}
]
}
}{
"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": {
"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"
}
}Get station
Fails closed (404) for unknown, inactive or public-offline stations. Per-API switches can null individual resource hrefs; disabled APIs return the same NOT_FOUND body as public-offline. resources.weather and resources.traffic stay null without redistribution entitlement even when their switches are on. Poll no faster than delivery.pollIntervalSeconds and send If-None-Match.
curl --request GET \
--url https://radiotools.rivi.software/api/v1/stations/{stationSlug} \
--header 'Authorization: Bearer <token>'import requests
url = "https://radiotools.rivi.software/api/v1/stations/{stationSlug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://radiotools.rivi.software/api/v1/stations/{stationSlug}', 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/v1/stations/{stationSlug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/v1/stations/{stationSlug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/v1/stations/{stationSlug}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://radiotools.rivi.software/api/v1/stations/{stationSlug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"contractVersion": 1,
"id": "station-rivier",
"slug": "radio-rivier",
"name": "Radio Rivier",
"timezone": "Europe/Amsterdam",
"publishingLanguage": "nl",
"resources": {
"schemas": "/api/v1/stations/radio-rivier/schemas",
"content": "/api/v1/stations/radio-rivier/content",
"schedule": "/api/v1/stations/radio-rivier/schedule",
"programs": "/api/v1/stations/radio-rivier/programs",
"broadcast": "/api/v1/stations/radio-rivier/broadcast/current",
"nowPlaying": "/api/v1/stations/radio-rivier/now-playing",
"trackHistory": "/api/v1/stations/radio-rivier/track-history",
"realtime": {
"url": "wss://radiotools.rivi.software/api/v1/realtime/stations/station-rivier/feed",
"channel": "databases.public.tables.public_station_feed.rows"
},
"weather": null,
"traffic": null,
"media": "/api/media/public/station-rivier"
},
"delivery": {
"cache": "no-store",
"conditional": "etag",
"pollIntervalSeconds": 30
},
"profile": {
"tagline": "The sound of the river",
"description": "Local news, music, and events for the riverside towns.",
"frequencyLabel": "FM 104.3",
"websiteUrl": "https://www.example.com",
"streamUrl": "https://stream.example.com/radio-rivier.mp3",
"contactEmail": "studio@example.com",
"phone": "+31 20 123 4567",
"address": {
"street": "Kade 12",
"postalCode": "1011 AB",
"city": "Amsterdam",
"country": "Netherlands"
},
"social": [
{
"network": "instagram",
"url": "https://instagram.com/example"
}
]
}
}{
"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": {
"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"
}
}Authorizations
Station-scoped listener credential. Send Authorization: Bearer <token>, for example Bearer rtm_…. Sending the rtm_ token alone without Bearer returns 401 UNAUTHENTICATED. In the interactive playground, enter only the raw rtm_ token; the playground adds the prefix. Listener REST and GraphQL: listener:read. Listener devices: push:register.
Path Parameters
Public station slug from the station settings; distinct from the internal station ID.
3 - 63Response
Delivery-safe station projection
Public JSON contract version. The current version is 1; tolerate additional fields within this version.
1 1
Identifier of this resource. Use the value returned by the API for subsequent lookups.
1 - 80"station-rivier"
Public URL slug of the station.
3 - 63"radio-rivier"
Human-readable display name.
1 - 120"Radio Rivier"
IANA timezone used to interpret station calendar dates, for example Europe/Amsterdam.
1 - 100"Europe/Amsterdam"
Station publishing language code, for example nl or en.
2 - 35"nl"
Discovery links for this station. A null link means the resource is disabled or unavailable.
Show child attributes
Show child attributes
{
"schemas": "/api/v1/stations/radio-rivier/schemas",
"content": "/api/v1/stations/radio-rivier/content",
"schedule": "/api/v1/stations/radio-rivier/schedule",
"programs": "/api/v1/stations/radio-rivier/programs",
"broadcast": "/api/v1/stations/radio-rivier/broadcast/current",
"nowPlaying": "/api/v1/stations/radio-rivier/now-playing",
"trackHistory": "/api/v1/stations/radio-rivier/track-history",
"realtime": {
"url": "wss://radiotools.rivi.software/api/v1/realtime/stations/station-rivier/feed",
"channel": "databases.public.tables.public_station_feed.rows"
},
"weather": null,
"traffic": null,
"media": "/api/media/public/station-rivier"
}
Delivery policy for listener reads. Respect the advertised polling interval.
Show child attributes
Show child attributes
{
"cache": "no-store",
"conditional": "etag",
"pollIntervalSeconds": 30
}
Public station profile for an about or contact page. Each value is null when the station has not set it.
Show child attributes
Show child attributes
{
"tagline": "The sound of the river",
"description": "Local news, music, and events for the riverside towns.",
"frequencyLabel": "FM 104.3",
"websiteUrl": "https://www.example.com",
"streamUrl": "https://stream.example.com/radio-rivier.mp3",
"contactEmail": "studio@example.com",
"phone": "+31 20 123 4567",
"address": {
"street": "Kade 12",
"postalCode": "1011 AB",
"city": "Amsterdam",
"country": "Netherlands"
},
"social": [
{
"network": "instagram",
"url": "https://instagram.com/example"
}
]
}
Was this page helpful?