Apple Music Track Lookup
Resolve an Apple Music track ID or link in the store of a chosen country: title, artist, album, genre, release date and duration, as a stable link with a pre-rendered preview or through a JSON API.
Since
2026
Part of
troubleshooting.tools
Technologies
The Challenge
Apple Music links sometimes carry a song number, sometimes an album number, and the same track ID can exist in one country's store and not in the next. Anyone who only gets “not found” cannot tell whether the ID is wrong, whether it is an album ID, or whether the title simply is not offered in the chosen country.
The Solution
The tool queries one country's store specifically and says clearly when a title is not available there. It reads song and album links, takes the country from the link, tells album IDs from track IDs and refuses non-songs such as music videos. Stable links are rendered on the server with the answer.
How a lookup runs
ID or link
A track ID or an Apple Music link as a song or album address. The country from the link becomes the store country; otherwise the selection from 184 countries applies.
Query from the server
The server queries Apple's public iTunes Lookup API without a key, with hard timeouts; found titles are cached. Outbound requests are guarded and fail closed.
Result
Cover in high resolution, title, artist, album, genre, release date, track and disc number, duration, explicit status, store and the IDs of track, album and artist, each copyable.
Clear answers
An album ID is recognised and answered with the note that in an album address the track number is the one after ?i=. Non-songs such as music videos are refused. A country without an Apple store is reported as such, not as “track not found”. That makes it clear right away why a lookup fails.
Stable links and API
Under /lookup/apple/track/{country}/{id} the page is served from the server with the answer already in it, and link previews carry title, artist, album, duration, genre and release date. The API answers via GET or POST as compact JSON with Apple's record for exactly that track, without a key and with open CORS. The rate limit applies per address.
Platform and operations
The tool runs on the same platform as every tool on troubleshooting.tools: plain PHP behind nginx in one Docker image, a shared layout and router, a strict Content Security Policy per route and no CDN. GitLab CI tests every branch, builds the images with Docker-in-Docker and deploys them; structured logs and external uptime checks monitor operations.
Privacy
The browser only sends track ID and country to the site; the server queries Apple. The cover is served by the site as well; the visitor's browser does not contact Apple. There are no previews, embeds or maps, and the link to Apple Music opens only after confirmation. The tool sets no cookies.
Results
A lookup that tells exactly what is behind an Apple Music ID and why a query fails, per country and with stable, shareable links.
Gallery
Screenshots of the public site with example targets.