Retrieve a list of singers’ vocal samples for your songs
December 2, 2024
Table of contents
https://api.useapi.net/v1/mureka/music/vocals/?…
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
API token
is required, see Setup useapi.net for details.
Query Parameters
-
account
is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required. -
last_id
is optional. Use it to retrieve the next page of data. To do so, set its value to thelast_id
returned in the previous response when themore
field in that response istrue
.
Responses
-
{ "list": [ { "id": 11223344, "url": "https://<voice sample download url>.mp3", "duration_milliseconds": 23456, "gender": 1, "title": "<Voice name 1>", "created_at": 12345688, "username": "<user name>", "language": 1, "styles": [ "rock", "high-pitched" ], "background_url": "https://<singer profile image>.jpeg" }, { "id": 55667788, "url": "https://<voice sample download url>.mp3", "duration_milliseconds": 3456, "gender": 2, "title": "<Voice name 2>", "created_at": 12345677, "username": "<user name>", "language": 1, "styles": [ "country", "sweet" ], "background_url": "https://<singer profile image>.jpeg" } ], "last_id": 987654321, "more": true }
-
{ "error": "<Error message>", "code": 400 }
-
{ "error": "Unauthorized", "code": 401 }
Model
{ // TypeScript, all fields are optional
list: {
id: number
url: string
duration_milliseconds: number
gender: number
title: string
created_at: number
username: string
language: number
styles: string[]
background_url: string
}[]
last_id: number
more: boolean
}
Examples
-
curl "https://api.useapi.net/v1/mureka/music/vocals/?account=account" \ -H "Accept: application/json" \ -H "Authorization: Bearer …"
-
const token = "API token"; const account = "Previously configured account"; const apiUrl = `https://api.useapi.net/v1/mureka/music/vocals/?account=${account}`; const response = await fetch(apiUrl, { headers: { "Authorization": `Bearer ${token}`, }, }); const result = await response.json(); console.log("response", {response, result});
-
import requests token = "API token" account = "Previously configured account" apiUrl = f"https://api.useapi.net/v1/mureka/music/vocals/?account={account}" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.get(apiUrl, headers=headers) print(response, response.json())