ACRCloud
Search…
File Scanning
get
https://api-v2.acrcloud.com
/api/fs-containers/:container_id/files
List the files and results
Curl
Python
1
curl --location --request GET 'https://api-v2.acrcloud.com/api/fs-containers/:your_container_id/files?page=1&per_page=20' \
2
--header 'Accept: application/json' \
3
--header 'Authorization: Bearer YourAccessToken'
Copied!
1
import requests
2
3
url = "https://api-v2.acrcloud.com/api/fs-containers/:your_container_id/files?page=1&per_page=20"
4
5
payload={}
6
headers = {
7
'Accept': 'application/json',
8
'Authorization': 'Bearer token'
9
}
10
11
response = requests.request("GET", url, headers=headers, data=payload)
12
13
print(response.text)
Copied!
post
https://api-v2.acrcloud.com
/api/fs-containers/:container_id/files
Upload a file or youtube URI
Curl
Python
PHP
1
curl --location --request POST 'https://api-v2.acrcloud.com/api/fs-containers/10005/files' \
2
--header 'Accept: application/json' \
3
--header 'Authorization: Bearer token' \
4
--form '[email protected]"/Users/olym/Downloads/886443683402_US4D80623007.mp3"' \
5
--form 'data_type="audio"'
Copied!
1
import requests
2
3
url = "https://api-v2.acrcloud.com/api/fs-containers/10005/files"
4
5
payload={'data_type': 'audio'}
6
files=[
7
('file',('886443683402_US4D80623007.mp3',open('886443683402_US4D80623007.mp3','rb'),'application/octet-stream'))
8
]
9
headers = {
10
'Accept': 'application/json',
11
'Authorization': 'Bearer token'
12
}
13
14
response = requests.request("POST", url, headers=headers, data=payload, files=files)
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://api-v2.acrcloud.com/api/fs-containers/10005/files',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS => array('file'=> new CURLFILE('886443683402_US4D80623007.lo'),'data_type' => 'fingerprint'),
15
CURLOPT_HTTPHEADER => array(
16
'Accept: application/json',
17
'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiI2IiwianRpIjoiZGMzNjIyOThhMDAyN2NmZDMzZGU3MjBhYThhY2I0MTgyMzJhN2I5ZTA4MzdjNTI0M2UxODIxYzcwMTA5NDIwZTg0ZGJhY2Q4YTRhZWM0YzAiLCJpYXQiOjE2MTg4MjA1NTAuMDA2OTYzLCJuYmYiOjE2MTg4MjA1NTAuMDA2OTY3LCJleHAiOjE2NTAzNTY1NDkuOTkwNTQxLCJzdWIiOiIxOSIsInNjb3BlcyI6WyIqIl19.G7L5T2fQljhK2D1za669Q3cIIbyBT0oE8Z_IWQyL0sofZvIOYymVqW55w6b_nX6emkJj7JfylAI7q7-CVxXUN4tRcJCv9-AxFprhQubKvy59_6B5jd38jsOGHdlmMN5x7Mt3xl9WUPd1ODFg6Vqp3tR3nQ9J9eqUjrZgu54Yyx-1_gekBx87GCvcJxfmiDTBmr8J4Ze5099W_Bsj5UHGUb1X-GhNxVzfTFranTsvSEFDEA5jrBvNGIRkvqMUCx4jK7sJstlnlvTUmJ6WK0owl946ULiJhPe5jlM2_CKDckw81Ri6ecV1zAOWncTWi1Oa5qUkpEVf6pBtzk4_OLLjWUZ3MRz7xO2BiFYTuWxaQKNL9W4RhWbsf'
18
),
19
));
20
21
$response = curl_exec($curl);
22
23
curl_close($curl);
24
echo $response;
Copied!
get
https://api-v2.acrcloud.com
/api/fs-containers/:container_id/files/:file_id
Show the one file's results
Curl
Python
1
curl --location --request GET 'https://api-v2.acrcloud.com/api/fs-containers/:your_container_id/files/f60c40d8-f35e-488e-bca4-105d85b080dc' \
2
--header 'Accept: application/json' \
3
--header 'Authorization: Bearer YourAccessToken'
Copied!
1
import requests
2
3
url = "https://api-v2.acrcloud.com/api/fs-containers/:your_container_id/files/f60c40d8-f35e-488e-bca4-105d85b080dc"
4
5
payload={}
6
headers = {
7
'Accept': 'application/json',
8
'Authorization': 'Bearer token'
9
}
10
11
response = requests.request("GET", url, headers=headers, data=payload)
12
13
print(response.text)
Copied!
delete
https://api-v2.acrcloud.com
/api/fs-containers/:container_id/files/:ids
Delete the files
1
Copied!
Last modified 27d ago