A.V. Mapping Music to Video Service API allows users to upload images and video, perform image/video analysis services to obtain music and sound effects that fit the image/video context. Along with audio noise reduction API.
There are three parameters that can be included in the request header to modify the data returned by the API, and authorization (API token) is a required item.
authorization is a required header data that can give users access to the API.accept-language specifies the language of the returned data. Currently, only zh and en are available. If not provided, the default is zh.avma-currency specifies the price currency of the returned data. Currently, only TWD, USD, and EUR are available. If not provided, the default is TWD.After obtaining the required token and determining the type of data to be obtained, you can use POST or GET to access the film Service API.
For example, to obtain a list of image libraries with data returned as USD$ in English:
curl <https://filmmusic.avmapping.co/film/> \\
-H "authorization: Token 3c2924a718c4a100f04ae442a7308c7cd5c7a681" \\
-H "accept-language: en" \\
-H "avma-currency: usd"
The core process of the film service includes uploading a video, initiating the image analysis service, and retrieving the analysis results. You need to perform the following three steps in order:
Upload a visual file to create a ‘Film object’
You first need to upload a video file or image file via POST /film/ or provide a YouTube URL to create a Film object. Upon successful upload, the API will return the created id.
Request Example
curl <https://filmmusic.avmapping.co/film/> \\
-X POST \\
-H "authorization: Token 3c2924a718c4a100f04ae442a7308c7cd5c7a681" \\
-H "Content-Type: application/x-www-form-urlencoded" \\
-F file=@filename
Response
{
"id": 1320
}