APPLE MUSIC API
Artist
Retrieve artist from Apple Music with a single API request.
GET
/api/data/v1/apple-music/artist1credit base cost
Request parameters
Up to 1 creditApple Music artist id. If you'd prefer to use the URL instead, you can use the url parameter instead.
Apple Music artist 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/artist?id=159260351' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"data": {
"id": "159260351",
"kind": "artist",
"name": "Taylor Swift",
"url": "https://music.apple.com/us/artist/taylor-swift/159260351",
"artwork": {
"url": "https://is1-ssl.mzstatic.com/image/thumb/AMCArtistImages221/v4/70/30/3b/example/1200x1200bb.jpg",
"width": 5998,
"height": 5998
},
"editorial_notes": "The country world feigned surprise when Taylor Swift formally embraced pop...",
"top_songs": [
{
"id": "1833328840",
"kind": "song",
"title": "The Fate of Ophelia",
"artist_name": "Taylor Swift",
"url": "https://music.apple.com/us/album/the-fate-of-ophelia/1833328839?i=1833328840",
"duration_ms": 226000
}
],
"albums": [
{
"id": "1468058165",
"kind": "album",
"title": "Lover",
"subtitle": "Taylor Swift",
"track_count": 18,
"url": "https://music.apple.com/us/album/lover/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"
},
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"artwork": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
}
},
"editorial_notes": {
"type": "string"
},
"top_songs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"title": {
"type": "string"
},
"artist_name": {
"type": "string"
},
"url": {
"type": "string"
},
"duration_ms": {
"type": "integer"
}
}
}
},
"albums": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"title": {
"type": "string"
},
"subtitle": {
"type": "string"
},
"track_count": {
"type": "integer"
},
"url": {
"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."
}
}
}