APPLE MUSIC API
Track
Retrieve track from Apple Music with a single API request.
GET
/api/data/v1/apple-music/track1credit base cost
Request parameters
Up to 1 creditApple Music song id. Some songs have standalone song URLs; for album tracks, use the url parameter.
Apple Music song URL or album track URL.
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/apple-music/track?id=1833328840' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"credits_charged": 1,
"data": {
"id": "1468058169",
"kind": "song",
"title": "I Forgot That You Existed",
"album": null,
"url": "https://music.apple.com/us/album/i-forgot-that-you-existed/1468058165?i=1468058169",
"duration_ms": 170651,
"track_number": 1,
"artist_name": null,
"explicit": false
}
}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"
},
"credits_remaining": {
"type": "integer"
},
"credits_charged": {
"type": "integer"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"title": {
"type": "string"
},
"album": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"url": {
"type": "string"
},
"duration_ms": {
"type": "integer"
},
"track_number": {
"type": "integer"
},
"artist_name": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"explicit": {
"type": "boolean"
}
}
}
}
}