Stream

Get stream rotation history

GET
https://api.tunio.ai/v1/stream/{stream_id}/history

Returns what aired on the stream, most recent first, one page at a time. Overlay jingles and silence filler are not recorded. Announcements are listed with track_id set to the announcement_id, so filtering by kind=announcement and a from/to window tells whether a given announcement aired, and when; content dropped without airing (for example because a live broadcast had the air) is not listed.

Path parameters

NameTypeDescription
stream_idRequiredstringStream UUID

Query parameters

NameTypeDescription
pageintegerPage number, from 1
per_pageintegerItems per page, 1-100
kindstringOnly these kinds, comma separated: music, jingle, announcement, podcast, news, weather, time, story
fromstringOnly items that started at or after this time, RFC 3339
tostringOnly items that started before this time, RFC 3339

Responses

NameTypeDescription
itemsarray
Played items, most recent first.
[item]Requiredobject
-
paginationobject
Page metadata.
pageinteger
Current page, starting from 1.
per_pageinteger
Page size actually applied (1..100).
totalinteger
Total number of history entries.
successboolean
Always true.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.