Live Channels
Create a live channel
POST
https://api-v2.acrcloud.com/api/buckets/:bucket_id/channels
Path Parameters
Name | Type | Description |
---|---|---|
bucket_id | number | The bucket id |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer token |
Request Body
Name | Type | Description |
---|---|---|
title | string | The channel title |
url | string | The channel URL for ingesting the fingerprint from local server |
user_defined | string | User-defined metadata. JSON format |
timeshift | string | If enable the timeshifted fingerprint ingesting. 0 or 1. default is 0 |
List the channels
GET
https://api-v2.acrcloud.com/api/buckets/:bucket_id/channels
Path Parameters
Name | Type | Description |
---|---|---|
bucket_id | number | The bucket id |
Query Parameters
Name | Type | Description |
---|---|---|
search | string | The title name. |
page | string | Page number |
per_page | string | The results number per page. |
string | asc or desc. Default is desc | |
sort | string | sort by id or status. default is id |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer token |
Update a channel
PUT
https://api-v2.acrcloud.com/api/buckets/:bucket_id/channels/:id
Path Parameters
Name | Type | Description |
---|---|---|
bucket_id | string | bucket id |
id | string | channel id |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer token |
Request Body
Name | Type | Description |
---|---|---|
title | string | The channel title |
url | string | The channel URL for ingesting fingerprints on your local server |
user_defined | string | User-define |
timeshift | string | If enable the timeshifted fingerprint ingestring. 0 or 1. |
Delete ingesting channels
DELETE
https://api-v2.acrcloud.com/api/buckets/:bucket_id/channels/:ids
Path Parameters
Name | Type | Description |
---|---|---|
bucket_id | string | The bucket id |
ids | string | One or multiple ids, separated by ',' |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer token |
Import channels
POST
https://api-v2.acrcloud.com/api/buckets/:bucket_id/rec-channels
Import channels to LiveRec bucket.
Path Parameters
Name | Type | Description |
---|---|---|
bucket_id | string | Bucket id |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer token |
Request Body
Name | Type | Description |
---|---|---|
ids | string | One or multiple channels ids. Separated by ',' |
Delete rec channels
DELETE
https://api-v2.acrcloud.com/api/buckets/:bucket_id/rec-channels/:ids
Path Parameters
Name | Type | Description |
---|---|---|
bucket_id | number | The bucket id |
ids | string | One or multiple channel ids. Separated by ',' |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer token |
Create timeshift channels
POST
https://api-v2.acrcloud.com/api/buckets/:bucket_id/timeshift-channels
Path Parameters
Name | Type | Description |
---|---|---|
bucket_id | number | The bucket id |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer token |
Request Body
Name | Type | Description |
---|---|---|
time | number | The timeshift fingerprints keep-alive time (In hours). The default is 1 hour. |
id | number | The live channel id |
Delete timeshift channels
DELETE
https://api-v2.acrcloud.com/api/buckets/:bucket_id/timeshift-channels/:ids
Path Parameters
Name | Type | Description |
---|---|---|
ids | string | One or multiple channel ids, Separated by ',' |
bucket_id | number | The bucket id |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer token |
Get Live/Timeshift Channels status
GET
https://api-v2.acrcloud.com/api/buckets/:bucket_id/channels-stat
Path Parameters
Name | Type | Description |
---|---|---|
bucket_id | number | The Live/Timeshift bucket id |
Query Parameters
Name | Type | Description |
---|---|---|
date | datetime | For example: 2024-05-17 |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer token |
Response
id | number | The channel id |
title | string | The channel name |
acr_id | string | acr id |
hour | string | Hour (24-hour clock) as a zero-padded decimal number. utf+0 |
seconds | number | The fingerprint duration that the server side received. This value has a certain margin of error (mainly due to the possibility of silence at the beginning or end of fingerprint fragments). We consider that if the total duration of fingerprints received in a complete hour is 3500 < seconds <= 3600, it indicates that the data received during this hour is normal. |
Last updated