Playback History
/api/station/radio_cp/history
Every widget is generated as an iframe embed. Script embeds can call the same embed/azuracast-data.html URL.
| Widget | Prepared AzuraCast endpoint | Use |
|---|
For production, save the AzuraCast API token on your server and expose public RADIO CP proxy routes. The public widget calls your route; your route calls AzuraCast with Authorization: Bearer, caches the response, and returns only safe fields.
GET /api/radio-cp/azuracast/history → /api/station/{station_id}/history
GET /api/radio-cp/azuracast/queue → /api/station/{station_id}/queue
GET /api/radio-cp/azuracast/streamers → /api/station/{station_id}/streamers
GET /api/radio-cp/azuracast/broadcasts → /api/station/{station_id}/streamers/broadcasts
GET /api/radio-cp/azuracast/playlists → /api/station/{station_id}/playlists
GET /api/radio-cp/azuracast/podcasts → /api/station/{station_id}/podcasts
GET /api/radio-cp/azuracast/reports → /api/station/{station_id}/reports/overview/charts
Use these tools to turn backend-only AzuraCast routes into cacheable, safe, public widgets without exposing owner API tokens.
Each public widget should call RADIO CP first. RADIO CP calls AzuraCast server-side, filters fields, caches response, then returns JSON to the embed.