ACRCloud
Ask or search…
K
Links

Live Channels

post
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/channels
Create a live channel
Parameters
Path
bucket_id
number
The bucket id
Header
Authorization
string
Bearer token
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
Responses
201
Cake successfully retrieved.
Curl
Python
curl --location --request POST 'https://api-v2.acrcloud.com/api/buckets/8894/channels' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token' \
--header 'Content-Type: application/json' \
--data-raw '{"title":"test", "url":"udp://192.168.1.10", "user_defined":{"city":"New York"}}'
import requests
url = "https://api-v2.acrcloud.com/api/buckets/8894/channels"
payload={
"title":"test",
"url":"udp://192.168.1.10",
"user_defined":{"city":"New York"}
}
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer token',
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers, json=payload)
print(response.text)
get
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/channels
List the channels
Parameters
Path
bucket_id
number
The bucket id
Query
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
Header
Authorization
string
Bearer token
Responses
200
Curl
curl --location --request GET 'https://api-v2.acrcloud.com/api/buckets/8894/channels' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token'
put
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/channels/:id
Update a channel
Parameters
Path
bucket_id
string
bucket id
id
string
channel id
Header
Authorization
string
Bearer token
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.
Responses
200
Curl
curl --location --request PUT 'https://api-v2.acrcloud.com/api/buckets/8884/channels/8' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token' \
--header 'Content-Type: application/json' \
--data-raw '{"title":"test"}'
delete
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/channels/:ids
Delete ingesting channels
Parameters
Path
bucket_id
string
The bucket id
ids
string
One or multiple ids, separated by ','
Header
Authorization
string
Bearer token
Responses
204
Curl
curl --location --request DELETE 'https://api-v2.acrcloud.com/api/buckets/8894/channels/8' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token'
post
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/rec-channels
Import channels
Curl
curl --location --request POST 'https://api-v2.acrcloud.com/api/buckets/8885/rec-channels' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token' \
--header 'Content-Type: application/json' \
--data-raw '{"ids":[5,6]}'
delete
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/rec-channels/:ids
Delete rec channels
Parameters
Path
bucket_id
number
The bucket id
ids
string
One or multiple channel ids. Separated by ','
Header
Authorization
string
Bearer token
Responses
204
Curl
curl --location --request DELETE 'https://api-v2.acrcloud.com/api/buckets/8895/rec-channels/5,6' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token'
post
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/timeshift-channels
Create timeshift channels
Parameters
Path
bucket_id
number
The bucket id
Header
Authorization
string
Bearer token
Body
time
number
The timeshift fingerprints keep-alive time (In hours). The default is 1 hour.
id
number
The live channel id
Responses
200
Curl
curl --location --request POST 'https://api-v2.acrcloud.com/api/buckets/8893/timeshift-channels' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token' \
--header 'Content-Type: application/json' \
--data-raw '{"id":5, "time":24}'
delete
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/timeshift-channels/:ids
Delete timeshift channels
Parameters
Path
ids
string
One or multiple channel ids, Separated by ','
bucket_id
number
The bucket id
Header
Authorization
string
Bearer token
Responses
200
Last modified 2mo ago