[GH-ISSUE #442] Requesting getting information about the counterpart #328

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

Originally created by @polvallverdu on GitHub (Sep 26, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/442

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 youtubei/v1/next with the header videoId, and this would return info about the counterpart video Id, and segments to match the audio within the transition. Info should be here

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.

Originally created by @polvallverdu on GitHub (Sep 26, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/442 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 `youtubei/v1/next` with the header `videoId`, and this would return info about the counterpart video Id, and segments to match the audio within the transition. Info should be here ```ts 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.
kerem closed this issue 2026-02-27 23:00:13 +03:00
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#328
No description provided.