What is it?

The SRG-SSR Audio REST API allows you to get audio metadata (including subtitles) from various business units (RSI, RTS, RTS, SRF, SWI).

The API delivers a list of audio objects filtered by search parameters that you provided. The API response contains a JSON definition of a playable asset, for example a list of audio by tag, all the episodes of a show, or audios that expire soon.

To play audios, you can use our player. It needs only the ID of the audio you get by using the APIs. For more details on how to integrate and use the player in your HTML page, please visit the SRG Player API Documentation page.

 
Quick search among audios
Get the valid audio IDs immediately to feed the media player. Reach full-length audios of radio channels of your choice.
book
Easy access to livestreams
Audio API lets you access all livestream information.
compass
Wide range of usage
Use the received data on websites, in apps, through HbbTv or other platform.
life-buoy

Why use it?

Do you want to play audio files by using the built-in SRG Player on your site or in your app? Do you want to stream live radio shows or full-length episodes of radio shows? SRG-SSR Audio API can help!

 

  • Quick search in the audio database

  • Access to radio channels and episodes of radio shows

  • Get live streams and play it on your website or in your app

How it works?

This API consists of a bunch of GET methods that you can request for metadata of audio objects, livestreams, and radio channels. The API returns the ID of the requested object that can be passed over to a media player to play the audio.

 

How to use

If you’d like to use SRG-SSR Audio API together with the integrated SRG Player of your site, follow these three steps to get started. (Read the documentation about integrating our player by using IFrame or JavaScript.)

 
Register and login
You need to be a registered user to access to SRG-SSR APIs. Log in after registration.
Create an App
On your dashboard, create an application that will use the API.
Get an API key
Your application has an API key that authorize you to use the API. You can find it on the page of the application.

Requirements

To access the SRG-SSR REST Audio API, you need to be a registered user with a valid API key.

 
Get API key View reference documentation