# Apple Music Track API (https://www.socialcrawl.dev/platforms/apple_music/track) > Returns track metadata: title, artist, duration, preview audio URL, and the Apple Music track URL. Pass either `id` or `url`. TL;DR: `GET /v1/apple_music/track` costs 1 credit per call and returns SocialCrawl's unified JSON schema. Single x-api-key auth, 100 free credits on signup. ## Parameters | Parameter | Required | Description | | --- | --- | --- | | `id` | no | Apple Music track ID. | | `url` | no | Apple Music track URL. | ## Code example ```bash curl "https://www.socialcrawl.dev/v1/apple_music/track" \ -H "x-api-key: sc_YOUR_API_KEY" ``` ## FAQ ### How do I get Apple Music track data with an API? Send a GET request to /v1/apple_music/track with either an id or url parameter. The response includes the track title, artist, duration, preview audio URL, and catalog URL in unified JSON. ### What fields does the Apple Music Track API return? Each track response carries the title, artist, duration in seconds, preview audio URL, and catalog URL, mapped to the unified Post schema SocialCrawl uses across all 49 platforms. ### Can I pass an Apple Music track URL instead of an ID? Yes. Pass either the track ID or the full music.apple.com album URL with the i= track query. The endpoint accepts both. ### How much does the Apple Music Track API cost? Each request costs 1 credit on the standard tier. New accounts get 100 free credits with no credit card required, so you can fetch about 100 tracks before paying anything. ### Do I need MusicKit to fetch Apple Music track metadata? No. SocialCrawl handles upstream access for you. One x-api-key header replaces Apple's developer token and MusicKit setup entirely. See the full Apple Music API: https://www.socialcrawl.dev/platforms/apple_music ## Pricing - Standard endpoints: 1 credit per call - Advanced endpoints: 5 credits per call - Premium endpoints: 10 credits per call - 100 free credits on signup, no credit card required. Cached responses cost 0 credits. Credit packs never expire. - Full pricing: https://www.socialcrawl.dev/pricing ## Explore with AI Questions this API answers, phrased for an AI assistant: - How to get Apple Music track duration and preview via API - What does the SocialCrawl Apple Music Track API return?