Live Channels
Create a live channel
POST
https://api-v2.acrcloud.com/api/buckets/:bucket_id/channels
Path Parameters
bucket_id
number
The bucket id
Headers
Authorization
string
Bearer token
Request Body
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
bucket_id
number
The bucket id
Query Parameters
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
Authorization
string
Bearer token
Update a channel
PUT
https://api-v2.acrcloud.com/api/buckets/:bucket_id/channels/:id
Path Parameters
bucket_id
string
bucket id
id
string
channel id
Headers
Authorization
string
Bearer token
Request Body
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
bucket_id
string
The bucket id
ids
string
One or multiple ids, separated by ','
Headers
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
bucket_id
string
Bucket id
Headers
Authorization
string
Bearer token
Request Body
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
bucket_id
number
The bucket id
ids
string
One or multiple channel ids. Separated by ','
Headers
Authorization
string
Bearer token
Create timeshift channels
POST
https://api-v2.acrcloud.com/api/buckets/:bucket_id/timeshift-channels
Path Parameters
bucket_id
number
The bucket id
Headers
Authorization
string
Bearer token
Request Body
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
ids
string
One or multiple channel ids, Separated by ','
bucket_id
number
The bucket id
Headers
Authorization
string
Bearer token
Get Live/Timeshift Channels status
GET
https://api-v2.acrcloud.com/api/buckets/:bucket_id/channels-stat
Path Parameters
bucket_id
number
The Live/Timeshift bucket id
Query Parameters
date
datetime
For example: 2024-05-17
Headers
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