YT shnwazdev-ytmusicapi Endpoint docs

Limit-free defaults

YT Music API Endpoints

These endpoints return JSON from YouTube Music through ytmusicapi. They do not apply a default item cap: each route asks for every available item that YouTube Music exposes for that request.

GET /api/ytmusic?method=search&q=arijit%20singh&filter=songs

Behavior

No Default Limit

  • Search, playlist, artist album, and trending endpoints request all available items by default.
  • The website search box filters the full returned list, not a shortened preview.
  • Use country=IN, country=US, or country=GLOBAL where supported.
  • All successful responses include ok, endpoint, and updatedAt.

Routes

Working Endpoints

Use the examples directly

Trending

Country trending playlist, all songs returned by the playlist.

/api/trending?country=IN

Search

Search catalog items. Filters include songs, videos, albums, artists, playlists, podcasts, and episodes.

/api/search?q=arijit%20singh&filter=songs

Suggestions

Search suggestions for a query.

/api/suggestions?q=alone

Charts

Chart playlists and ranked artists for a country.

/api/charts?country=IN

New Releases

Latest albums, EPs, and singles exposed by YouTube Music explore.

/api/new_releases

Music Premium Feed

Free public YouTube Music feed rows for apps using your API URL.

/music_premium/musicfeed

Playlist

Playlist metadata with all available tracks.

/api/playlist?id=OLAK5uy_lSTp1DIuzZBUyee3kDsXwPgP25WdfwB40

Song

Song or video metadata from a video id.

/api/song?id=0KYJPoGJcMc

Song Related

Related songs, playlists, albums, and artist sections from a related browse id.

/api/song_related?id=MPRE...

Album

Album metadata and tracks from an album browse id.

/api/album?id=MPREb_...

Album Browse ID

Resolve an album browse id from an audio playlist id.

/api/album_browse_id?id=OLAK5uy_...

Artist

Artist profile, releases, songs, and browse tokens.

/api/artist?id=UCDxKh1gFWeYsqePvgVzmPoQ

Artist Albums

All artist albums from the params token returned by the artist endpoint.

/api/artist_albums?id=UC...&params=...

Lyrics

Lyrics from a lyrics browse id. Add timestamps=true for timed lyrics when available.

/api/lyrics?id=MPLYt_...&timestamps=true

Moods

All mood and genre categories.

/api/moods

Mood Playlists

Playlists for a mood params token returned by /api/moods.

/api/mood_playlists?params=ggM...

Explore

Raw explore feed from YouTube Music.

/api/explore

Generic Dispatcher

Call any listed endpoint through one route with method=endpoint_name.

/api/ytmusic?method=search&q=arijit%20singh&filter=songs

Endpoint Index

Machine-readable endpoint list for apps and docs.

/api/endpoints