I'm working on a school project and I'm trying to get all albums details and informations for a band in one call with the musicbrainz api?
I'm using this:
https://musicbrainz.org/ws/2/release/?artist=055b084a-9a90-4df4-b2d7-1c1192f9d144&inc=recordings&fmt=json
But I can't make it work. When sending the request, the Firefox console returns this error message:
GET https://musicbrainz.org/ws/2/release/?artist=055b084a-9a90-4df4-b2d7-1c1192f9d144&inc=recordings&fmt=json [HTTP/2 503 Service Unavailable]
Sorry for italian spaghetti language.
My code:
$(document).ready(function(){
$("#pulsante_album").click(function(){
var i = $("lista_discografia").val();
$.getJSON("https://musicbrainz.org/ws/2/release/?artist=055b084a-9a90-4df4-b2d7-1c1192f9d144&inc=recordings&fmt=json"), function(dati) {
console.log(dati);
var album = dati.release;
var label = dati.label;
var genere = dati.genre;
var stringa = "Titolo: " + album + " - Etichetta: " + label + " - Genere: " + genre;
$("div_dati").text(stringa);
};
$("pulsante_album").val("Visualizza");
});
});