Stream
What every station plays now
GET
https://api.tunio.ai/ v1/ streams/ now-playingOne 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-Match | string | ETag of the previous answer |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| items | array | Stations of the token's location. |
| [item]Required | object | - |
| success | boolean | Always true. |
未为该负载提供 schema 详情。
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |