[GH-ISSUE #477] Reason get_artist sometimes doesn't return songs #356

Closed
opened 2026-02-27 23:00:21 +03:00 by kerem · 3 comments
Owner

Originally created by @Schtenk on GitHub (Nov 27, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/477

Hey, i'm not sure this is the correct place to put this but I think I know why get_artist sometimes doesn't return songs.

There seems to be two different "channelIds" per artist.
both of these works to get an artist except one does not include songs.

  • ChannelId

This i is the one this api saves as "channelId"

This type of Id for for Mariah Carey is: UCurpiDXSkcUbgdMwHNZkrCg

This is the one found at the jsonpath:
header.musicImmersiveHeaderRenderer.subscriptionButton.subscribeButtonRenderer.channelId

Using this one in a new request no songs are included in the response.

  • ChannelId/ChannelBrowseId

This is the one that youtube itself seems to mostly use which can only be found on songs/albums/singles or "More" buttons in the response.

This type of Id for Mariah Carey is: UCKRnq8aBOCanYlffje7HyvA

On songs/album/singles it is found in the above form^

From your library "More" button its in the form of:

  • MPLAUCKRnq8aBOCanYlffje7HyvA

And on all other "More" Buttons its in the form of:

  • MPADUCKRnq8aBOCanYlffje7HyvA

The full jsonpath may look something like this (MPAD version):
contents.singleColumnBrowseResultsRenderer.tabs[0].tabRenderer.
content.sectionListRenderer.contents[1].musicCarouselShelfRenderer.
header.musicCarouselShelfBasicHeaderRenderer.moreContentButton.
buttonRenderer.navigationEndpoint.browseEndpoint.browseId

Using this one in a new request songs are included in the response.

Originally created by @Schtenk on GitHub (Nov 27, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/477 Hey, i'm not sure this is the correct place to put this but I think I know why get_artist sometimes doesn't return songs. There seems to be two different "channelIds" per artist. both of these works to get an artist except one does not include songs. - ### ChannelId This i is the one this api saves as "channelId" This type of Id for for Mariah Carey is: UCurpiDXSkcUbgdMwHNZkrCg This is the one found at the jsonpath: header.musicImmersiveHeaderRenderer.subscriptionButton.subscribeButtonRenderer.channelId Using this one in a new request no songs are included in the response. - ### ChannelId/ChannelBrowseId This is the one that youtube itself seems to mostly use which can only be found on songs/albums/singles or "More" buttons in the response. This type of Id for Mariah Carey is: UCKRnq8aBOCanYlffje7HyvA On songs/album/singles it is found in the above form^ From your library "More" button its in the form of: - MPLAUCKRnq8aBOCanYlffje7HyvA And on all other "More" Buttons its in the form of: - MPADUCKRnq8aBOCanYlffje7HyvA The full jsonpath may look something like this (MPAD version): contents.singleColumnBrowseResultsRenderer.tabs[0].tabRenderer. content.sectionListRenderer.contents[1].musicCarouselShelfRenderer. header.musicCarouselShelfBasicHeaderRenderer.moreContentButton. buttonRenderer.navigationEndpoint.browseEndpoint.browseId Using this one in a new request songs are included in the response.
kerem closed this issue 2026-02-27 23:00:21 +03:00
Author
Owner

@Schtenk commented on GitHub (Nov 27, 2023):

Responses are also slightly different, for example ShuffleId is under "watchPlaylistEndpoint" (for channelId) instead of "watchEndpoint" (for channelBrowseId), same for RadioId.

<!-- gh-comment-id:1828393768 --> @Schtenk commented on GitHub (Nov 27, 2023): Responses are also slightly different, for example ShuffleId is under "watchPlaylistEndpoint" (for channelId) instead of "watchEndpoint" (for channelBrowseId), same for RadioId.
Author
Owner

@Schtenk commented on GitHub (Nov 27, 2023):

found that videos are also missing when using "channelId"

<!-- gh-comment-id:1828427333 --> @Schtenk commented on GitHub (Nov 27, 2023): found that videos are also missing when using "channelId"
Author
Owner
<!-- gh-comment-id:1828504106 --> @sigma67 commented on GitHub (Nov 27, 2023): See for yourself: https://music.youtube.com/channel/UCurpiDXSkcUbgdMwHNZkrCg https://music.youtube.com/channel/UCKRnq8aBOCanYlffje7HyvA
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#356
No description provided.