[GH-ISSUE #235] Playing a YTMusic song via Chromecast not working #183

Closed
opened 2026-02-27 22:08:29 +03:00 by kerem · 0 comments
Owner

Originally created by @maxpd1 on GitHub (Nov 17, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/235

Hello,

What are the possibilities to launch a song from YouTube Music via API on Google Home?
I use iobroker with chromecast adapter https://github.com/iobroker-community-adapters/ioBroker.chromecast where I can't insert an authrization header. Perhaps only if I set up ja JavaScript for that. But I think thats too difficult for me.

I play YTMusic with Google Home.
When I read the Google Home Api, the media.contentID is ExvqA9I_gsQ for example. This is the ID of the song that is playing.
Now I want to send a trigger via API that will continue playing the song after a previously triggered pause.
Normally you enter a URL in the player.url2play attribute.
The corresponding URL of YTMusic which works in the browser would be https://music.youtube.com/watch?v=ExvqA9I_gsQ.
However, Google Home does not recognize the URL of YTMusic and does not play the song. Also the media.contentID in the url2play field alone does not work.

What are the possibilities to start a song from YouTube Music via API on Google Home?

Spotify offers an extra API backend for this, which you can use to create a premium login URL if the missing login on the YT URL would be the problem. Do YT have something like this?

Regards

Originally created by @maxpd1 on GitHub (Nov 17, 2021). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/235 Hello, What are the possibilities to launch a song from YouTube Music via API on Google Home? I use iobroker with chromecast adapter https://github.com/iobroker-community-adapters/ioBroker.chromecast where I can't insert an authrization header. Perhaps only if I set up ja JavaScript for that. But I think thats too difficult for me. I play YTMusic with Google Home. When I read the Google Home Api, the media.contentID is ExvqA9I_gsQ for example. This is the ID of the song that is playing. Now I want to send a trigger via API that will continue playing the song after a previously triggered pause. Normally you enter a URL in the player.url2play attribute. The corresponding URL of YTMusic which works in the browser would be https://music.youtube.com/watch?v=ExvqA9I_gsQ. However, Google Home does not recognize the URL of YTMusic and does not play the song. Also the media.contentID in the url2play field alone does not work. What are the possibilities to start a song from YouTube Music via API on Google Home? Spotify offers an extra API backend for this, which you can use to create a premium login URL if the missing login on the YT URL would be the problem. Do YT have something like this? Regards
kerem 2026-02-27 22:08:29 +03:00
  • closed this issue
  • added the
    invalid
    label
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#183
No description provided.