Apple Music track by id or URL — song details
scrapecreators.x.v1-apple-music-trackRetrieves public Apple Music song details by id or URL.
- Price
- $0.00188/callAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-apple-music-track?id=1833328840PreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
id | string | Optional | Apple Music song id. Some songs have standalone song URLs; for album tracks, use the url parameter. | 1833328840 |
url | string | Optional | Apple Music song URL or album track URL. | https://music.apple.com/us/album/lover/1468058165?i=1468058169 |
- Query parameters
idstringOptionalApple Music song id. Some songs have standalone song URLs; for album tracks, use the url parameter.
Example:
1833328840urlstringOptionalApple Music song URL or album track URL.
Example:
https://music.apple.com/us/album/lover/1468058165?i=1468058169
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-apple-music-track?id=1833328840' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-apple-music-track?id=1833328840",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-apple-music-track?id=1833328840", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.00188/call, including the service fee.