Requesting getting information about the counterpart #443
Answered
by
sigma67
polvallverdu
asked this question in
Q&A
-
I'm writing a script to get the counterpart of a song, since I would like this feature here, but I don't really know what the best way to implement it to the lib would be, so I'll post all the info that I've got. The call should be to const counterpart =
data.contents.singleColumnMusicWatchNextResultsRenderer.tabbedRenderer
.watchNextTabbedResultsRenderer.tabs[0].tabRenderer.content.musicQueueRenderer
.content.playlistPanelRenderer.contents[0].playlistPanelVideoWrapperRenderer
.counterpart[0]
const counterpartVideoId =
counterpart.counterpartRenderer.playlistPanelVideoRenderer.videoId This would only work if the account logged in has a youtube premium membership. |
Beta Was this translation helpful? Give feedback.
Answered by
sigma67
Sep 26, 2023
Replies: 1 comment
Answer selected by
polvallverdu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://ytmusicapi.readthedocs.io/en/stable/search.html?q=counterpart&check_keywords=yes&area=default