Explore the Music Stream API to fetch streaming URLs and album details across multiple music services.
Get API KeyThe Music Stream API allows you to retrieve streaming URLs and album metadata from services like Spotify, Apple Music, YouTube Music, Deezer, and Tidal by passing a single URL. This documentation covers the primary endpoint, request parameters, and response format.
Base URL: https://api.musicstream.io/v1
Authentication: Requires an API key, available via xAI API Portal.
Retrieve streaming URLs and metadata for an album by providing a URL from a supported service.
GET /album
https://open.spotify.com/album/123456789
)
curl -X GET "https://api.musicstream.io/v1/album?url=https://open.spotify.com/album/123456789&api_key=YOUR_API_KEY"
Response for the above request:
{ "album": { "title": "Example Album", "artist": "Example Artist", "release_date": "2023-06-15", "tracks": [ { "title": "Song 1", "duration": "3:45" }, { "title": "Song 2", "duration": "4:12" } ], "cover_art": "https://example.com/cover.jpg" }, "streaming_urls": { "spotify": "https://open.spotify.com/album/123456789", "apple_music": "https://music.apple.com/album/123456789", "youtube_music": "https://music.youtube.com/playlist?list=123456789", "deezer": "https://deezer.com/album/123456789", "tidal": "https://tidal.com/browse/album/123456789" } }
Join developers worldwide who trust Music Stream API to power their music applications. Subscribe now to access our API and explore our comprehensive documentation.
View Pricing & Subscribe