[GH-ISSUE #144] Question: ISRC and UPC code #106

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

Originally created by @pyropy on GitHub (Jan 6, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/144

Hi, is it possible to get ISRC and UPC codes in response?

Originally created by @pyropy on GitHub (Jan 6, 2021). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/144 Hi, is it possible to get ISRC and UPC codes in response?
kerem closed this issue 2026-02-27 22:08:04 +03:00
Author
Owner

@sigma67 commented on GitHub (Jan 6, 2021):

Are they available on the YouTube (Music) web interface somewhere? If not it's unlikely that they're available at all for regular users

<!-- gh-comment-id:755191377 --> @sigma67 commented on GitHub (Jan 6, 2021): Are they available on the YouTube (Music) web interface somewhere? If not it's unlikely that they're available at all for regular users
Author
Owner

@pyropy commented on GitHub (Jan 6, 2021):

Are they available on the YouTube (Music) web interface somewhere? If not it's unlikely that they're available at all for regular users

I haven't found it anywhere in response, but I'm not sure is there ISRC / UPC code in response actually. But I'm able to search by ISRC/UPC with search method.

<!-- gh-comment-id:755205236 --> @pyropy commented on GitHub (Jan 6, 2021): > Are they available on the YouTube (Music) web interface somewhere? If not it's unlikely that they're available at all for regular users I haven't found it anywhere in response, but I'm not sure is there ISRC / UPC code in response actually. But I'm able to search by ISRC/UPC with `search` method.
Author
Owner

@sigma67 commented on GitHub (Jan 6, 2021):

Oh interesting, that's good to know. Could you provide an example videoId with ISRC and UPC? I could check if it's contained in the response at all.

<!-- gh-comment-id:755248973 --> @sigma67 commented on GitHub (Jan 6, 2021): Oh interesting, that's good to know. Could you provide an example videoId with ISRC and UPC? I could check if it's contained in the response at all.
Author
Owner

@pyropy commented on GitHub (Jan 6, 2021):

Of course!

Here's example ISRC code of Michael Jackson's Earth song USSM19500010 and here's an example of UPC code for 21 Savage's album Savage Mode II 886448747697.

Here's an example of how I use search with UPC/ISRC.

from ytmusicapi import YTMusic
client = YTMusic()
isrc = "USSM19500010"
upc = "886448747697"

song_results  = client.search(isrc, filter='songs')  # this will hold song results, but only one result in arraya
album_results  = client.search(upc, filter='albums')  # this will hold album results, but only one result in array also
<!-- gh-comment-id:755259642 --> @pyropy commented on GitHub (Jan 6, 2021): Of course! Here's example ISRC code of Michael Jackson's Earth song `USSM19500010` and here's an example of UPC code for 21 Savage's album Savage Mode II `886448747697`. Here's an example of how I use search with UPC/ISRC. ```python from ytmusicapi import YTMusic client = YTMusic() isrc = "USSM19500010" upc = "886448747697" song_results = client.search(isrc, filter='songs') # this will hold song results, but only one result in arraya album_results = client.search(upc, filter='albums') # this will hold album results, but only one result in array also ```
Author
Owner

@sigma67 commented on GitHub (Jan 6, 2021):

Unfortunately no, seems it's only available in the backend for search. It was not contained in search or get_song response.

<!-- gh-comment-id:755430279 --> @sigma67 commented on GitHub (Jan 6, 2021): Unfortunately no, seems it's only available in the backend for search. It was not contained in search or get_song response.
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#106
No description provided.