Download the song license and stems
March 31, 2025
Table of contents
https://api.useapi.net/v1/mureka/music/download
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Alternatively you can use multipart/form-data
# Content-Type: multipart/form-data
API token
is required, see Setup useapi.net for details.
Request Body
{
"song_id": 123456789,
"type": "stem"
}
song_id
is required.
Thesong_id
value returned by one of the following endpoints:type
is required. Supported values:stem
,license
Responses
-
{ "oss_key": "https://static-cos.mureka.ai/…zip", "paid_state": 1 }
-
{ "error": "<Error message>", "code": 400 }
-
{ "error": "Wrong username/password combination.", "code": 401 }
Model
{ // TypeScript, all fields are optional
oss_key: string
paid_state: number
}
Examples
-
curl -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer …" \ -X POST https://api.useapi.net/v1/mureka/music/download \ -d '{"song_id": …, "type": "stem"}'
-
const song_id = 123456789; const type = "stem"; const apiUrl = `https://api.useapi.net/v1/mureka/music/download`; const api_token = "API token"; const data = { method: 'POST', headers: { 'Authorization': `Bearer ${api_token}`, 'Content-Type': 'application/json' } }; data.body = JSON.stringify({ song_id, type }); const response = await fetch(apiUrl, data); const result = await response.json(); console.log("response", {response, result});
-
import requests song_id = 123456789 type = "stem" apiUrl = f"https://api.useapi.net/v1/mureka/music/download" api_token = "API token" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {api_token}" } body = { "song_id": song_id, "type": f"{type}" } response = requests.post(apiUrl, headers=headers, json=body) print(response, response.json())