Stream

What every station plays now

GET
https://api.tunio.ai/v1/streams/now-playing

One request for the current track of all the stations of the token's location, instead of polling each station's history. The answer is the same for every caller of the location for 5 seconds. It carries an ETag: send it back as If-None-Match and an unchanged answer is 304 with no body. track_finishing_at is when the track ends — the earliest moment the answer can change for that station. At most 60 requests a minute per user; beyond that 429 with Retry-After.

请求头

名称类型说明
If-None-MatchstringETag of the previous answer

响应

名称类型说明
itemsarray
Stations of the token's location.
[item]Requiredobject
-
successboolean
Always true.

未为该负载提供 schema 详情。

名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.