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,
"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
},
"credits_charged": 1,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Illustrative response with example values adapted for FetchGoblin. Run a request to retrieve current platform 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"
},
"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"
}
}
},
"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."
}
}
}