▶ YTMusic API

Free YouTube Music catalogue API by CASPER TECH — no API key, no OAuth, no sign-up.

v1.0.0 Status: Live Built by TRABY CASPER

EndpointWhat it does
GET /api/search?q=Search songs, albums, artists, playlists
GET /api/suggestions?q=Search autocomplete suggestions
GET /api/homeHome feed (generic public home — a personal "For You" needs login)
GET /api/exploreExplore hub, incl. the Trending shelf
GET /api/chartsCharts, with country selector
GET /api/new-releasesNew albums, singles and music videos
GET /api/moodsMoods & genres list
GET /api/moods/:idOne mood / genre page (id = mood name from /api/moods)
GET /api/playlist/:idPublic playlist contents (up to 100 tracks per call)
GET /api/artist/:idArtist page (albums, singles, videos, playlists, similar artists)
GET /api/album/:idAlbum page with full track list
GET /api/next?videoId=&playlistId=What's next — the queue. playlistId RDAMVM… = radio, PL… = playlist queue
GET /api/player?videoId=Honest playability status (audio URLs only when the server is trusted)
GET /api/healthHealth check
Playback: from datacenter servers YouTube answers the player call with LOGIN_REQUIRED ("Sign in to confirm you're not a bot") — the block is IP trust / login, not the API key. /api/player reports this honestly instead of faking audio URLs. Run the API from a trusted network or with a logged-in session and the same call returns full-length audio URLs.
Not included: library, liked songs, history and personal "For You" mixes — those need a logged-in Google session. There is no standalone lyrics endpoint in YouTube Music (lyrics come via timedtext tied to playback).

API index (JSON) · GitHub · xcasper.space

Unofficial and unaffiliated with YouTube / Google. Use in line with YouTube's Terms of Service.