List tracks in an album
curl --request GET \
--url http://localhost:6063/albums/{id}/tracksimport requests
url = "http://localhost:6063/albums/{id}/tracks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:6063/albums/{id}/tracks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "6063",
CURLOPT_URL => "http://localhost:6063/albums/{id}/tracks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://localhost:6063/albums/{id}/tracks"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:6063/albums/{id}/tracks")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:6063/albums/{id}/tracks")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "cmodxew97005epdmdvt8ar73r",
"path": "/Users/tsirysandratraina/Music/J. Cole - 2014 Forest Hills Drive (Explicit)/01. J. Cole - Intro (Explicit).m4a",
"title": "Intro",
"artist": "J. Cole",
"album": "2014 Forest Hills Drive",
"album_artist": "J. Cole",
"bitrate": 320,
"composer": "",
"disc_number": 1,
"filesize": 5168762,
"frequency": 44100,
"length": 129199,
"track_number": 1,
"year": 2014,
"year_string": "2014-12-09",
"md5": "07576ce8ea7906aa36bf05ae93cb1643",
"album_art": "216ccc791352fbbffc11268b984db19a.jpg",
"artist_id": "cmodw19po0005pdmd6k9mwauv",
"album_id": "cmodxew8w0053pdmdmro8vx0w",
"genre_id": "",
"is_remote": false,
"created_at": 1777096568,
"updated_at": 1777096568
},
{
"id": "cmodxew9a005opdmddc5l9y63",
"path": "/Users/tsirysandratraina/Music/J. Cole - 2014 Forest Hills Drive (Explicit)/02. J. Cole - January 28th (Explicit).m4a",
"title": "January 28th",
"artist": "J. Cole",
"album": "2014 Forest Hills Drive",
"album_artist": "J. Cole",
"bitrate": 320,
"composer": "",
"disc_number": 1,
"filesize": 9710586,
"frequency": 44100,
"length": 242744,
"track_number": 2,
"year": 2014,
"year_string": "2014-12-09",
"md5": "e6914133fcbcf8771fbf156c485b8459",
"album_art": "216ccc791352fbbffc11268b984db19a.jpg",
"artist_id": "cmodw19po0005pdmd6k9mwauv",
"album_id": "cmodxew8w0053pdmdmro8vx0w",
"genre_id": "",
"is_remote": false,
"created_at": 1777096568,
"updated_at": 1777096568
}
]Albums
List tracks in an album
GET
/
albums
/
{id}
/
tracks
List tracks in an album
curl --request GET \
--url http://localhost:6063/albums/{id}/tracksimport requests
url = "http://localhost:6063/albums/{id}/tracks"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:6063/albums/{id}/tracks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "6063",
CURLOPT_URL => "http://localhost:6063/albums/{id}/tracks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://localhost:6063/albums/{id}/tracks"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:6063/albums/{id}/tracks")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:6063/albums/{id}/tracks")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "cmodxew97005epdmdvt8ar73r",
"path": "/Users/tsirysandratraina/Music/J. Cole - 2014 Forest Hills Drive (Explicit)/01. J. Cole - Intro (Explicit).m4a",
"title": "Intro",
"artist": "J. Cole",
"album": "2014 Forest Hills Drive",
"album_artist": "J. Cole",
"bitrate": 320,
"composer": "",
"disc_number": 1,
"filesize": 5168762,
"frequency": 44100,
"length": 129199,
"track_number": 1,
"year": 2014,
"year_string": "2014-12-09",
"md5": "07576ce8ea7906aa36bf05ae93cb1643",
"album_art": "216ccc791352fbbffc11268b984db19a.jpg",
"artist_id": "cmodw19po0005pdmd6k9mwauv",
"album_id": "cmodxew8w0053pdmdmro8vx0w",
"genre_id": "",
"is_remote": false,
"created_at": 1777096568,
"updated_at": 1777096568
},
{
"id": "cmodxew9a005opdmddc5l9y63",
"path": "/Users/tsirysandratraina/Music/J. Cole - 2014 Forest Hills Drive (Explicit)/02. J. Cole - January 28th (Explicit).m4a",
"title": "January 28th",
"artist": "J. Cole",
"album": "2014 Forest Hills Drive",
"album_artist": "J. Cole",
"bitrate": 320,
"composer": "",
"disc_number": 1,
"filesize": 9710586,
"frequency": 44100,
"length": 242744,
"track_number": 2,
"year": 2014,
"year_string": "2014-12-09",
"md5": "e6914133fcbcf8771fbf156c485b8459",
"album_art": "216ccc791352fbbffc11268b984db19a.jpg",
"artist_id": "cmodw19po0005pdmd6k9mwauv",
"album_id": "cmodxew8w0053pdmdmro8vx0w",
"genre_id": "",
"is_remote": false,
"created_at": 1777096568,
"updated_at": 1777096568
}
]Path Parameters
Response
200 - application/json
Tracks belonging to the album
Duration in milliseconds
⌘I