UCF Results

get
List the ucf results

https://api-v2.acrcloud.com/ucf-projects/:pid/results
Request
Response
Request
Path Parameters
pid
required
number
The ucf project id
Headers
Authentication
required
string
Bearer token
Query Parameters
page
optional
number
The page number
begin_date
optional
string
Filter the results by begin_date. The format is "%Y-%m-%d" or "%Y-%m-%d %H:%M:%S"
end_date
optional
string
Filter the results by end_date. The format is "%Y-%m-%d" or "%Y-%m-%d %H:%M:%S"
sortby
optional
string
Sort the results by 'id', 'num', 'duration_ms'. The default is sort by 'id'.
order
optional
string
desc or asc. Default is desc.
status
optional
string
0:Pending results. 2: Edited results. 6: Reported results. 10: Bucketed results. 14: Reported & Bucketed results. -1: Deleted results
min
optional
string
Filter the results by minimum duration. (seconds)
max
optional
string
Filter the results by maximum duration.(seconds)
streams
optional
string
Filter the results by streams ids. Separated by
ucf_id
optional
string
Filter the results by ucf id.
label
optional
string
The API will do its best to find a cake matching the provided recipe.
per_page
optional
boolean
Response
200: OK
Cake successfully retrieved.
{
"data":[
{
"id":340335,
"acr_id":"d7a4ebc9685f23bdc843ed4146b35f69",
"status":0,
"label":2,
"num":3,
"duration_ms":131460,
"metadata":null,
"created_at":"2020-05-27 08:56:45",
"pid":10263
},
{
"id":340334,
"acr_id":"4fc390bfb9db91e904084715c530e25d",
"status":0,
"label":3,
"num":3,
"duration_ms":157840,
"metadata":null,
"created_at":"2020-05-27 08:56:41",
"pid":10263
},
{
"id":340333,
"acr_id":"4965aefe6b33202f9a1fb000d2a00bd6",
"status":0,
"label":1,
"num":3,
"duration_ms":136740,
"metadata":null,
"created_at":"2020-05-27 08:49:18",
"pid":10263
},
{
"id":340332,
"acr_id":"e0e99fd9dc89da03e5081b856dcbf609",
"status":0,
"label":2,
"num":2,
"duration_ms":130900,
"metadata":null,
"created_at":"2020-05-27 08:49:14",
"pid":10263
},
{
"id":340331,
"acr_id":"79242e7fdf8db9063b75e5406adb2985",
"status":0,
"label":3,
"num":2,
"duration_ms":158820,
"metadata":null,
"created_at":"2020-05-27 08:49:10",
"pid":10263
},
{
"id":340330,
"acr_id":"0ea18f0ef7548f99129086bb29699e87",
"status":0,
"label":3,
"num":4,
"duration_ms":120760,
"metadata":null,
"created_at":"2020-05-27 08:44:06",
"pid":10263
},
{
"id":340328,
"acr_id":"f3e85570e94ae78735c49c4574422bf3",
"status":0,
"label":3,
"num":4,
"duration_ms":201060,
"metadata":null,
"created_at":"2020-05-27 08:43:57",
"pid":10263
},
{
"id":340327,
"acr_id":"6fae20c216b2b212931d0b92ac505542",
"status":0,
"label":1,
"num":2,
"duration_ms":303900,
"metadata":null,
"created_at":"2020-05-27 08:43:50",
"pid":10263
},
{
"id":340326,
"acr_id":"0eba7a977facffeed6b15e08d47cf135",
"status":0,
"label":2,
"num":2,
"duration_ms":194400,
"metadata":null,
"created_at":"2020-05-27 08:38:50",
"pid":10263
},
{
"id":340325,
"acr_id":"c0f1b9e0a46f417db2634f55ebbc7954",
"status":0,
"label":1,
"num":2,
"duration_ms":129000,
"metadata":null,
"created_at":"2020-05-27 08:33:50",
"pid":10263
}
],
"links":{
"first":"http://127.0.0.1:8080/api/ucf-projects/10263/results?per_page=10&status=0&page=1",
"last":"http://127.0.0.1:8080/api/ucf-projects/10263/results?per_page=10&status=0&page=9",
"prev":null,
"next":"http://127.0.0.1:8080/api/ucf-projects/10263/results?per_page=10&status=0&page=2"
},
"meta":{
"current_page":1,
"from":1,
"last_page":9,
"path":"http://127.0.0.1:8080/api/ucf-projects/10263/results",
"per_page":"10",
"to":10,
"total":90
}
}
Curl
Curl
curl --location --request GET 'https://api-v2.acrcloud.com/api/ucf-projects/10263/results?page=1&per_page=10&status=0' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token'

