Audio Files
Upload an audio file/fingerprint
POST
https://api-v2.acrcloud.com/api/buckets/:bucket_id/files
Upload the audio files or fingerprint to the specified bucket
Path Parameters
bucket_id
number
The bucket id
Headers
Authorization
string
Bearer token
Request Body
file
object
The audio or fingerprint file. Required if the data_type is audio or fingerprint
title
string
The title of this file
data_type
string
the file type, the value should be audio, fingerprint, audio_url or acrid
user_defined
string
The user-defined metadata. JSON format.
url
string
audio file download URL. required if the data_type is audio_url
acrid
String
acrid from ACRCloud Music Database
List the files
GET
https://api-v2.acrcloud.com/api/buckets/:bucket_id/files
Path Parameters
bucket_id
string
The bucket id
Query Parameters
search
string
search by title
sort
string
sort by id or status, default is sort by id
order
string
asc or desc, default is asc
page
number
The page number
per_page
number
The results number per page
state
number
0:processing 1:Ready (audio files have been processed) -1: Error
Headers
Authorization
string
Bearer token
Update a file
PUT
https://api-v2.acrcloud.com/api/buckets/:bucket_id/files/:id
Update the metadata of a file
Path Parameters
bucket_id
number
The bucket id
id
number
The file id/acr_id
Headers
Authorization
string
Bearer token
Request Body
title
string
The file title.
user_defined
string
User-defined metadata, JSON format.
Delete files
DELETE
https://api-v2.acrcloud.com/api/buckets/:bucket_id/files/:ids
Path Parameters
bucket_id
number
The bucket id
ids
number
The file ids/acrids, seperated by ","
Headers
Authorization
string
Bearer token
Move the files to another bucket
PUT
https://api-v2.acrcloud.com/api/buckets/:bucket_id/files/:ids/move
Move the files to another bucket
Path Parameters
bucket_id
number
The bucket id that you want move the files to.
ids
string
One or multiple ids/acrids, separated by ","
Headers
Authorization
string
Bearer token
Get one or multiple files
GET
https://api-v2.acrcloud.com/api/buckets/:bucket_id/files/:ids
Path Parameters
ids
string
The files ids or acrids. Seperated by ","
bucket_id
string
The bucket id
Headers
Authorization*
string
Bearer token
Dump all the files information in this bucket (only dump bucket data once a day)
GET
https://api-v2.acrcloud.com/api/buckets/:bucket_id/dump
This is an asynchronous request. After the request is completed, you must wait and check the status through the interface. Once it becomes 1, you can download it using the down_url address.
Path Parameters
bucket_id*
Number
Your bucket ID
Headers
Authorization*
String
Bearer token
Last updated