Get music track
curl --request GET \
--url https://rawugc.com/api/v1/music/{musicId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://rawugc.com/api/v1/music/{musicId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://rawugc.com/api/v1/music/{musicId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rawugc.com/api/v1/music/{musicId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://rawugc.com/api/v1/music/{musicId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://rawugc.com/api/v1/music/{musicId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://rawugc.com/api/v1/music/{musicId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"musicId": "mus_jh7a3b9xq2pn4r8k",
"status": "pending",
"model": "V5",
"prompt": "upbeat lo-fi hip hop beat",
"creditsUsed": 3,
"createdAt": 1740000000000
}
Music Generation
Get music track
Get a music track by ID. Returns full details including status, model, audio URL, album art, and duration when completed.
GET
/
music
/
{musicId}
Get music track
curl --request GET \
--url https://rawugc.com/api/v1/music/{musicId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://rawugc.com/api/v1/music/{musicId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://rawugc.com/api/v1/music/{musicId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rawugc.com/api/v1/music/{musicId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://rawugc.com/api/v1/music/{musicId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://rawugc.com/api/v1/music/{musicId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://rawugc.com/api/v1/music/{musicId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"musicId": "mus_jh7a3b9xq2pn4r8k",
"status": "pending",
"model": "V5",
"prompt": "upbeat lo-fi hip hop beat",
"creditsUsed": 3,
"createdAt": 1740000000000
}
Authorizations
Use your API key from the RawUGC dashboard. Include as: Authorization: Bearer YOUR_API_KEY
Path Parameters
Music identifier (mus_xxx format)
Response
Music generation status
Unique music identifier (mus_xxx format)
Current generation status
Available options:
pending, processing, completed, failed Suno model version used
Text prompt used for generation
URL to download the generated audio (available when status is 'completed')
URL for the generated album art image
Track duration in seconds
Track title
Credits deducted for this generation
Timestamp when generation was initiated
Timestamp when generation completed (if finished)
Error code if generation failed
Error message if generation failed
Was this page helpful?