get
List the details of one ucf item

https://api-v2.acrcloud.com/ucf-projects/:pid/results/:ucf_id/details
Request
Response
Request
Path Parameters
pid
required
number
The project id
ucf_id
required
number
The ucf id
Headers
Authentication
required
string
Bearer token
Query Parameters
page
optional
number
per_page
optional
number
begin_date
optional
string
end_date
optional
string
Response
200: OK
{
"data":[
{
"id":4708635,
"duration_ms":137520,
"acr_id":"d7a4ebc9685f23bdc843ed4146b35f69",
"begin_time":"2020-05-26 08:41:33",
"pid":10263,
"stream":{
"id":53,
"uid":1,
"pid":10263,
"bm_stream_id":"s-U3P7kHj",
"bm_project_id":10263,
"from":"BM-CUSTOM",
"state":2,
"updated_at":"2020-12-28T07:55:04.000000Z",
"created_at":"2020-05-28T03:53:03.000000Z",
"bm_stream_name":"RTM KL FM",
"bm_project_name":"PPM"
}
},
{
"id":4708634,
"duration_ms":132500,
"acr_id":"d7a4ebc9685f23bdc843ed4146b35f69",
"begin_time":"2020-05-25 08:43:03",
"pid":10263,
"stream":{
"id":53,
"uid":1,
"pid":10263,
"bm_stream_id":"s-U3P7kHj",
"bm_project_id":10263,
"from":"BM-CUSTOM",
"state":2,
"updated_at":"2020-12-28T07:55:04.000000Z",
"created_at":"2020-05-28T03:53:03.000000Z",
"bm_stream_name":"RTM KL FM",
"bm_project_name":"PPM"
}
},
{
"id":4708633,
"duration_ms":131460,
"acr_id":"d7a4ebc9685f23bdc843ed4146b35f69",
"begin_time":"2020-05-24 05:17:36",
"pid":10263,
"stream":{
"id":53,
"uid":1,
"pid":10263,
"bm_stream_id":"s-U3P7kHj",
"bm_project_id":10263,
"from":"BM-CUSTOM",
"state":2,
"updated_at":"2020-12-28T07:55:04.000000Z",
"created_at":"2020-05-28T03:53:03.000000Z",
"bm_stream_name":"RTM KL FM",
"bm_project_name":"PPM"
}
}
],
"links":{
"first":"http://127.0.0.1:8080/api/ucf-projects/10263/results/340335/details?per_page=10&page=1",
"last":"http://127.0.0.1:8080/api/ucf-projects/10263/results/340335/details?per_page=10&page=1",
"prev":null,
"next":null
},
"meta":{
"current_page":1,
"from":1,
"last_page":1,
"path":"http://127.0.0.1:8080/api/ucf-projects/10263/results/340335/details",
"per_page":"10",
"to":3,
"total":3
}
}
Curl
Curl
curl --location --request GET 'http://127.0.0.1:8080/api/ucf-projects/10263/results/340335/details?page=1&per_page=10' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token'

get
Get the ucf record url

https://api-v2.acrcloud.com/ucf-projects/:pid/results/:ucf_id/record
Request
Response
Request
Path Parameters
pid
optional
string
ucf_id
optional
string
Headers
Authentication
required
string
Bearer token
Query Parameters
extend
optional
string
The extend length(seconds) at the beginning and ending. Default is 20 seconds. The max value is 60 seconds
Response
200: OK
{
"stream_id":"16323",
"begin":1590505455380,
"end":1590505576220,
"prefix_extend":20,
"suffix_extend":20,
"play_url":"https://api-v2.acrcloud.com/api/ucf-projects/10263/results/340337/play?stream_id=16323&begin=1590505455380&end=1590505576220&prefix=20&suffix=20"
}
Curl
Curl
curl --location --request GET 'https://api-v2.acrcloud.com/api/ucf-projects/10263/results/340337/record' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token'

delete
Delete a ucf item

https://api-v2.acrcloud.com/ucf-projects/:pid/results/:ucf_id
Request
Response
Request
Path Parameters
pid
required
number
The ucf project id
ucf_id
required
number
The ucf id
Headers
Authentication
required
string
Bearer token
Response
204: No Content
Curl
Curl
curl --location --request DELETE 'https://api-v2.acrcloud.com/api/ucf-projects/results/4768035' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer token'