Stream
Get stream air report
https://api.tunio.ai/ v1/ stream/ {stream_id}/ air-reportSummarises what aired on a stream over a period (default: the last 24 hours, at most 31 days). Use it to answer questions such as "how often does each jingle play", "are tracks repeating", "were there pauses on air" or "what share of the air is music". The report has: totals (plays, aired seconds, unique tracks, AI and uploaded music, skips); by_kind (music, jingle, announcement, weather, news, time, podcast, story...); timeline in the stream's time zone, hourly for up to 3 days and daily beyond; top_tracks and top_jingles with plays and the shortest / mean interval between repeats in seconds; repeats (music tracks played more than once, and how many came back within an hour); genres; transitions (crossfade, beatmatch, cut, skip...); gaps. A gap is time between the expected end of an item (its start plus its length) and the start of the next one, at least gap_seconds long: dead air, a stopped station, or a missing schedule. not_recorded lists what never reaches the history: overlay jingles (mixed on top of music) and silence filler.
路径参数
| 名称 | 类型 | 说明 |
|---|---|---|
| stream_idRequired | string | Stream UUID |
查询参数
| 名称 | 类型 | 说明 |
|---|---|---|
| from | string | Start of the period, RFC 3339 (default: 24 hours before to) |
| to | string | End of the period, RFC 3339 (default: now) |
| top | string | How many top tracks, jingles and genres to return, 1-50 (default 10) |
| gap_seconds | string | Shortest pause counted as a gap, 10-86400 seconds (default 60) |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| report | object | - |
| bucket_size | string | - |
| by_kind | array | - |
| from | string | - |
| gaps | object | - |
| genres | array | - |
| not_recorded | array | - |
| repeats | object | - |
| timeline | array | - |
| timezone | string | - |
| to | string | - |
| top_jingles | array | - |
| top_tracks | array | - |
| totals | object | - |
| transitions | array | - |
| success | boolean | - |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |