APPLE MUSIC API
Album
Retrieve album from Apple Music with a single API request.
GET
/api/data/v1/apple-music/album1credit base cost
Request parameters
Up to 1 creditApple Music album id. If you'd prefer to use the URL instead, you can use the url parameter instead.
Apple Music album URL. If you'd prefer to use the id instead, you can use the id parameter instead.
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/apple-music/album?id=1468058165' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"data": {
"id": "1468058165",
"kind": "album",
"title": "Lover",
"artist_name": "Taylor Swift",
"artist_url": "https://music.apple.com/us/artist/taylor-swift/159260351",
"url": "https://music.apple.com/us/album/lover/1468058165",
"track_count": 18,
"release_info": "August 23, 2019\n18 songs, 1 hour 1 minute\n℗ 2019 Taylor Swift",
"tracks": [
{
"id": "1468058169",
"kind": "song",
"title": "I Forgot That You Existed",
"duration_ms": 170651,
"track_number": 1,
"album_id": "1468058165"
}
]
},
"credits_charged": 1,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"title": {
"type": "string"
},
"artist_name": {
"type": "string"
},
"artist_url": {
"type": "string"
},
"url": {
"type": "string"
},
"track_count": {
"type": "integer"
},
"release_info": {
"type": "string"
},
"tracks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"title": {
"type": "string"
},
"duration_ms": {
"type": "integer"
},
"track_number": {
"type": "integer"
},
"album_id": {
"type": "string"
}
}
}
}
}
},
"credits_charged": {
"type": "integer",
"minimum": 0,
"description": "FetchGoblin credits charged for this request."
},
"credits_remaining": {
"type": "integer",
"description": "Your FetchGoblin credit balance after this request."
},
"request_id": {
"type": "string",
"format": "uuid",
"description": "FetchGoblin request identifier."
}
}
}