Apple Music tracks
POST /scrape accepts an individual https://music.apple.com/.../song/.../ID
link or an album link with exactly one numeric ?i=TRACK_ID selection.
Albums, playlists and artist pages are unsupported and rejected before lookup.
Set SOCIALCRAWL_API_KEY in the API deployment environment. The key is sent
only in the x-api-key header. Socialcrawl's apple_music/track endpoint
provides title and artist metadata; its preview audio is never downloaded.
The service searches YouTube Music for artist title official audio, using
the same song search and shared yt-dlp/MP3 pipeline as Spotify. Matches can
differ from the original Apple Music recording. Audio download does not require Spotify credentials. Artwork uses Socialcrawl
content.thumbnail_url when available; otherwise optional SPOTIFY_CLIENT_ID
and SPOTIFY_CLIENT_SECRET enable a Spotify search matching title, artist and
duration. Spotify outages or missing artwork never block the audio download.
Covers are embedded in the MP3 and served as the audio thumbnail.
Socialcrawl costs 1 credit per uncached successful lookup. Contract and pricing
were verified using the free utility guide and dry_run=1; production does
one metadata lookup per uncached track. Each lookup has a UUID idempotency key,
preserved across up to three retries and a 60-second timeout per attempt.
Only explicitly retryable API errors and timeouts are retried. Withdrawn
endpoints (SERVICE_UNAVAILABLE without Retry-After) are not retried.
Missing/empty tracks return 404. Download retries do not repeat paid lookups.
Completed MP3s use the shared cache (am-TRACK_ID) with concurrent requests
deduplicated. Cache invalidation works through the gateway's cache admin API.
Run uv run uvicorn pinchana_apple_music.main:app --port 8091 inside this directory,
or use the apple_music service in either Compose file.
Run the isolated tests with uv run python -m unittest discover -s tests -v.
Metadata
Release files for pinchana-apple-music 26.11.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pinchana_apple_music-26.11.15.tar.gz | 6.8 kB | With provenance | Details for pinchana_apple_music-26.11.15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pinchana_apple_music-26.11.15-py3-none-any.whl | Python 3 | none | any | Details for pinchana_apple_music-26.11.15-py3-none-any.whl |
Total release size: 15.3 kB
Release files / pinchana_apple_music-26.11.15.tar.gz
| Download URL | pinchana_apple_music-26.11.15.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a09560e45745b790b94f64d8688bcbff8e47cc9d80122420a63cfae1579d963e
|
|
BLAKE2b-256 checksum How to use checksums |
f87520e0a43efe56eaa93b0a74333d39cde8b32adb6a3aa9efc1f481e7b94579
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / pinchana_apple_music-26.11.15-py3-none-any.whl
| Download URL | pinchana_apple_music-26.11.15-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96a41c4e5a5aeba4f16998446b811da9e1987aedf9e8973628c7e8be71f0acdd
|
|
BLAKE2b-256 checksum How to use checksums |
df41d17773dcf94b00539e9dc3dddbf2d57c565291ebfea3a0fda2fe8046fc25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for pinchana-apple-music 26.11.15
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pinchana_apple_music-26.11.15.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.