[GH-ISSUE #713] How to get artist radio list? #463

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

Originally created by @Vasa211 on GitHub (Jan 7, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/713

How to get artist radio list?

*I want create playlist from radio one time per day

Originally created by @Vasa211 on GitHub (Jan 7, 2025). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/713 How to get artist radio list? *I want create playlist from radio one time per day
kerem 2026-02-27 23:00:56 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@sigma67 commented on GitHub (Jan 8, 2025):

Hi, sorry about that. It should be returned by get_artist but it seems it broke some time ago. I have adjusted the paths and it should be fixed now

<!-- gh-comment-id:2576955970 --> @sigma67 commented on GitHub (Jan 8, 2025): Hi, sorry about that. It should be returned by `get_artist` but it seems it broke some time ago. I have adjusted the paths and it should be fixed now
Author
Owner

@Vasa211 commented on GitHub (Jan 8, 2025):

You don't get it. How do I get the whole list of songs from radio id? I've gotten the id itself before

<!-- gh-comment-id:2578300118 --> @Vasa211 commented on GitHub (Jan 8, 2025): You don't get it. How do I get the whole list of songs from radio id? I've gotten the id itself before
Author
Owner

@sigma67 commented on GitHub (Jan 8, 2025):

Just use get_playlist. I'd appreciate if you could be a bit less rude. Normally I would just close these kinds of issues that are merely questions and don't bother to follow the template

<!-- gh-comment-id:2578324730 --> @sigma67 commented on GitHub (Jan 8, 2025): Just use `get_playlist`. I'd appreciate if you could be a bit less rude. Normally I would just close these kinds of issues that are merely questions and don't bother to follow the template
Author
Owner

@Vasa211 commented on GitHub (Jan 8, 2025):

Sorry. English is not my native language, maybe that's how the translator translated it. I certainly didn't mean to be rude, sorry again.

I'm going to try what you wrote

<!-- gh-comment-id:2578336487 --> @Vasa211 commented on GitHub (Jan 8, 2025): Sorry. English is not my native language, maybe that's how the translator translated it. I certainly didn't mean to be rude, sorry again. I'm going to try what you wrote
Author
Owner

@Vasa211 commented on GitHub (Jan 8, 2025):

search_results = ytmusic.search(ARTIST_NAME, filter="artists")
if not search_results:
print(f"{ARTIST_NAME} not found.")
return
artist = ytmusic.get_artist(search_results[0]['browseId'])
radio_id = artist['radioId']
print(f"ID radio: {radio_id}")
radio_playlist = ytmusic.get_playlist(radio_id)

what i do wrong? i received error:

main.py", line 22, in update_playlist radio_playlist = ytmusic.get_playlist(radio_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...../ytmusicapi/mixins/playlists.py", line 110, in get_playlist response = self._send_request(endpoint, body) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...../ytmusicapi/ytmusic.py", line 278, in _send_request raise YTMusicServerError(message + error) ytmusicapi.exceptions.YTMusicServerError: Server returned HTTP 404: Not Found. Requested entity was not found.

<!-- gh-comment-id:2578341732 --> @Vasa211 commented on GitHub (Jan 8, 2025): `search_results = ytmusic.search(ARTIST_NAME, filter="artists")` ` if not search_results:` ` print(f"{ARTIST_NAME} not found.")` ` return` ` artist = ytmusic.get_artist(search_results[0]['browseId'])` ` radio_id = artist['radioId']` ` print(f"ID radio: {radio_id}")` ` radio_playlist = ytmusic.get_playlist(radio_id)` what i do wrong? i received error: `main.py", line 22, in update_playlist radio_playlist = ytmusic.get_playlist(radio_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...../ytmusicapi/mixins/playlists.py", line 110, in get_playlist response = self._send_request(endpoint, body) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "...../ytmusicapi/ytmusic.py", line 278, in _send_request raise YTMusicServerError(message + error) ytmusicapi.exceptions.YTMusicServerError: Server returned HTTP 404: Not Found. Requested entity was not found.`
Author
Owner

@sigma67 commented on GitHub (Jan 9, 2025):

Ah ok fair, I thought that might be the case. I have reponsed in your separate question

<!-- gh-comment-id:2579369532 --> @sigma67 commented on GitHub (Jan 9, 2025): Ah ok fair, I thought that might be the case. I have reponsed in your separate question
Author
Owner

@sigma67 commented on GitHub (Jan 9, 2025):

Which version are you using to get the radioId?

Does it work for you on 1.9.1? Or using the version from Github?

<!-- gh-comment-id:2579896583 --> @sigma67 commented on GitHub (Jan 9, 2025): Which version are you using to get the radioId? Does it work for you on 1.9.1? Or using the version from Github?
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#463
No description provided.