[GH-ISSUE #431] 'videoId': None #324

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

Originally created by @MishchenkoYuriy on GitHub (Sep 16, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/431

Hi, I keep exploring the API and found that some unavailable videos have 'videoId': None.

response = yt.get_playlist('PLDcPimbLEWH_w_l05-0Yt25qP2pjqv9Z4', limit=None)
print(response['tracks'][18])
print(response['tracks'][63])
{'videoId': None,
 'title': 'Royalty Free Music - Very Low Note - Horror - Kevin MacLeod',
 'artists': [{'name': 'Free Royalty Archive', 'id': None}],
 'album': None,
 'likeStatus': None,
 'thumbnails': [{'url': 'https://i.ytimg.com/vi/-IaRXQziS9I/sddefault.jpg?sqp=-oaymwEWCJADEOEBIAQqCghqEJQEGHgg6AJIWg&rs=AMzJL3llfhCmfL2z8YDqLK-_U1lxbpaotQ',
   'width': 400,
   'height': 225}],
 'isAvailable': False,
 'isExplicit': False,
 'videoType': None,
 'duration': '1:24',
 'duration_seconds': 84}

However, these videos are available on YouTube and have ids. Is there a way to get these ids with ytmusicapi?

Originally created by @MishchenkoYuriy on GitHub (Sep 16, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/431 Hi, I keep exploring the API and found that some unavailable videos have `'videoId': None`. ``` response = yt.get_playlist('PLDcPimbLEWH_w_l05-0Yt25qP2pjqv9Z4', limit=None) print(response['tracks'][18]) print(response['tracks'][63]) ``` ``` {'videoId': None, 'title': 'Royalty Free Music - Very Low Note - Horror - Kevin MacLeod', 'artists': [{'name': 'Free Royalty Archive', 'id': None}], 'album': None, 'likeStatus': None, 'thumbnails': [{'url': 'https://i.ytimg.com/vi/-IaRXQziS9I/sddefault.jpg?sqp=-oaymwEWCJADEOEBIAQqCghqEJQEGHgg6AJIWg&rs=AMzJL3llfhCmfL2z8YDqLK-_U1lxbpaotQ', 'width': 400, 'height': 225}], 'isAvailable': False, 'isExplicit': False, 'videoType': None, 'duration': '1:24', 'duration_seconds': 84} ``` However, these videos are available on YouTube and have ids. Is there a way to get these ids with ytmusicapi?
kerem closed this issue 2026-02-27 23:00:11 +03:00
Author
Owner

@sigma67 commented on GitHub (Sep 16, 2023):

image

see #430

Please don't create multiple issues on the same topic. This is a server-side issue and not something that can be fixed by this community-created project.

<!-- gh-comment-id:1722261287 --> @sigma67 commented on GitHub (Sep 16, 2023): ![image](https://github.com/sigma67/ytmusicapi/assets/16363825/04674377-b7fb-4935-b0b7-dcb6fb4edae9) see #430 Please don't create multiple issues on the same topic. This is a server-side issue and not something that can be fixed by this community-created project.
Author
Owner

@sigma67 commented on GitHub (Sep 16, 2023):

Here is proof that it's not available. This is the raw data provided by the server:

image

{
    "trackingParams": "CBQQ2PIDGCgiEwiy5uyIxq-BAxU-ykIFHYrnCB8=",
    "thumbnail":
    {
        "musicThumbnailRenderer":
        {
            "thumbnail":
            {
                "thumbnails":
                [
                    {
                        "url": "https://lh3.googleusercontent.com/h1hJEQnmaZ9zyRlEU8C0tsyo-HySjc2ADY6NrBXF6znA6O7R6afQt1XItJcrUKK0M_CUzn3UePqKWIR9qg=w60-h60-l90-rj",
                        "width": 60,
                        "height": 60
                    },
                    {
                        "url": "https://lh3.googleusercontent.com/h1hJEQnmaZ9zyRlEU8C0tsyo-HySjc2ADY6NrBXF6znA6O7R6afQt1XItJcrUKK0M_CUzn3UePqKWIR9qg=w120-h120-l90-rj",
                        "width": 120,
                        "height": 120
                    }
                ]
            },
            "thumbnailCrop": "MUSIC_THUMBNAIL_CROP_UNSPECIFIED",
            "thumbnailScale": "MUSIC_THUMBNAIL_SCALE_ASPECT_FIT",
            "trackingParams": "CBYQhL8CIhMIsubsiMavgQMVPspCBR2K5wgf"
        }
    },
    "overlay":
    {
        "musicItemThumbnailOverlayRenderer":
        {
            "background":
            {
                "verticalGradient":
                {
                    "gradientLayerColors":
                    [
                        "3422552064",
                        "3422552064"
                    ]
                }
            },
            "content":
            {
                "musicPlayButtonRenderer":
                {
                    "trackingParams": "CBUQyN4CIhMIsubsiMavgQMVPspCBR2K5wgf",
                    "playIcon":
                    {
                        "iconType": "PLAY_ARROW"
                    },
                    "pauseIcon":
                    {
                        "iconType": "PAUSE"
                    },
                    "iconColor": 4294967295,
                    "backgroundColor": 0,
                    "activeBackgroundColor": 0,
                    "loadingIndicatorColor": 4294901760,
                    "playingIcon":
                    {
                        "iconType": "VOLUME_UP"
                    },
                    "iconLoadingColor": 0,
                    "activeScaleFactor": 1,
                    "buttonSize": "MUSIC_PLAY_BUTTON_SIZE_SMALL",
                    "rippleTarget": "MUSIC_PLAY_BUTTON_RIPPLE_TARGET_SELF"
                }
            },
            "contentPosition": "MUSIC_ITEM_THUMBNAIL_OVERLAY_CONTENT_POSITION_CENTERED",
            "displayStyle": "MUSIC_ITEM_THUMBNAIL_OVERLAY_DISPLAY_STYLE_PERSISTENT"
        }
    },
    "flexColumns":
    [
        {
            "musicResponsiveListItemFlexColumnRenderer":
            {
                "text":
                {
                    "runs":
                    [
                        {
                            "text": "We Can Live Like Maddie and David"
                        }
                    ]
                },
                "displayPriority": "MUSIC_RESPONSIVE_LIST_ITEM_COLUMN_DISPLAY_PRIORITY_HIGH"
            }
        },
        {
            "musicResponsiveListItemFlexColumnRenderer":
            {
                "text":
                {
                    "runs":
                    [
                        {
                            "text": "Bebopovsky And The Orkestry Podyezdov"
                        }
                    ]
                },
                "displayPriority": "MUSIC_RESPONSIVE_LIST_ITEM_COLUMN_DISPLAY_PRIORITY_HIGH"
            }
        },
        {
            "musicResponsiveListItemFlexColumnRenderer":
            {
                "text":
                {
                    "runs":
                    [
                        {
                            "text": "Pink Flamingo Detective Agency"
                        }
                    ]
                },
                "displayPriority": "MUSIC_RESPONSIVE_LIST_ITEM_COLUMN_DISPLAY_PRIORITY_MEDIUM"
            }
        }
    ],
    "musicItemRendererDisplayPolicy": "MUSIC_ITEM_RENDERER_DISPLAY_POLICY_GREY_OUT"
}
<!-- gh-comment-id:1722265695 --> @sigma67 commented on GitHub (Sep 16, 2023): Here is proof that it's not available. This is the raw data provided by the server: ![image](https://github.com/sigma67/ytmusicapi/assets/16363825/1e45ecd1-d236-489c-98b3-d95e45a1fb4f) ```json { "trackingParams": "CBQQ2PIDGCgiEwiy5uyIxq-BAxU-ykIFHYrnCB8=", "thumbnail": { "musicThumbnailRenderer": { "thumbnail": { "thumbnails": [ { "url": "https://lh3.googleusercontent.com/h1hJEQnmaZ9zyRlEU8C0tsyo-HySjc2ADY6NrBXF6znA6O7R6afQt1XItJcrUKK0M_CUzn3UePqKWIR9qg=w60-h60-l90-rj", "width": 60, "height": 60 }, { "url": "https://lh3.googleusercontent.com/h1hJEQnmaZ9zyRlEU8C0tsyo-HySjc2ADY6NrBXF6znA6O7R6afQt1XItJcrUKK0M_CUzn3UePqKWIR9qg=w120-h120-l90-rj", "width": 120, "height": 120 } ] }, "thumbnailCrop": "MUSIC_THUMBNAIL_CROP_UNSPECIFIED", "thumbnailScale": "MUSIC_THUMBNAIL_SCALE_ASPECT_FIT", "trackingParams": "CBYQhL8CIhMIsubsiMavgQMVPspCBR2K5wgf" } }, "overlay": { "musicItemThumbnailOverlayRenderer": { "background": { "verticalGradient": { "gradientLayerColors": [ "3422552064", "3422552064" ] } }, "content": { "musicPlayButtonRenderer": { "trackingParams": "CBUQyN4CIhMIsubsiMavgQMVPspCBR2K5wgf", "playIcon": { "iconType": "PLAY_ARROW" }, "pauseIcon": { "iconType": "PAUSE" }, "iconColor": 4294967295, "backgroundColor": 0, "activeBackgroundColor": 0, "loadingIndicatorColor": 4294901760, "playingIcon": { "iconType": "VOLUME_UP" }, "iconLoadingColor": 0, "activeScaleFactor": 1, "buttonSize": "MUSIC_PLAY_BUTTON_SIZE_SMALL", "rippleTarget": "MUSIC_PLAY_BUTTON_RIPPLE_TARGET_SELF" } }, "contentPosition": "MUSIC_ITEM_THUMBNAIL_OVERLAY_CONTENT_POSITION_CENTERED", "displayStyle": "MUSIC_ITEM_THUMBNAIL_OVERLAY_DISPLAY_STYLE_PERSISTENT" } }, "flexColumns": [ { "musicResponsiveListItemFlexColumnRenderer": { "text": { "runs": [ { "text": "We Can Live Like Maddie and David" } ] }, "displayPriority": "MUSIC_RESPONSIVE_LIST_ITEM_COLUMN_DISPLAY_PRIORITY_HIGH" } }, { "musicResponsiveListItemFlexColumnRenderer": { "text": { "runs": [ { "text": "Bebopovsky And The Orkestry Podyezdov" } ] }, "displayPriority": "MUSIC_RESPONSIVE_LIST_ITEM_COLUMN_DISPLAY_PRIORITY_HIGH" } }, { "musicResponsiveListItemFlexColumnRenderer": { "text": { "runs": [ { "text": "Pink Flamingo Detective Agency" } ] }, "displayPriority": "MUSIC_RESPONSIVE_LIST_ITEM_COLUMN_DISPLAY_PRIORITY_MEDIUM" } } ], "musicItemRendererDisplayPolicy": "MUSIC_ITEM_RENDERER_DISPLAY_POLICY_GREY_OUT" } ```
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#324
No description provided.