# [youtube-search-python](https://github.com/alexmercerind/youtube-search-python)
## This library will be/is no longer maintained as of 23rd June 2022. Have a look [here](https://github.com/alexmercerind/youtube-search-python/issues/189).
##### Search for YouTube videos, channels & playlists. Get video & playlist information using link. Get search suggestions.
##### Important: As of v1.6.1, we no longer use PyTube (see https://github.com/alexmercerind/youtube-search-python/pull/155). You have to install yt-dlp in order to use StreamURLFetcher: `pip install yt-dlp`
#### WITHOUT YouTube Data API v3.
[![PyPI - Version](https://img.shields.io/pypi/v/youtube-search-python?style=for-the-badge)](https://pypi.org/project/youtube-search-python)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/youtube-search-python?label=DOWNLOADS&style=for-the-badge)](https://pypi.org/project/youtube-search-python)
## Installing
```bash
pip3 install youtube-search-python
```
## Sync
#### Search for only videos
```python
from youtubesearchpython import VideosSearch
videosSearch = VideosSearch('NoCopyrightSounds', limit = 2)
print(videosSearch.result())
```
<details>
<summary> Example Result</summary>
```json
{
"result": [
{
"type": "video",
"id": "K4DyBUG242c",
"title": "Cartoon - On & On (feat. Daniel Levi) [NCS Release]",
"publishedTime": "5 years ago",
"duration": "3:28",
"viewCount": {
"text": "389,673,774 views",
"short": "389M views"
},
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/K4DyBUG242c/hqdefault.jpg?sqp=-oaymwEjCOADEI4CSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBkTusCwcZQlmVAaRQ5rH-mvBuA1g",
"width": 480,
"height": 270
}
],
"richThumbnail": {
"url": "https://i.ytimg.com/an_webp/K4DyBUG242c/mqdefault_6s.webp?du=3000&sqp=COCn64IG&rs=AOn4CLBeYxeJ_5lME4jXbFQlv7kIN37kmw",
"width": 320,
"height": 180
},
"descriptionSnippet": [
{
"text": "NCS: Music Without Limitations NCS Spotify: http://spoti.fi/NCS Free Download / Stream: http://ncs.io/onandon \u25bd Connect with\u00a0..."
}
],
"channel": {
"name": "NoCopyrightSounds",
"id": "UC_aEa8K-EOJ3D6gOs7HcyNg",
"thumbnails": [
{
"url": "https://yt3.ggpht.com/a-/AOh14GhS0G5FwV8rMhVCUWSDp36vWEvnNs5Vl97Zww=s68-c-k-c0x00ffffff-no-rj-mo",
"width": 68,
"height": 68
}
],
"link": "https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg"
},
"accessibility": {
"title": "Cartoon - On & On (feat. Daniel Levi) [NCS Release] by NoCopyrightSounds 5 years ago 3 minutes, 28 seconds 389,673,774 views",
"duration": "3 minutes, 28 seconds"
},
"link": "https://www.youtube.com/watch?v=K4DyBUG242c",
"shelfTitle": null
},
{
"type": "video",
"id": "yJg-Y5byMMw",
"title": "Warriyo - Mortals (feat. Laura Brehm) [NCS Release]",
"publishedTime": "3 years ago",
"duration": "3:50",
"viewCount": {
"text": "153,353,801 views",
"short": "153M views"
},
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/yJg-Y5byMMw/hqdefault.jpg?sqp=-oaymwEjCOADEI4CSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDY-mve79IweErMo-71AsKEIB1m0A",
"width": 480,
"height": 270
}
],
"richThumbnail": {
"url": "https://i.ytimg.com/an_webp/K4DyBUG242c/mqdefault_6s.webp?du=3000&sqp=COCn64IG&rs=AOn4CLBeYxeJ_5lME4jXbFQlv7kIN37kmw",
"width": 320,
"height": 180
},
"descriptionSnippet": [
{
"text": "NCS: Music Without Limitations NCS Spotify: http://spoti.fi/NCS Free Download / Stream: http://ncs.io/mortals Connect with NCS:\u00a0..."
}
],
"channel": {
"name": "NoCopyrightSounds",
"id": "UC_aEa8K-EOJ3D6gOs7HcyNg",
"thumbnails": [
{
"url": "https://yt3.ggpht.com/a-/AOh14GhS0G5FwV8rMhVCUWSDp36vWEvnNs5Vl97Zww=s68-c-k-c0x00ffffff-no-rj-mo",
"width": 68,
"height": 68
}
],
"link": "https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg"
},
"accessibility": {
"title": "Warriyo - Mortals (feat. Laura Brehm) [NCS Release] by NoCopyrightSounds 3 years ago 3 minutes, 50 seconds 153,353,801 views",
"duration": "3 minutes, 50 seconds"
},
"link": "https://www.youtube.com/watch?v=yJg-Y5byMMw",
"shelfTitle": null
}
]
}
```
</details>
## Async
#### Search for only videos
```python
from youtubesearchpython.__future__ import VideosSearch
videosSearch = VideosSearch('NoCopyrightSounds', limit = 2)
videosResult = await videosSearch.next()
print(videosResult)
```
Read more about usage & examples of newer asynchronous version of this library [HERE](https://github.com/alexmercerind/youtube-search-python/tree/main/youtubesearchpython/__future__).
## More Examples
#### Search for only channels
```python
from youtubesearchpython import ChannelsSearch
channelsSearch = ChannelsSearch('NoCopyrightSounds', limit = 10, region = 'US')
print(channelsSearch.result())
```
<details>
<summary> Example Result</summary>
```json
{
"result": [
{
"type": "channel",
"id": "UC_aEa8K-EOJ3D6gOs7HcyNg",
"title": "NoCopyrightSounds",
"thumbnails": [
{
"url": "//yt3.ggpht.com/ytc/AAUvwngbenDpBxHNZlecDGyccHeVyQB22dPZnPuhbW8LHw=s88-c-k-c0x00ffffff-no-rj-mo",
"width": 88,
"height": 88
},
{
"url": "//yt3.ggpht.com/ytc/AAUvwngbenDpBxHNZlecDGyccHeVyQB22dPZnPuhbW8LHw=s176-c-k-c0x00ffffff-no-rj-mo",
"width": 176,
"height": 176
}
],
"videoCount": "850",
"descriptionSnippet": [
{
"text": "NoCopyrightSounds",
"bold": true
},
{
"text": " is a copyright free / stream safe record label, providing free to use music to the content creator community."
}
],
"subscribers": "28.7M subscribers",
"link": "https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg"
},
{
"type": "channel",
"id": "UCg-vlcyvOyNVPV6Neogmubg",
"title": "NoCopyrightSounds Hindi",
"thumbnails": [
{
"url": "//yt3.ggpht.com/ytc/AAUvwnjDHXULXSvX7u71Rmb2f-Cqly0ron2F1N3szu8Y=s88-c-k-c0x00ffffff-no-rj-mo",
"width": 88,
"height": 88
},
{
"url": "//yt3.ggpht.com/ytc/AAUvwnjDHXULXSvX7u71Rmb2f-Cqly0ron2F1N3szu8Y=s176-c-k-c0x00ffffff-no-rj-mo",
"width": 176,
"height": 176
}
],
"videoCount": "56",
"descriptionSnippet": [
{
"text": "The Official NCS HINDI Songs Channel for Nocopyright hindi audios."
}
],
"subscribers": "13.7K subscribers",
"link": "https://www.youtube.com/channel/UCg-vlcyvOyNVPV6Neogmubg"
},
{
"type": "channel",
"id": "UCrL9x8LllOU2LOVgTo951kA",
"title": "NoCopyrightSounds",
"thumbnails": [
{
"url": "//yt3.ggpht.com/ytc/AAUvwnhXShCsmo9VwL4KC8j3GNHgHyBBJ0RCmbAUKrwg=s88-c-k-c0x00ffffff-no-rj-mo",
"width": 88,
"height": 88
},
{
"url": "//yt3.ggpht.com/ytc/AAUvwnhXShCsmo9VwL4KC8j3GNHgHyBBJ0RCmbAUKrwg=s176-c-k-c0x00ffffff-no-rj-mo",
"width": 176,
"height": 176
}
],
"videoCount": "2",
"descriptionSnippet": [
{
"text": "NCS [NopCopyrightSounds] is a channel dedicated to promoting the best FREE DOWNLOAD music on the net. Every track\u00a0..."
}
],
"subscribers": "1.71K subscribers",
"link": "https://www.youtube.com/channel/UCrL9x8LllOU2LOVgTo951kA"
},
{
"type": "channel",
"id": "UCYZvaL6G3m4-UbvWGlyFeLg",
"title": "NoCopyrightSounds",
"thumbnails": [
{
"url": "//yt3.ggpht.com/ytc/AAUvwnisxA4V_U0Ffh0K-cdnqwGZjs62hKv2-IAfzIqc=s88-c-k-c0x00ffffff-no-rj-mo",
"width": 88,
"height": 88
},
{
"url": "//yt3.ggpht.com/ytc/AAUvwnisxA4V_U0Ffh0K-cdnqwGZjs62hKv2-IAfzIqc=s176-c-k-c0x00ffffff-no-rj-mo",
"width": 176,
"height": 176
}
],
"videoCount": "33",
"descriptionSnippet": null,
"subscribers": null,
"link": "https://www.youtube.com/channel/UCYZvaL6G3m4-UbvWGlyFeLg"
},
{
"type": "channel",
"id": "UCi7xVhyWWf2eTc0GO0Ty9HQ",
"title": "NoCopyrightSounds",
"thumbnails": [
{
"url": "//yt3.ggpht.com/ytc/AAUvwngOJ2zbLEkNs96PNp0g9h27l64mwRFhR1vZ9W7u=s88-c-k-c0x00ffffff-no-rj-mo",
"width": 88,
"height": 88
},
{
"url": "//yt3.ggpht.com/ytc/AAUvwngOJ2zbLEkNs96PNp0g9h27l64mwRFhR1vZ9W7u=s176-c-k-c0x00ffffff-no-rj-mo",
"width": 176,
"height": 176
}
],
"videoCount": "1 video",
"descriptionSnippet": null,
"subscribers": "2 subscribers",
"link": "https://www.youtube.com/channel/UCi7xVhyWWf2eTc0GO0Ty9HQ"
},
{
"type": "channel",
"id": "UCOSiFTIAReRzkPBXaQAuXCQ",
"title": "NoCopyrightSounds",
"thumbnails": [
{
"url": "//yt3.ggpht.com/ytc/AAUvwng1UBDlLdYyqTofL6x_5hqPMTFnMXxAN9C9_t8Y=s88-c-k-c0x00ffffff-no-rj-mo",
"width": 88,
"height": 88
},
{
"url": "//yt3.ggpht.com/ytc/AAUvwng1UBDlLdYyqTofL6x_5hqPMTFnMXxAN9C9_t8Y=s176-c-k-c0x00ffffff-no-rj-mo",
"width": 176,
"height": 176
}
],
"videoCount": "8",
"descriptionSnippet": [
{
"text": "YGW MEDIA GROUP 04."
}
],
"subscribers": "11 subscribers",
"link": "https://www.youtube.com/channel/UCOSiFTIAReRzkPBXaQAuXCQ"
},
{
"type": "channel",
"id": "UCSFpIv5SZlg4ub_IWgGKkIA",
"title": "NoCopyrightSounds Lyrics",
"thumbnails": [
{
"url": "//yt3.ggpht.com/ytc/AAUvwng_J1igSuKFWowZ8OFpT1dPCPgzqEvVkGImwM3Dpg=s88-c-k-c0x00ffffff-no-rj-mo",
"width": 88,
"height": 88
},
{
"url": "//yt3.ggpht.com/ytc/AAUvwng_J1igSuKFWowZ8OFpT1dPCPgzqEvVkGImwM3Dpg=s176-c-k-c0x00ffffff-no-rj-mo",
"width": 176,
"height": 176
}
],
"videoCount": "82",
"descriptionSnippet": [
{
"text": "Welcome To "
},
{
"text": "NoCopyrightSounds",
"bold": true
},
{
"text": " Lyrics "
},
{
"text": "NoCopyrightSounds",
"bold": true
},
{
"text": " lyrics provides music from a variety of licenses that are certainly\u00a0..."
}
],
"subscribers": null,
"link": "https://www.youtube.com/channel/UCSFpIv5SZlg4ub_IWgGKkIA"
},
{
"type": "channel",
"id": "UCcE-Gvu5j55MdREM1a4_EqA",
"title": "NoCopyrightSounds",
"thumbnails": [
{
"url": "//yt3.ggpht.com/ytc/AAUvwnhbzZwQIVabdGA1SteO2BCtmrG3uT_cpzmJvtBY=s88-c-k-c0x00ffffff-no-rj-mo",
"width": 88,
"height": 88
},
{
"url": "//yt3.ggpht.com/ytc/AAUvwnhbzZwQIVabdGA1SteO2BCtmrG3uT_cpzmJvtBY=s176-c-k-c0x00ffffff-no-rj-mo",
"width": 176,
"height": 176
}
],
"videoCount": "6",
"descriptionSnippet": null,
"subscribers": "166 subscribers",
"link": "https://www.youtube.com/channel/UCcE-Gvu5j55MdREM1a4_EqA"
},
{
"type": "channel",
"id": "UCCOWDgeFmwW--woYtCYws8Q",
"title": "NoCopyrightSounds 1 HOUR",
"thumbnails": [
{
"url": "//yt3.ggpht.com/ytc/AAUvwnipj6lV7p6i8Mq7uAlDj5qHsQkiwgwdtPs_vCKy=s88-c-k-c0x00ffffff-no-rj-mo",
"width": 88,
"height": 88
},
{
"url": "//yt3.ggpht.com/ytc/AAUvwnipj6lV7p6i8Mq7uAlDj5qHsQkiwgwdtPs_vCKy=s176-c-k-c0x00ffffff-no-rj-mo",
"width": 176,
"height": 176
}
],
"videoCount": "689",
"descriptionSnippet": [
{
"text": "NoCopyrightSounds",
"bold": true
},
{
"text": " is a record label dedicated to releasing FREE music for the sole purpose of providing creators with the finest\u00a0..."
}
],
"subscribers": null,
"link": "https://www.youtube.com/channel/UCCOWDgeFmwW--woYtCYws8Q"
},
{
"type": "channel",
"id": "UCSI5zGuirscirQc6UOy_yww",
"title": "NoCopyrightSounds",
"thumbnails": [
{
"url": "//yt3.ggpht.com/ytc/AAUvwni92w-CAOUnlNfyIVxdCmvMoQmENZbw1wjFOQKjug=s88-c-k-c0x00ffffff-no-rj-mo",
"width": 88,
"height": 88
},
{
"url": "//yt3.ggpht.com/ytc/AAUvwni92w-CAOUnlNfyIVxdCmvMoQmENZbw1wjFOQKjug=s176-c-k-c0x00ffffff-no-rj-mo",
"width": 176,
"height": 176
}
],
"videoCount": "29",
"descriptionSnippet": [
{
"text": "NoCopyrightSounds",
"bold": true
},
{
"text": " is a Record Label dedicated to giving a platform to the next generation of Artists in Electronic Music,\u00a0..."
}
],
"subscribers": null,
"link": "https://www.youtube.com/channel/UCSI5zGuirscirQc6UOy_yww"
}
]
}
```
</details>
#### Search for only playlists
```python
from youtubesearchpython import PlaylistsSearch
playlistsSearch = PlaylistsSearch('NoCopyrightSounds', limit = 1)
print(playlistsSearch.result())
```
<details>
<summary> Example Result</summary>
```json
{
"result": [
{
"type": "playlist",
"id": "PLGde6kPURikrUszpUgafLZiOgr5o7pBF0",
"title": "NoCopyrightSounds",
"videoCount": "6",
"channel": {
"name": "Bruno Neves",
"id": "UCtqpCV2HkMCSi5InFNBNv0g",
"link": "https://www.youtube.com/channel/UCtqpCV2HkMCSi5InFNBNv0g"
},
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/K4DyBUG242c/hqdefault.jpg?sqp=-oaymwEWCKgBEF5IWvKriqkDCQgBFQAAiEIYAQ==&rs=AOn4CLBw6Bf7J9COwl1LxqhmGbSQgdFj3w",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/K4DyBUG242c/hqdefault.jpg?sqp=-oaymwEWCMQBEG5IWvKriqkDCQgBFQAAiEIYAQ==&rs=AOn4CLBjJCIZlrSGSPjc-7yKc0QQuWRdhg",
"width": 196,
"height": 110
},
{
"url": "https://i.ytimg.com/vi/K4DyBUG242c/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCRIQ0IochteE0KM2tlK2PVVAQKhA",
"width": 246,
"height": 138
},
{
"url": "https://i.ytimg.com/vi/K4DyBUG242c/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAQYBDz8gWKw_q4Zyb_H6J_DdZCaA",
"width": 336,
"height": 188
}
],
"link": "https://www.youtube.com/playlist?list=PLGde6kPURikrUszpUgafLZiOgr5o7pBF0"
}
]
}
```
</details>
#### Search with a filter or sort
```python
from youtubesearchpython import *
customSearch = CustomSearch('NoCopyrightSounds', VideoSortOrder.uploadDate, limit = 1)
print(customSearch.result())
```
<details>
<summary> Example Result</summary>
```json
{
"result": [
{
"type": "video",
"id": "k8-drvf4Ruo",
"title": "Ambient Music 2020 \ud83c\udfb5 voices \ud83c\udfb5 NoCopyrightSounds",
"publishedTime": "30 minutes ago",
"duration": "2:29",
"viewCount": {
"text": "4 views",
"short": "4 views"
},
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/k8-drvf4Ruo/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDomB-9ivVHpwci6STdNAqQBMBzJA",
"width": 360,
"height": 202
},
{
"url": "https://i.ytimg.com/vi/k8-drvf4Ruo/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCPrVwYygJ3627h8F-oU3khKehm4g",
"width": 720,
"height": 404
}
],
"richThumbnail": {
"url": "https://i.ytimg.com/an_webp/K4DyBUG242c/mqdefault_6s.webp?du=3000&sqp=COCn64IG&rs=AOn4CLBeYxeJ_5lME4jXbFQlv7kIN37kmw",
"width": 320,
"height": 180
},
"descriptionSnippet": [
{
"text": "Don't forget to like & share if you enjoy it."
}
],
"channel": {
"name": "Sky Sound",
"id": "UCQT8W5qZn7TCZBW39dVoaBw",
"thumbnails": [
{
"url": "https://yt3.ggpht.com/a-/AOh14GhxrkkF27iL3sLTKzWLu3rrO-qtQ7uMPg4SqA=s68-c-k-c0x00ffffff-no-rj-mo",
"width": 68,
"height": 68
}
],
"link": "https://www.youtube.com/channel/UCQT8W5qZn7TCZBW39dVoaBw"
},
"accessibility": {
"title": "Ambient Music 2020 \ud83c\udfb5 voices \ud83c\udfb5 NoCopyrightSounds by Sky Sound 30 minutes ago 2 minutes, 29 seconds 4 views",
"duration": "2 minutes, 29 seconds"
},
"link": "https://www.youtube.com/watch?v=k8-drvf4Ruo",
"shelfTitle": null
}
]
}
```
</details>
#### Search for everything
```python
from youtubesearchpython import Search
allSearch = Search('NoCopyrightSounds', limit = 1)
print(allSearch.result())
```
<details>
<summary> Example Result</summary>
```json
{
"result": [
{
"type": "channel",
"id": "UC_aEa8K-EOJ3D6gOs7HcyNg",
"title": "NoCopyrightSounds",
"thumbnails": [
{
"url": "//yt3.ggpht.com/ytc/AAUvwngbenDpBxHNZlecDGyccHeVyQB22dPZnPuhbW8LHw=s88-c-k-c0x00ffffff-no-rj-mo",
"width": 88,
"height": 88
},
{
"url": "//yt3.ggpht.com/ytc/AAUvwngbenDpBxHNZlecDGyccHeVyQB22dPZnPuhbW8LHw=s176-c-k-c0x00ffffff-no-rj-mo",
"width": 176,
"height": 176
}
],
"videoCount": "850",
"descriptionSnippet": [
{
"text": "NoCopyrightSounds",
"bold": true
},
{
"text": " is a copyright free / stream safe record label, providing free to use music to the content creator community."
}
],
"subscribers": "28.7M subscribers",
"link": "https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg"
},
]
}
```
</details>
You may see the [example](https://github.com/alexmercerind/youtube-search-python/blob/main/syncExample.py) for more information.
## Advanced
#### Getting next page search results
You may call ```next``` method as follows, to get the results on the next pages.
Calling ```result``` method after calling ```next``` will give you result on that the next page.
```python
from youtubesearchpython import VideosSearch
search = VideosSearch('NoCopyrightSounds')
print(search.result()['result'])
''' Getting result from 2nd page. '''
search.next()
print(search.result()['result'])
''' Getting result from 3rd page. '''
search.next()
print(search.result()['result'])
''' Getting result from 4th page. '''
search.next()
print(search.result()['result'])
```
#### Getting video information using video link or video ID
```python
'''
Getting information about video or its formats using video link or video ID.
`Video.get` method will give both information & formats of the video
`Video.getInfo` method will give only information about the video.
`Video.getFormats` method will give only formats of the video.
You may either pass link or ID, method will take care itself.
YouTube doesn't provide uploadDate and publishDate in its InnerTube API, thus we have to use HTML requests to get it.
This is disabled by default as it is very inefficient, but if you really need it, you can explicitly set parameter to Video.get() function: get_upload_date=True
By default, we use InnerTube API for Video.get() and Video.getFormats(), meanwhile we use HTML parsing on Video.getInfo()
You can set get_upload_date ONLY TO Video.get(), as you don't get info with Video.getFormats()
'''
video = Video.get('https://www.youtube.com/watch?v=z0GKGpObgPY', mode = ResultMode.json, get_upload_date=True)
print(video)
videoInfo = Video.getInfo('https://youtu.be/z0GKGpObgPY', mode = ResultMode.json)
print(videoInfo)
videoFormats = Video.getFormats('z0GKGpObgPY')
print(videoFormats)
```
<details>
<summary> Example Result</summary>
```json
{
"id": "E07s5ZYygMg",
"title": "Harry Styles - Watermelon Sugar (Official Video)",
"viewCount": {
"text": "170389228"
},
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/E07s5ZYygMg/hqdefault.jpg?sqp=-oaymwEiCKgBEF5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLCT6nkbmYf-zbqAFgzF0D9PUhtsOQ",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/E07s5ZYygMg/hqdefault.jpg?sqp=-oaymwEiCMQBEG5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLA-JdoctyNp4aaj9dVtR0c6l5RDVw",
"width": 196,
"height": 110
},
{
"url": "https://i.ytimg.com/vi/E07s5ZYygMg/hqdefault.jpg?sqp=-oaymwEjCPYBEIoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBquHs9OWY5Dy1nE_syglwKP6-pMw",
"width": 246,
"height": 138
},
{
"url": "https://i.ytimg.com/vi/E07s5ZYygMg/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDSjHwdHxt9aU8NTojucGLp4PurTA",
"width": 336,
"height": 188
},
{
"url": "https://i.ytimg.com/vi/E07s5ZYygMg/maxresdefault.jpg?v=5ebedc0c",
"width": 1920,
"height": 1080
}
],
"description": "This video is dedicated to touching.\nListen to Harry Styles\u2019 new album \u2018Fine Line\u2019 now: https://HStyles.lnk.to/FineLineAY \n\nFollow Harry Styles:\nFacebook: https://HarryStyles.lnk.to/followFI\nInstagram: https://HarryStyles.lnk.to/followII\nTwitter: https://HarryStyles.lnk.to/followTI\nWebsite: https://HarryStyles.lnk.to/followWI\nSpotify: https://HarryStyles.lnk.to/followSI\nYouTube: https://HarryStyles.lnk.to/subscribeYD\n\nLyrics: \n\nTastes like strawberries\nOn a summer evening\nAnd it sounds just like a song\nI want more berries\nAnd that summer feeling\nIt\u2019s so wonderful and warm\nBreathe me in\nBreathe me out\nI don\u2019t know if I could ever go without\nI\u2019m just thinking out loud\nI don\u2019t know if I could ever go without\n \nWatermelon sugar high\nWatermelon sugar high\nWatermelon sugar high\nWatermelon sugar high\nWatermelon sugar\n \nStrawberries\nOn a summer evening\nBaby, you\u2019re the end of June\nI want your belly\nAnd that summer feeling\nGetting washed away in you\nBreathe me in\nBreathe me out\nI don\u2019t know if I could ever go without\n \nWatermelon sugar high\n \nI just wanna taste it\nI just wanna taste it\nWatermelon sugar high\n \nTastes like strawberries\nOn a summer evening\nAnd it sounds just like a song\nI want your belly\nAnd that summer feeling\nI don\u2019t know if I could ever go without\n \nWatermelon sugar high\n \nI just wanna taste it\nI just wanna taste it\nWatermelon sugar high\nI just wanna taste it\nI just wanna taste it\nWatermelon sugar high\n \nWatermelon Sugar\n\n#HarryStyles #WatermelonSugar #FineLine",
"channel": {
"name": "HarryStylesVEVO",
"id": "UCbOCbp5gXL8jigIBZLqMPrw",
"link": "https://www.youtube.com/channel/UCbOCbp5gXL8jigIBZLqMPrw"
},
"averageRating": 4.9043722,
"keywords": [
"Fine Line",
"Harry Styles Fine Line",
"New Harry Styles",
"Harry Styles Album",
"HS2",
"One Direction",
"Eroda",
"HStyles",
"HarryStyles",
"New HS",
"Watermelon",
"Sugar",
"Watermlon Sugar",
"Harry Styles Watermelon Sugar",
"Fine Line Watermelon Sugar",
"Watermelon Sugar Fine Line",
"Harry Styles Watermelon Sguar Official Audio",
"Harry Styles Watermelon Sugar Song",
"HS Watermelon Sugar",
"Harry Styles Watermelon Sugar Video",
"Harry Styles Watermelon Sugar Official Video",
"Harry"
],
"link": "https://www.youtube.com/watch?v=E07s5ZYygMg",
"streamingData": [
{
"adaptiveFormats": [
{
"itag": 137,
"mimeType": "video/mp4; codecs=\"avc1.640028\"",
"bitrate": 4517689,
"width": 1920,
"height": 1080,
"initRange": {
"start": "0",
"end": "740"
},
"indexRange": {
"start": "741",
"end": "1228"
},
"lastModified": "1601811652909447",
"contentLength": "75694686",
"quality": "hd1080",
"fps": 24,
"qualityLabel": "1080p",
"projectionType": "RECTANGULAR",
"averageBitrate": 3207181,
"approxDurationMs": "188813",
"signatureCipher": "s=F%3DX%3DgIkn_MWCUvQZ__3tR_7gPNDBeOz8n9M0WGxNtIZ6zwxAiA-VALQ9F5bz%3DW8I_Z8WfXPLHjEGEn_JRVVu7BcNJJfjKAhIARw8JQ0qOAAOAQ&sp=sig&url=https://r7---sn-gwpa-5bge.googlevideo.com/videoplayback%3Fexpire%3D1609521167%26ei%3DrwPvX6ayN7GImgel4b2YDg%26ip%3D132.154.228.240%26id%3Do-AB56znPv_llgJ0v0XuIn4mf-4F2feyfn78hi9AowVgJP%26itag%3D137%26aitags%3D133%252C134%252C135%252C136%252C137%252C160%252C242%252C243%252C244%252C247%252C248%252C278%252C394%252C395%252C396%252C397%252C398%252C399%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DCl%26mm%3D31%252C29%26mn%3Dsn-gwpa-5bge%252Csn-gwpa-qxay%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D7%26pcm2cms%3Dyes%26pl%3D19%26gcr%3Din%26initcwndbps%3D156250%26vprv%3D1%26mime%3Dvideo%252Fmp4%26ns%3DAmm7Bly72tYhQYuUBTu4ougF%26gir%3Dyes%26clen%3D75694686%26dur%3D188.813%26lmt%3D1601811652909447%26mt%3D1609499069%26fvip%3D7%26keepalive%3Dyes%26c%3DWEB%26txp%3D5535432%26n%3DRBQO4tIQGFK2ymlT%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cgcr%252Cvprv%252Cmime%252Cns%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRQIgTGJdeFFnVZy97rzAeBnJCSdcY7KWBCa21RQ9ZvkH0KsCIQD1-Vzcj53p39l_DWtK1b69VjQmtBi_SIZOZD0hzXHJNA%253D%253D"
},
{
"itag": 248,
"mimeType": "video/webm; codecs=\"vp9\"",
"bitrate": 2677426,
"width": 1920,
"height": 1080,
"initRange": {
"start": "0",
"end": "219"
},
"indexRange": {
"start": "220",
"end": "861"
},
"lastModified": "1594499920972798",
"contentLength": "54314997",
"quality": "hd1080",
"fps": 24,
"qualityLabel": "1080p",
"projectionType": "RECTANGULAR",
"averageBitrate": 2301324,
"colorInfo": {
"primaries": "COLOR_PRIMARIES_BT709",
"transferCharacteristics": "COLOR_TRANSFER_CHARACTERISTICS_BT709",
"matrixCoefficients": "COLOR_MATRIX_COEFFICIENTS_BT709"
},
"approxDurationMs": "188813",
"signatureCipher": "s=4WSWyDZ4VUW0FxNi5blaiF4ilQNYR-3uChA822Y034mMGICMPJy_OPOcgmaH7OjHiz7P3SA11EXoi7xWDBddADzQhXgIARw8JQ0qOAAOAA&sp=sig&url=https://r7---sn-gwpa-5bge.googlevideo.com/videoplayback%3Fexpire%3D1609521167%26ei%3DrwPvX6ayN7GImgel4b2YDg%26ip%3D132.154.228.240%26id%3Do-AB56znPv_llgJ0v0XuIn4mf-4F2feyfn78hi9AowVgJP%26itag%3D248%26aitags%3D133%252C134%252C135%252C136%252C137%252C160%252C242%252C243%252C244%252C247%252C248%252C278%252C394%252C395%252C396%252C397%252C398%252C399%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DCl%26mm%3D31%252C29%26mn%3Dsn-gwpa-5bge%252Csn-gwpa-qxay%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D7%26pcm2cms%3Dyes%26pl%3D19%26gcr%3Din%26initcwndbps%3D156250%26vprv%3D1%26mime%3Dvideo%252Fwebm%26ns%3DAmm7Bly72tYhQYuUBTu4ougF%26gir%3Dyes%26clen%3D54314997%26dur%3D188.813%26lmt%3D1594499920972798%26mt%3D1609499069%26fvip%3D7%26keepalive%3Dyes%26c%3DWEB%26txp%3D5535432%26n%3DRBQO4tIQGFK2ymlT%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cgcr%252Cvprv%252Cmime%252Cns%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRgIhAJHI4m9CrBPc-vEl_qXPYvACMjDAgC7dGWk5cZ5yc4DTAiEA36ijZkSFmCngvJZ5ULpRFJLGB3wWohsxABHZJL_q4_c%253D"
},
{
"itag": 399,
"mimeType": "video/mp4; codecs=\"av01.0.08M.08\"",
"bitrate": 2252425,
"width": 1920,
"height": 1080,
"initRange": {
"start": "0",
"end": "699"
},
"indexRange": {
"start": "700",
"end": "1187"
},
"lastModified": "1602396935824004",
"contentLength": "40536309",
"quality": "hd1080",
"fps": 24,
"qualityLabel": "1080p",
"projectionType": "RECTANGULAR",
"averageBitrate": 1717521,
"colorInfo": {
"primaries": "COLOR_PRIMARIES_BT709",
"transferCharacteristics": "COLOR_TRANSFER_CHARACTERISTICS_BT709",
"matrixCoefficients": "COLOR_MATRIX_COEFFICIENTS_BT709"
},
"approxDurationMs": "188813",
"signatureCipher": "s=ZJwJxM3AbUoW4wiucKj-hgbD-KpvS21BYBD1lsDZa7SPCICMZo9flYaa2ePw-6CdA1a_DwNtjbk4KXaTb0U1btiIfDgIARw8JQ0qOAAOAA&sp=sig&url=https://r7---sn-gwpa-5bge.googlevideo.com/videoplayback%3Fexpire%3D1609521167%26ei%3DrwPvX6ayN7GImgel4b2YDg%26ip%3D132.154.228.240%26id%3Do-AB56znPv_llgJ0v0XuIn4mf-4F2feyfn78hi9AowVgJP%26itag%3D399%26aitags%3D133%252C134%252C135%252C136%252C137%252C160%252C242%252C243%252C244%252C247%252C248%252C278%252C394%252C395%252C396%252C397%252C398%252C399%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DCl%26mm%3D31%252C29%26mn%3Dsn-gwpa-5bge%252Csn-gwpa-qxay%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D7%26pcm2cms%3Dyes%26pl%3D19%26gcr%3Din%26initcwndbps%3D156250%26vprv%3D1%26mime%3Dvideo%252Fmp4%26ns%3DAmm7Bly72tYhQYuUBTu4ougF%26gir%3Dyes%26clen%3D40536309%26dur%3D188.813%26lmt%3D1602396935824004%26mt%3D1609499069%26fvip%3D7%26keepalive%3Dyes%26c%3DWEB%26txp%3D5531432%26n%3DRBQO4tIQGFK2ymlT%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cgcr%252Cvprv%252Cmime%252Cns%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRAIgB9Jm-n4o3HkYm1cr2pVG9NLb_7Tmp22lXGwKkWSiwZ0CIBKSMK5PqbPHniDqOFCPoqa4eT_Y8hQDSWM7k_V8A99p"
},
{
"itag": 136,
"mimeType": "video/mp4; codecs=\"avc1.4d401f\"",
"bitrate": 1247138,
"width": 1280,
"height": 720,
"initRange": {
"start": "0",
"end": "738"
},
"indexRange": {
"start": "739",
"end": "1226"
},
"lastModified": "1601811623765749",
"contentLength": "18074560",
"quality": "hd720",
"fps": 24,
"qualityLabel": "720p",
"projectionType": "RECTANGULAR",
"averageBitrate": 765818,
"approxDurationMs": "188813",
"signatureCipher": "s=y%3Dp%3DgBSUCkvVl7q-hefXAmtE95tx4YYx2uLiqm0fDKUL2hBCQICspkvlYjtn%3DvRH0iGB5p9zloazr8oDbuPc5yFs81PaJfgIARw8JQ0qOAAOAQ&sp=sig&url=https://r7---sn-gwpa-5bge.googlevideo.com/videoplayback%3Fexpire%3D1609521167%26ei%3DrwPvX6ayN7GImgel4b2YDg%26ip%3D132.154.228.240%26id%3Do-AB56znPv_llgJ0v0XuIn4mf-4F2feyfn78hi9AowVgJP%26itag%3D136%26aitags%3D133%252C134%252C135%252C136%252C137%252C160%252C242%252C243%252C244%252C247%252C248%252C278%252C394%252C395%252C396%252C397%252C398%252C399%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DCl%26mm%3D31%252C29%26mn%3Dsn-gwpa-5bge%252Csn-gwpa-qxay%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D7%26pcm2cms%3Dyes%26pl%3D19%26gcr%3Din%26initcwndbps%3D156250%26vprv%3D1%26mime%3Dvideo%252Fmp4%26ns%3DAmm7Bly72tYhQYuUBTu4ougF%26gir%3Dyes%26clen%3D18074560%26dur%3D188.813%26lmt%3D1601811623765749%26mt%3D1609499069%26fvip%3D7%26keepalive%3Dyes%26c%3DWEB%26txp%3D5535432%26n%3DRBQO4tIQGFK2ymlT%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cgcr%252Cvprv%252Cmime%252Cns%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRAIgKiY0iSKg4drfMpUtmsfY4DqN0dzkVo9z0NvbppT-vAUCIDajIym2RvvvqEqxK9XltraU3992scXuP8aZD_cXNK_0"
},
],
"formats": [
{
"itag": 18,
"mimeType": "video/mp4; codecs=\"avc1.42001E, mp4a.40.2\"",
"bitrate": 635291,
"width": 640,
"height": 360,
"lastModified": "1594495537943093",
"contentLength": "14993923",
"quality": "medium",
"fps": 24,
"qualityLabel": "360p",
"projectionType": "RECTANGULAR",
"averageBitrate": 635096,
"audioQuality": "AUDIO_QUALITY_LOW",
"approxDurationMs": "188871",
"audioSampleRate": "44100",
"audioChannels": 2,
"signatureCipher": "s=AsPsztt4ZltrQC0ijKLX83bx8smNjCLHwb5D-pJLJvDGAmAEiAhvbstJR8js%3D7g7hscPbPtwrjUDtzwb1GgpkTG53d9kMAhIARw8JQ0qOAAOAg&sp=sig&url=https://r7---sn-gwpa-5bge.googlevideo.com/videoplayback%3Fexpire%3D1609521167%26ei%3DrwPvX6ayN7GImgel4b2YDg%26ip%3D132.154.228.240%26id%3Do-AB56znPv_llgJ0v0XuIn4mf-4F2feyfn78hi9AowVgJP%26itag%3D18%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DCl%26mm%3D31%252C29%26mn%3Dsn-gwpa-5bge%252Csn-gwpa-qxay%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D7%26pcm2cms%3Dyes%26pl%3D19%26gcr%3Din%26initcwndbps%3D156250%26vprv%3D1%26mime%3Dvideo%252Fmp4%26ns%3Dw-Sn-YFRtfT0kLnFKpo3EA4F%26gir%3Dyes%26clen%3D14993923%26ratebypass%3Dyes%26dur%3D188.871%26lmt%3D1594495537943093%26mt%3D1609499069%26fvip%3D7%26c%3DWEB%26txp%3D5531432%26n%3DV2sNxp4tEzNJkZtb%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Citag%252Csource%252Crequiressl%252Cgcr%252Cvprv%252Cmime%252Cns%252Cgir%252Cclen%252Cratebypass%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRQIgbrfk-x_xucwjZedmoR8sR3UQHP4OUd1jDUL_91palCICIQC0w6urClsmCBTpK27I5DIKKED9T_ci6blRj-c8rSD86A%253D%253D"
}
],
}
],
"expiresInSeconds": "21540"
}
```
</details>
#### Getting playlist information using link
```python
'''
Getting information about playlist or videos in it using its link.
`Playlist.get` method will give both information & formats of the playlist
`Playlist.getInfo` method will give only information about the playlist.
`Playlist.getVideos` method will give only videos in the playlist.
'''
playlist = Playlist.get('https://www.youtube.com/playlist?list=PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK', mode = ResultMode.json)
print(playlist)
playlistInfo = Playlist.getInfo('https://www.youtube.com/playlist?list=PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK', mode = ResultMode.json)
print(playlistInfo)
playlistVideos = Playlist.getVideos('https://www.youtube.com/playlist?list=PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK')
print(playlistVideos)
```
<details>
<summary> Example Result</summary>
```json
{
"id": "PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK",
"title": "NCS: House",
"videoCount": "209",
"viewCount": "155,772,054 views",
"thumbnails": {
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/LIvSF0fQPJc/hqdefault.jpg?sqp=-oaymwEWCKgBEF5IWvKriqkDCQgBFQAAiEIYAQ==&rs=AOn4CLDHZYoB-WNHmvT3CZy6SpdqygsO4A",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/LIvSF0fQPJc/hqdefault.jpg?sqp=-oaymwEWCMQBEG5IWvKriqkDCQgBFQAAiEIYAQ==&rs=AOn4CLACCxCIRvCn65_OS1z_4tLAq5Jb8Q",
"width": 196,
"height": 110
},
{
"url": "https://i.ytimg.com/vi/LIvSF0fQPJc/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBt00cYTIVBdrnHsSNLinhq7meCpQ",
"width": 246,
"height": 138
},
{
"url": "https://i.ytimg.com/vi/LIvSF0fQPJc/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBFaqqO6kCAuqya1SIJo5Cf45Ndxg",
"width": 336,
"height": 188
}
]
},
"link": "https://www.youtube.com/playlist?list=PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK",
"channel": {
"name": "NoCopyrightSounds",
"id": "UC_aEa8K-EOJ3D6gOs7HcyNg",
"thumbnails": [
{
"url": "https://yt3.ggpht.com/ytc/AAUvwnhwQpPaPL_w-2bQM3TXQN0bdsQQSeEW74TDNXDfHQ=s48-c-k-c0x00ffffff-no-rj",
"width": 48,
"height": 48
},
{
"url": "https://yt3.ggpht.com/ytc/AAUvwnhwQpPaPL_w-2bQM3TXQN0bdsQQSeEW74TDNXDfHQ=s88-c-k-c0x00ffffff-no-rj",
"width": 88,
"height": 88
},
{
"url": "https://yt3.ggpht.com/ytc/AAUvwnhwQpPaPL_w-2bQM3TXQN0bdsQQSeEW74TDNXDfHQ=s176-c-k-c0x00ffffff-no-rj",
"width": 176,
"height": 176
}
],
"link": "https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg"
},
"videos": [
{
"id": "gQjAEbWZEgU",
"title": "Mangoo - Happi (ft. bby ivy) [NCS Release]",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/gQjAEbWZEgU/hqdefault.jpg?sqp=-oaymwEiCKgBEF5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLB8IrOoqB1vSj2SMptjc5pG8fyKOQ",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/gQjAEbWZEgU/hqdefault.jpg?sqp=-oaymwEiCMQBEG5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLDjI1SuDEFCqskIfGEqr8HZi3v54Q",
"width": 196,
"height": 110
},
{
"url": "https://i.ytimg.com/vi/gQjAEbWZEgU/hqdefault.jpg?sqp=-oaymwEjCPYBEIoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLCAFP_0cHcbUnt_eJwozqM0mOPkHg",
"width": 246,
"height": 138
},
{
"url": "https://i.ytimg.com/vi/gQjAEbWZEgU/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLD4WajUJ8zGjQDuwT6uHBbvZzaCPA",
"width": 336,
"height": 188
}
],
"channel": {
"name": "NoCopyrightSounds",
"id": "UC_aEa8K-EOJ3D6gOs7HcyNg",
"link": "https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg"
},
"duration": "2:41",
"accessibility": {
"title": "Mangoo - Happi (ft. bby ivy) [NCS Release] by NoCopyrightSounds 7 months ago 2 minutes, 41 seconds",
"duration": "2 minutes, 41 seconds"
},
"link": "https://www.youtube.com/watch?v=gQjAEbWZEgU"
},
{
"id": "2Kh4y7pJjfQ",
"title": "MAGNUS x Unread - Cool (feat. Alessia Labate) [NCS Release]",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/2Kh4y7pJjfQ/hqdefault.jpg?sqp=-oaymwEiCKgBEF5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLDBtmR1aLs9b5ULxWBpTitm2qfZgQ",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/2Kh4y7pJjfQ/hqdefault.jpg?sqp=-oaymwEiCMQBEG5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLA1_KVxp3eun3REQPZM3qgdhGGKhw",
"width": 196,
"height": 110
},
{
"url": "https://i.ytimg.com/vi/2Kh4y7pJjfQ/hqdefault.jpg?sqp=-oaymwEjCPYBEIoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDXxtiCKSoQ7qWsmbyK60HytHlKNg",
"width": 246,
"height": 138
},
{
"url": "https://i.ytimg.com/vi/2Kh4y7pJjfQ/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLAO6xgKiU0ObnMbcsaLgd5Sp-HA_Q",
"width": 336,
"height": 188
}
],
"channel": {
"name": "NoCopyrightSounds",
"id": "UC_aEa8K-EOJ3D6gOs7HcyNg",
"link": "https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg"
},
"duration": "2:22",
"accessibility": {
"title": "MAGNUS x Unread - Cool (feat. Alessia Labate) [NCS Release] by NoCopyrightSounds 8 months ago 2 minutes, 22 seconds",
"duration": "2 minutes, 22 seconds"
},
"link": "https://www.youtube.com/watch?v=2Kh4y7pJjfQ"
},
{
"id": "7dw8wphQ118",
"title": "Jim Yosef - Let You Go [NCS Release]",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/7dw8wphQ118/hqdefault.jpg?sqp=-oaymwEiCKgBEF5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLAI2xKhoLZTQSKy_E2qLI8vmmLwzQ",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/7dw8wphQ118/hqdefault.jpg?sqp=-oaymwEiCMQBEG5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLBm88JTaXMyMXgPpH0ANOP-5M7cdg",
"width": 196,
"height": 110
},
{
"url": "https://i.ytimg.com/vi/7dw8wphQ118/hqdefault.jpg?sqp=-oaymwEjCPYBEIoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDKDPLNxX6SpNNSCmp4oPA7gXZh2w",
"width": 246,
"height": 138
},
{
"url": "https://i.ytimg.com/vi/7dw8wphQ118/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLCoilNTqi_D4Xu-EQFbiqcjyuewUw",
"width": 336,
"height": 188
}
],
"channel": {
"name": "NoCopyrightSounds",
"id": "UC_aEa8K-EOJ3D6gOs7HcyNg",
"link": "https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg"
},
"duration": "3:40",
"accessibility": {
"title": "Jim Yosef - Let You Go [NCS Release] by NoCopyrightSounds 9 months ago 3 minutes, 40 seconds",
"duration": "3 minutes, 40 seconds"
},
"link": "https://www.youtube.com/watch?v=7dw8wphQ118"
}
]
}
```
</details>
#### Get all videos of a channel
You can use a Playlist class for that, alongside some helpful functions.
```python
from youtubesearchpython import *
channel_id = "UC_aEa8K-EOJ3D6gOs7HcyNg"
playlist = Playlist(playlist_from_channel_id(channel_id))
print(f'Videos Retrieved: {len(playlist.videos)}')
while playlist.hasMoreVideos:
print('Getting more videos...')
playlist.getNextVideos()
print(f'Videos Retrieved: {len(playlist.videos)}')
print('Found all the videos.')
```
<details>
<summary> Example Result</summary>
```bash
Videos Retrieved: 100
Getting more videos...
Videos Retrieved: 200
Getting more videos...
Videos Retrieved: 300
Getting more videos...
Videos Retrieved: 400
Getting more videos...
Videos Retrieved: 500
Getting more videos...
Videos Retrieved: 600
Getting more videos...
Videos Retrieved: 700
Getting more videos...
Videos Retrieved: 800
Getting more videos...
Videos Retrieved: 900
Getting more videos...
Videos Retrieved: 1000
Getting more videos...
Videos Retrieved: 1002
Found all the videos.
```
</details>
#### More to the playlists
You can directly instanciate the `Playlist` class as follows to access its information & videos in the `info` and `videos` fields respectively.
YouTube offers only 100 videos in a single request, for getting more videos present in the playlist, you can check `hasMoreVideos` bool to see if playlist contains more videos.
If playlist has more videos, then you can call `getNextVideos` to fetch more videos.
Example below demonstrates a simple way to retrive all videos of a playlist.
```python
from youtubesearchpython import *
playlist = Playlist('https://www.youtube.com/playlist?list=PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK')
print(f'Videos Retrieved: {len(playlist.videos)}')
while playlist.hasMoreVideos:
print('Getting more videos...')
playlist.getNextVideos()
print(f'Videos Retrieved: {len(playlist.videos)}')
print('Found all the videos.')
```
<details>
<summary> Example Result</summary>
```bash
Videos Retrieved: 100
Getting more videos...
Videos Retrieved: 200
Getting more videos...
Videos Retrieved: 209
Found all the videos.
```
</details>
#### Getting search suggestions
```python
from youtubesearchpython import Suggestions
suggestions = Suggestions(language = 'en', region = 'US')
print(suggestions.get('NoCopyrightSounds', mode = ResultMode.json))
```
<details>
<summary> Example Result</summary>
```json
{
"result": [
"nocopyrightsounds",
"nocopyrightsounds best songs",
"nocopyrightsounds gaming music",
"nocopyrightsounds alan walker",
"nocopyrightsounds fearless",
"nocopyrightsounds invincible",
"nocopyrightsounds background music",
"nocopyrightsounds instrumental",
"nocopyrightsounds fade",
"nocopyrightsounds playlist",
"nocopyrightsounds on and on",
"nocopyrightsounds elektronomia",
"nocopyrightsounds stronger",
"nocopyrightsounds christmas"
]
}
```
</details>
#### Getting videos by hashtag
```python
from youtubesearchpython import Hashtag
hashtag = Hashtag('ncs', limit = 1)
print(hashtag.result())
```
<details>
<summary> Example Result</summary>
```json
{
"result": [
{
"type": "video",
"id": "c9FF4Tfj2w8",
"title": "Ascence - About You [NCS 1 HOUR]",
"publishedTime": "1 year ago",
"duration": "1:00:00",
"viewCount": {
"text": "226,354 views",
"short": "226K views"
},
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/c9FF4Tfj2w8/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLA8V3x_PigkymVQxQcptr8Wfz20-A",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/c9FF4Tfj2w8/hqdefault.jpg?sqp=-oaymwEbCMQBEG5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLABh5Ylb5wbuulOAWLcSYtfYQKiAQ",
"width": 196,
"height": 110
},
{
"url": "https://i.ytimg.com/vi/c9FF4Tfj2w8/hqdefault.jpg?sqp=-oaymwEcCPYBEIoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAykmTivOgjlW6a4tKWnLJpL9yqKw",
"width": 246,
"height": 138
},
{
"url": "https://i.ytimg.com/vi/c9FF4Tfj2w8/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLC8qRkotPyH9kGGHe29QuyOh-F9KA",
"width": 336,
"height": 188
}
],
"richThumbnail": {
"url": "https://i.ytimg.com/an_webp/c9FF4Tfj2w8/mqdefault_6s.webp?du=3000&sqp=CPGE-YgG&rs=AOn4CLAJAC5zmDOtySflLFMQpAoaPUqHjA",
"width": 320,
"height": 180
},
"descriptionSnippet": null,
"channel": {
"name": "Good Vibes Music",
"id": "UChCPI0uvKwrkYhTEx8UVrnQ",
"thumbnails": [
{
"url": "https://yt3.ggpht.com/ytc/AKedOLSFYY0mvwL0DbRzddMAQdbgFshM42R5byhI9FiEBQ=s68-c-k-c0x00ffffff-no-rj",
"width": 68,
"height": 68
}
],
"link": "https://www.youtube.com/channel/UChCPI0uvKwrkYhTEx8UVrnQ"
},
"accessibility": {
"title": "Ascence - About You [NCS 1 HOUR] by Good Vibes Music 1 year ago 1 hour 226,354 views",
"duration": "1 hour"
},
"link": "https://www.youtube.com/watch?v=c9FF4Tfj2w8",
"shelfTitle": null
}
]
}
```
</details>
#### Getting videos and playlists in specific channel
```python
from youtubesearchpython import ChannelSearch,ResultMode
search = ChannelSearch('Watermelon Sugar', "UCZFWPqqPkFlNwIxcpsLOwew")
print(search.result(mode = ResultMode.json))
```
<details>
<summary> Example Result</summary>
```json
{
"result": [
{
"id": "WMcIfZuRuU8",
"thumbnails": {
"normal": [
{
"url": "https://i.ytimg.com/vi/WMcIfZuRuU8/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLClFg6C1r5NfTQy7TYUq6X5qHUmPA",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/WMcIfZuRuU8/hqdefault.jpg?sqp=-oaymwEbCMQBEG5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLAoOyftwY0jLV4geWb5hejULYp3Zw",
"width": 196,
"height": 110
},
{
"url": "https://i.ytimg.com/vi/WMcIfZuRuU8/hqdefault.jpg?sqp=-oaymwEcCPYBEIoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCdqkhn7JDwLvRtTNx3jq-olz7k-Q",
"width": 246,
"height": 138
},
{
"url": "https://i.ytimg.com/vi/WMcIfZuRuU8/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAhYedsqBFKI0Ra2qzIv9cVoZhfKQ",
"width": 336,
"height": 188
}
],
"rich": null
},
"title": "Harry Styles \u2013 Watermelon Sugar (Lost Tour Visual)",
"descriptionSnippet": "This video is dedicated to touching.\nListen to Harry Styles\u2019 new album \u2018Fine Line\u2019 now: https://HStyles.lnk.to/FineLineAY \n\nFollow Harry Styles:\nFacebook: https://HarryStyles.lnk.to/followFI...",
"uri": "/watch?v=WMcIfZuRuU8",
"views": {
"precise": "3,888,287 views",
"simple": "3.8M views",
"approximate": "3.8 million views"
},
"duration": {
"simpleText": "2:55",
"text": "2 minutes, 55 seconds"
},
"published": "10 months ago",
"channel": {
"name": "Harry Styles",
"thumbnails": [
{
"url": "https://yt3.ggpht.com/ytc/AAUvwnhR81ocC_KalYEk5ItnJcfMBqaiIpuM1B0lJyg4Rw=s88-c-k-c0x00ffffff-no-rj",
"width": 68,
"height": 68
}
]
},
"type": "video"
},
]
}
```
</details>
#### Getting direct stream URL of a video
This class is able to fetch video URLs without any additional web requests (that's fast), as one might already have same response at the time of showing it to the user.
For making use of this functionality, you must install [yt-dlp](https://github.com/yt-dlp/yt-dlp) as a dependency.
StreamURLFetcher makes slight improvements & changes to YouTube class from [yt-dlp](https://github.com/yt-dlp/yt-dlp).
```py
from youtubesearchpython import *
fetcher = StreamURLFetcher()
video = Video.get("https://www.youtube.com/watch?v=aqz-KE-bpKQ")
url = fetcher.get(video, 251)
print(url)
'''
`getAll` method returns all stream URLs unlike `get` method which needs itag in its second parameter.
'''
```
<details>
<summary> Example Result</summary>
```json
"https://r6---sn-gwpa-5bgk.googlevideo.com/videoplayback?expire=1610798125&ei=zX8CYITXEIGKz7sP9MWL0AE&ip=2409%3A4053%3A803%3A2b22%3Adc68%3Adfb9%3Aa676%3A26a3&id=o-APBakKSE2_eMDMegtCmeWXfuhhUfAzJTmOCWj4lkEjAM&itag=251&source=youtube&requiressl=yes&mh=aP&mm=31%2C29&mn=sn-gwpa-5bgk%2Csn-gwpa-qxad&ms=au%2Crdu&mv=m&mvi=6&pl=36&initcwndbps=146250&vprv=1&mime=audio%2Fwebm&ns=ULL4mkMO31KDtEhOjkOrmpkF&gir=yes&clen=10210834&dur=634.601&lmt=1544629945422176&mt=1610776131&fvip=6&keepalive=yes&c=WEB&txp=5511222&n=uEjSqtzBZaJyVn&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgKKIEiwQTgXsdKPEyOckgVPs_LMH6KJoeaYmZic_lelECIHXHs1ZnSP5mgtpffNlIMJM3DhxcvDbA-4udFFE6AmVP&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAPmhL745RYeL_ffgUJk_xJLC-8riXKMylLTLA_pITYWWAiB2qUIXur8ThW7cLfQ73mIVK61mMZc2ncK6FZWjUHGcUw%3D%3D"
```
</details>
#### Get comments of a video
You can use a Comments class for that.
```python
from youtubesearchpython import *
# You can either pass an ID or a URL
video_id = "_ZdsmLgCVdU"
comments = Comments(video_id)
print(f'Comments Retrieved: {len(comments.comments["result"])}')
while comments.hasMoreComments:
print('Getting more comments...')
comments.getNextComments()
print(f'Comments Retrieved: {len(comments.comments["result"])}')
print('Found all the comments.')
```
<details>
<summary> Example Result</summary>
```bash
20
Getting more comments...
40
Getting more comments...
60
Getting more comments...
80
Getting more comments...
100
Getting more comments...
...
```
</details>
#### Get first 20 comments of a video
You can use a Comments.get method for that.
```python
from youtubesearchpython import *
# You can either pass an ID or a URL
video_id = "_ZdsmLgCVdU"
comments = Comments.get(video_id)
print(comments)
```
<details>
<summary> Example Result</summary>
```bash
{
"result":[
{
"id":"Ugh2UTT69BnjaHgCoAEC",
"author":{
"id":"UCBykgwvHh2SX5HH7dVWLkqQ",
"name":"Daikaiju Danielle",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSC8WrgmUHF5l6DYEb8jabim9nE0Ko1vQ_KFOly0w=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSC8WrgmUHF5l6DYEb8jabim9nE0Ko1vQ_KFOly0w=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSC8WrgmUHF5l6DYEb8jabim9nE0Ko1vQ_KFOly0w=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"The boy probably represents youth and the pure, free spirit of being young. When you grow up, it's hard to find that spirit again. You have to search for it.",
"published":"5 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"5.9K",
"label":"5.9K likes"
},
"replyCount":81
},
{
"id":"UgzyjWeS_wVmoVrcyVZ4AaABAg",
"author":{
"id":"UCMMJk2iiIanIFtTwnLK8XBA",
"name":"naomi",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/wzrS0agEf0NBFXvcpQJFF-6BwdciRFqzVf_dmgv4Unk7e9AFA7Sb7K7hsLeXdZsOX26J0J4Y=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/wzrS0agEf0NBFXvcpQJFF-6BwdciRFqzVf_dmgv4Unk7e9AFA7Sb7K7hsLeXdZsOX26J0J4Y=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/wzrS0agEf0NBFXvcpQJFF-6BwdciRFqzVf_dmgv4Unk7e9AFA7Sb7K7hsLeXdZsOX26J0J4Y=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"Strange that I showed this to my brother three days before his death not knowing I would soon relate to it.",
"published":"1 year ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"5.2K",
"label":"5.2K likes"
},
"replyCount":147
},
{
"id":"UgyP3NpP-qA9T80YRVh4AaABAg",
"author":{
"id":"UCCekImfpPQw94ZHeQy98S_A",
"name":"Noura",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSA9_Di2v12v_MycDkKjvhD8D3dRSt9pyZIcCekeg=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSA9_Di2v12v_MycDkKjvhD8D3dRSt9pyZIcCekeg=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSA9_Di2v12v_MycDkKjvhD8D3dRSt9pyZIcCekeg=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"In Arabic when we want to express how much we love and cherish someone we say \"you are my eyes\".. And for some reason that line \"don\\'t you know you got my eyes\" makes me really nostalgic and sad.",
"published":"1 year ago (edited)",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"3.8K",
"label":"3.8K likes"
},
"replyCount":65
},
{
"id":"Ugy-JqQw3w3MXwxGZHZ4AaABAg",
"author":{
"id":"UC6irqN4Fk_z-CdK47pkLTgQ",
"name":"Leo Trombetta",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLTogXyBXEX1LAzehhiYyx9amCWGkcMRCaa3e-pEgg=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLTogXyBXEX1LAzehhiYyx9amCWGkcMRCaa3e-pEgg=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLTogXyBXEX1LAzehhiYyx9amCWGkcMRCaa3e-pEgg=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"As a mother whose had to let her son go for his life to be better, this song is about exactly that. The pain and sacrifice and love and the warm memories you pray they will have of the sweetest moments you've shared when you held them so long ago.. I miss you.",
"published":"2 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"2K",
"label":"2K likes"
},
"replyCount":23
},
{
"id":"Ugwv8lwT4LS906Y9P1p4AaABAg",
"author":{
"id":"UClMs_LKpgCPC9acJQpGRcbQ",
"name":"Arundhati",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLTHadgrB-BvJ2zqtN9_f2ttscQEH0Sc3awtvg73ug=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLTHadgrB-BvJ2zqtN9_f2ttscQEH0Sc3awtvg73ug=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLTHadgrB-BvJ2zqtN9_f2ttscQEH0Sc3awtvg73ug=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"It’s been 3 years and I still can’t sing that chorus without tearing up",
"published":"2 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"1K",
"label":"1K likes"
},
"replyCount":16
},
{
"id":"Ugx5NiWjHQI1aGWI8ex4AaABAg",
"author":{
"id":"UCeuMECoMfhC9Fyn5veduj1w",
"name":"dona nova",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLQC9P35p4nKLBaoDkWwsGjQCVrrBs_lPVCNsTQ5oPg=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLQC9P35p4nKLBaoDkWwsGjQCVrrBs_lPVCNsTQ5oPg=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLQC9P35p4nKLBaoDkWwsGjQCVrrBs_lPVCNsTQ5oPg=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"My dad passed away in 2012 and now he communicates to me sometimes through songs. If I ask him a question the next song I hear will have the answer. This year I had to start my life over completely and I have moved across the country away from a toxic person, and then I moved again from the next place I lived from another toxic person, all during the pandemic. I am also legally blind and otherwise disabled so I worried about how I would make it on my own after my losses and divorce. I don't know anybody here and I'm completely alone. This comes after 10 years of loss and change that started with his death. Anyway, When I asked him how could I ever have a life again he sent me this song. He always does. I have been told he is my spirit guide and I can tell when he's here. I love glass animals",
"published":"1 year ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"1.6K",
"label":"1.6K likes"
},
"replyCount":72
},
{
"id":"UgyHLTfBhMAh39IcPAp4AaABAg",
"author":{
"id":"UCK8evpEndlyLgjcXTYfOVtQ",
"name":"UnforgettableAlice",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSlrVENCyh_Wk6p8UrZAPEIS3pmUnGOiTb2zwIx1g=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSlrVENCyh_Wk6p8UrZAPEIS3pmUnGOiTb2zwIx1g=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSlrVENCyh_Wk6p8UrZAPEIS3pmUnGOiTb2zwIx1g=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"Vocalist/guitarist Dave Bayley explained the story behind this song to Paste magazine: \"The idea for this one came from a story someone told me once. They were telling me about their child, and something awful had happened to them. She was crying - but at the same time the memories that they had from that previous life made her so happy - so she was also smiling. That combination of emotions kind of made me feel like my heart was being ripped apart but also optimistic in a weird way. She had found a way to see happiness in this awful thing that had happened to her. That combination of emotions is what this song is getting at.\"",
"published":"3 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"5.6K",
"label":"5.6K likes"
},
"replyCount":31
},
{
"id":"Ugwq4Hc5dcjphfdabi14AaABAg",
"author":{
"id":"UChtQ0Lhb3UvlSjPJ_1gcRdQ",
"name":"Later",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLTmkn0CgPeiW8hmoP3VEokLg-AN2Y7xkTz7HeOa1w=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLTmkn0CgPeiW8hmoP3VEokLg-AN2Y7xkTz7HeOa1w=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLTmkn0CgPeiW8hmoP3VEokLg-AN2Y7xkTz7HeOa1w=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"\"Don\\'t you know you got my eyes\"",
"published":"2 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"3.3K",
"label":"3.3K likes"
},
"replyCount":19
},
{
"id":"UgxC1mFXH9ddTB6qa5h4AaABAg",
"author":{
"id":"UC8iw4k1Ojbd5QsK35IeT5mg",
"name":"Anna Dunne",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSzwmG3DSiHB8XuKUqe6CjdlbSPuln1e1kOKS7i6w=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSzwmG3DSiHB8XuKUqe6CjdlbSPuln1e1kOKS7i6w=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSzwmG3DSiHB8XuKUqe6CjdlbSPuln1e1kOKS7i6w=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"I lost my little sons to the care system because i had depression and experienced domestic abuse. I see them now sometimes. It doesn't get any easier and I miss them a lot. <3 This song means a lot. ",
"published":"2 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"1.9K",
"label":"1.9K likes"
},
"replyCount":25
},
{
"id":"Ugw4ux8km05TQ3kGHmV4AaABAg",
"author":{
"id":"UCfqMzgWyCUuUWBBaD4WgynA",
"name":"Jemma Scott",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLT44n2_05S_bMU2ME_Z1WSk6xTIJ3cs82vSF920pg=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLT44n2_05S_bMU2ME_Z1WSk6xTIJ3cs82vSF920pg=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLT44n2_05S_bMU2ME_Z1WSk6xTIJ3cs82vSF920pg=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"Warning ⚠️: ",
"published":"2 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"2.1K",
"label":"2.1K likes"
},
"replyCount":5
},
{
"id":"Ugy5hJrVHhrZ25VZoDd4AaABAg",
"author":{
"id":"UCCooCkWoIN-QmHrVo0t5d9Q",
"name":"Samy Lind",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSHCXYVj0EyiLYxeBvhP6E4gnS1gRzDSYleBQ=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSHCXYVj0EyiLYxeBvhP6E4gnS1gRzDSYleBQ=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSHCXYVj0EyiLYxeBvhP6E4gnS1gRzDSYleBQ=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"I know no one cares about stuff like this but I just wanted to speak on the power of art because it’s beautiful. This video and this entire album has been a huge catalyst and help in me saving myself and my family. I was forcing my husband and 3 kids to live with my abusive parents so that I could try to make them love us before they died. All they did was hurt us more and instead of dealing with it I kept staying there and started doing pain pills. This video helped hit home how much I don’t need my parents and it made me never want to escape from my reality again. I hadn’t quite gotten to a stage of disgust, but I sure have done a lot of regrettable things. This album helps me have the strength to keep doing my best to learn to be better and to learn to be the best I can be for my kids. I don’t want to be held back by anything anymore and I don’t want to hold back my family. Thank you glass animal and crew:) your saving lives with this music",
"published":"2 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"493",
"label":"493 likes"
},
"replyCount":7
},
{
"id":"UgyfG6DRZQZe5NtvY9t4AaABAg",
"author":{
"id":"UCFlsa-V7ZjC3SJG1MgHeTxA",
"name":"Adi ☆",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/2r2ZQYcZaViZp8n37bmAnJx-irYy7mOUkpkC7nprEaoeSY2jEJ9wQ-kQnpxN6Z4WMWFMT9JzUw=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/2r2ZQYcZaViZp8n37bmAnJx-irYy7mOUkpkC7nprEaoeSY2jEJ9wQ-kQnpxN6Z4WMWFMT9JzUw=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/2r2ZQYcZaViZp8n37bmAnJx-irYy7mOUkpkC7nprEaoeSY2jEJ9wQ-kQnpxN6Z4WMWFMT9JzUw=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"Lyrics:[Verse 1]",
"published":"2 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"955",
"label":"955 likes"
},
"replyCount":9
},
{
"id":"Ugi30kIt00U573gCoAEC",
"author":{
"id":"UCZbJ_Q3ClurxYlthgTecgow",
"name":"love, doggo",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/IJF61exnEIJZDlnphGN9yXnV_fQSJhdAyPqgF_e3pJ42iwvTQprgQaty-uVyvjiMJpnaekxeBg=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/IJF61exnEIJZDlnphGN9yXnV_fQSJhdAyPqgF_e3pJ42iwvTQprgQaty-uVyvjiMJpnaekxeBg=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/IJF61exnEIJZDlnphGN9yXnV_fQSJhdAyPqgF_e3pJ42iwvTQprgQaty-uVyvjiMJpnaekxeBg=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"This is a rare thing... I like every song a band makes",
"published":"5 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"3.9K",
"label":"3.9K likes"
},
"replyCount":67
},
{
"id":"UgzDNmCLzmkNIGV_iB14AaABAg",
"author":{
"id":"UCrdOXfYndK2UEjAKRg-hUcw",
"name":"Cherry",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/oRPZKN6SL1SoMc5J7FQIHiA1C1wQZe1YfRHbkxaLnNp9Vi7Vl2PCY11oTK5mDms-NHXSGqFsKQ=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/oRPZKN6SL1SoMc5J7FQIHiA1C1wQZe1YfRHbkxaLnNp9Vi7Vl2PCY11oTK5mDms-NHXSGqFsKQ=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/oRPZKN6SL1SoMc5J7FQIHiA1C1wQZe1YfRHbkxaLnNp9Vi7Vl2PCY11oTK5mDms-NHXSGqFsKQ=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"I hope the mother who inspired this can hear it and feel her child close to her again.",
"published":"2 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"410",
"label":"410 likes"
},
"replyCount":1
},
{
"id":"UgyQEih224ElUkT2AXl4AaABAg",
"author":{
"id":"UC7M3_B55yIvo4DZS3BvgA1g",
"name":"Sirce Guevara",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLRJhxg_aeXmbGuH8wbuCcGWVtRs6tFKPqkxw4-lcJ8=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLRJhxg_aeXmbGuH8wbuCcGWVtRs6tFKPqkxw4-lcJ8=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLRJhxg_aeXmbGuH8wbuCcGWVtRs6tFKPqkxw4-lcJ8=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"I cried watching this video, this is my first time seeing it.. It just reminded me of my mother, how she raised me alone. Seeing me happy and dancing all her life . How she works hard day by day just so I have a roof on my head and food on the table. She's amazing...",
"published":"2 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"271",
"label":"271 likes"
},
"replyCount":1
},
{
"id":"UgxSKtnwJ1fL1cGECFN4AaABAg",
"author":{
"id":"UCaWu5P4tl4leNsq0d6K5JfA",
"name":"Brylee D",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSnWU59WluXZehM5VxmcbX6Unk_rgJc699gUp7lxw=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSnWU59WluXZehM5VxmcbX6Unk_rgJc699gUp7lxw=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSnWU59WluXZehM5VxmcbX6Unk_rgJc699gUp7lxw=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"I have a crush on that background wind instrument",
"published":"2 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"4.5K",
"label":"4.5K likes"
},
"replyCount":36
},
{
"id":"Ugx885faaugZ-KS2ht14AaABAg",
"author":{
"id":"UCAv-kFdFs9zZX4IR9y77sTg",
"name":"berry tart subs ✿",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/RIEhlWERKQrY6oscMFEVW9pyDVKwndKkfFfnMTGxJIFHV2np4asu1syE-C016cZlcgZYtkdvrCA=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/RIEhlWERKQrY6oscMFEVW9pyDVKwndKkfFfnMTGxJIFHV2np4asu1syE-C016cZlcgZYtkdvrCA=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/RIEhlWERKQrY6oscMFEVW9pyDVKwndKkfFfnMTGxJIFHV2np4asu1syE-C016cZlcgZYtkdvrCA=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"This song literally makes me cry every time I hear it it's just so sweet",
"published":"1 year ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"73",
"label":"73 likes"
},
"replyCount":1
},
{
"id":"UgxfMf3PW8muQIKHeX54AaABAg",
"author":{
"id":"UCs5_3PBRo9VoCCbDWDMpa-g",
"name":"Victor Rodriguez",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLRe_mumWc8G4a9DvzNQ7FBA_hctTvwTJskAdw=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLRe_mumWc8G4a9DvzNQ7FBA_hctTvwTJskAdw=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLRe_mumWc8G4a9DvzNQ7FBA_hctTvwTJskAdw=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"I hope my son can find some type of solace or message in this song one day. We lost his mother my wife when she passed suddenly three months ago at 23 years young. He was only 2 years old and 7 months when it happened. It was a short time for him but so many happy memories. They spent every single hour of every single day together. We’re so lost and devasted without you, We love you Deja C Rodriguez",
"published":"8 months ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"126",
"label":"126 likes"
},
"replyCount":2
},
{
"id":"UgiuS-ehhcqhHXgCoAEC",
"author":{
"id":"UCd6gX2dxkokyH70cbUocq7Q",
"name":"bunnyluveable",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSt6NFUcOAfGB1C0BL0f18q8sPUX0UQBhYV_A=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSt6NFUcOAfGB1C0BL0f18q8sPUX0UQBhYV_A=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLSt6NFUcOAfGB1C0BL0f18q8sPUX0UQBhYV_A=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"their music is like being wrapped in a warm blanket on a chilly day.",
"published":"5 years ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"563",
"label":"563 likes"
},
"replyCount":6
},
{
"id":"UgwEdhuY0RUuiyBqpVN4AaABAg",
"author":{
"id":"UC8GIfeF1UytnIdBUx7eODBg",
"name":"TheBnjmnMiles",
"thumbnails":[
{
"url":"https://yt3.ggpht.com/ytc/AKedOLQjQG6jvrGnj9ejtjfO-pbXWwekST4e_qxK=s48-c-k-c0x00ffffff-no-rj",
"width":48,
"height":48
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLQjQG6jvrGnj9ejtjfO-pbXWwekST4e_qxK=s88-c-k-c0x00ffffff-no-rj",
"width":88,
"height":88
},
{
"url":"https://yt3.ggpht.com/ytc/AKedOLQjQG6jvrGnj9ejtjfO-pbXWwekST4e_qxK=s176-c-k-c0x00ffffff-no-rj",
"width":176,
"height":176
}
]
},
"content":"Why is nobody talking about this kid’s freakin’ sweet dance moves?",
"published":"7 months ago",
"isLiked":false,
"authorIsChannelOwner":false,
"voteStatus":"INDIFFERENT",
"votes":{
"simpleText":"210",
"label":"210 likes"
},
"replyCount":4
}
]
}
```
</details>
#### Retrieve video transcript
YouTube auto-generates transcripts (subtitles) for videos. You can retrieve those transcripts using Transcript class:
```py
from youtubesearchpython import Transcript
print(Transcript.get("https://www.youtube.com/watch?v=-1xu0IP35FI"))
```
In response, you'll get available languages with `params` parameter. If you want to retrieve a different language, you have to pass the function that parameter. Example:
```py
from youtubesearchpython import Transcript
url = "https://www.youtube.com/watch?v=-1xu0IP35FI"
transcript_en = Transcript.get(url)
# you actually don't have to pass a valid URL in following Transcript call. You can input an empty string, but I do recommend still inputing a valid URL.
transcript_2 = Transcript.get(url, transcript_en["languages"][-1]["params"]) # in my case, it'd output Spanish.
print(transcript_2)
```
<details>
<summary> Example Result</summary>
```json
{
"segments":[
{
"startMs":"210",
"endMs":"2129",
"text":"- When Steve Jobs unveiled the original",
"startTime":"0:00"
},
{
"startMs":"2130",
"endMs":"3670",
"text":"iPhone back in 2007,",
"startTime":"0:02"
},
{
"startMs":"3670",
"endMs":"4940",
"text":"the year I graduated high school,",
"startTime":"0:03"
},
{
"startMs":"4940",
"endMs":"7610",
"text":"he pitched it as a music player, a phone,",
"startTime":"0:04"
},
{
"startMs":"7610",
"endMs":"10760",
"text":"and an internet communicator\nall rolled into one.",
"startTime":"0:07"
},
{
"startMs":"10760",
"endMs":"11593",
"text":"- Are you getting it?",
"startTime":"0:10"
},
...
],
"languages":[
{
"params":"CgstMXh1MElQMzVGSRIOQ2dBU0FtVnVHZ0ElM0QYASozZW5nYWdlbWVudC1wYW5lbC1zZWFyY2hhYmxlLXRyYW5zY3JpcHQtc2VhcmNoLXBhbmVsMAE%3D",
"selected":true,
"title":"English"
},
{
"params":"CgstMXh1MElQMzVGSRISQ2dOaGMzSVNBbVZ1R2dBJTNEGAEqM2VuZ2FnZW1lbnQtcGFuZWwtc2VhcmNoYWJsZS10cmFuc2NyaXB0LXNlYXJjaC1wYW5lbDAB",
"selected":false,
"title":"English (auto-generated)"
},
{
"params":"CgstMXh1MElQMzVGSRISQ2dBU0JYQjBMVUpTR2dBJTNEGAEqM2VuZ2FnZW1lbnQtcGFuZWwtc2VhcmNoYWJsZS10cmFuc2NyaXB0LXNlYXJjaC1wYW5lbDAB",
"selected":false,
"title":"Portuguese (Brazil)"
},
{
"params":"CgstMXh1MElQMzVGSRIQQ2dBU0JtVnpMVFF4T1JvQRgBKjNlbmdhZ2VtZW50LXBhbmVsLXNlYXJjaGFibGUtdHJhbnNjcmlwdC1zZWFyY2gtcGFuZWwwAQ%3D%3D",
"selected":false,
"title":"Spanish (Latin America)"
}
]
}
```
</details>
#### Retrieve channel info
```py
from youtubesearchpython import Channel
print(Channel.get("UC_aEa8K-EOJ3D6gOs7HcyNg"))
```
<details>
<summary> Example Result</summary>
```json
{
"id": "UC_aEa8K-EOJ3D6gOs7HcyNg",
"url": "https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg",
"description": "NoCopyrightSounds is a copyright free / stream safe record label, providing free to use music to the content creator community. \n\nWe work with artists from around the world in electronic music, representing genres from House to Dubstep via Trap, Drum & Bass, Electro Pop and more. \n\nNCS Music is free to use for independent Creators and their UGC (User Generated Content) on YouTube & Twitch - always remember to credit the Artist, track and NCS and link back to our original NCS upload.\n\nView our usage policy and some frequently asked questions here: http://ncs.io/UsagePolicy\n\nGrab our new apparel range here: http://ncs.io/Store",
"title": "NoCopyrightSounds",
"banners": [
{
"url": "https://yt3.ggpht.com/ZdXDhvCVn73Shu-QkqWFoUS_TlZ9MSkAXb8VJBeI6ZKSN6oH4QBvTG2BCfuFRegjXwdp6qH3=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
"width": 1060,
"height": 175
},
{
"url": "https://yt3.ggpht.com/ZdXDhvCVn73Shu-QkqWFoUS_TlZ9MSkAXb8VJBeI6ZKSN6oH4QBvTG2BCfuFRegjXwdp6qH3=w1138-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
"width": 1138,
"height": 188
},
{
"url": "https://yt3.ggpht.com/ZdXDhvCVn73Shu-QkqWFoUS_TlZ9MSkAXb8VJBeI6ZKSN6oH4QBvTG2BCfuFRegjXwdp6qH3=w1707-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
"width": 1707,
"height": 283
},
{
"url": "https://yt3.ggpht.com/ZdXDhvCVn73Shu-QkqWFoUS_TlZ9MSkAXb8VJBeI6ZKSN6oH4QBvTG2BCfuFRegjXwdp6qH3=w2120-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
"width": 2120,
"height": 351
},
{
"url": "https://yt3.ggpht.com/ZdXDhvCVn73Shu-QkqWFoUS_TlZ9MSkAXb8VJBeI6ZKSN6oH4QBvTG2BCfuFRegjXwdp6qH3=w2276-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
"width": 2276,
"height": 377
},
{
"url": "https://yt3.ggpht.com/ZdXDhvCVn73Shu-QkqWFoUS_TlZ9MSkAXb8VJBeI6ZKSN6oH4QBvTG2BCfuFRegjXwdp6qH3=w2560-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
"width": 2560,
"height": 424
}
],
"subscribers": {
"simpleText": "32.2M subscribers",
"label": "32.2 million subscribers"
},
"thumbnails": [
{
"url": "https://yt3.ggpht.com/YIBi8NVC87fMfJHfQ2O0dyzjis7tUlO7VqWLhk1lq1fkIOQTrpX_Ip7G6S_u0IJosXYSe_Z9=s48-c-k-c0x00ffffff-no-rj",
"width": 48,
"height": 48
},
{
"url": "https://yt3.ggpht.com/YIBi8NVC87fMfJHfQ2O0dyzjis7tUlO7VqWLhk1lq1fkIOQTrpX_Ip7G6S_u0IJosXYSe_Z9=s88-c-k-c0x00ffffff-no-rj",
"width": 88,
"height": 88
},
{
"url": "https://yt3.ggpht.com/YIBi8NVC87fMfJHfQ2O0dyzjis7tUlO7VqWLhk1lq1fkIOQTrpX_Ip7G6S_u0IJosXYSe_Z9=s176-c-k-c0x00ffffff-no-rj",
"width": 176,
"height": 176
},
{
"url": "https://yt3.ggpht.com/YIBi8NVC87fMfJHfQ2O0dyzjis7tUlO7VqWLhk1lq1fkIOQTrpX_Ip7G6S_u0IJosXYSe_Z9=s900-c-k-c0x00ffffff-no-rj",
"width": 900,
"height": 900
},
{
"url": "https://yt3.ggpht.com/YIBi8NVC87fMfJHfQ2O0dyzjis7tUlO7VqWLhk1lq1fkIOQTrpX_Ip7G6S_u0IJosXYSe_Z9=s200-c-k-c0x00ffffff-no-rj?days_since_epoch=19098",
"width": 200,
"height": 200
}
],
"isFamilySafe": true,
"keywords": "NoCopyrightSounds ncs no copyright sounds copyrighted music free royalty royaltyfree uncopyrighted copyrightfree",
"tags": [
"NoCopyrightSounds",
"ncs",
"no",
"copyright",
"sounds",
"copyrighted",
"music",
"free",
"royalty",
"royaltyfree",
"uncopyrighted",
"copyrightfree"
],
"views": "10,094,707,992 views",
"joinedDate": "Aug 14, 2011",
"country": "United Kingdom"
}
```
</details>
#### Retrieve channel playlists
```py
from youtubesearchpython import Channel
channel = Channel("UC_aEa8K-EOJ3D6gOs7HcyNg")
print(len(channel.result["playlists"]))
while channel.has_more_playlists():
channel.next()
print(len(channel.result["playlists"]))
```
<details>
<summary> Example Result</summary>
```
30
49
```
</details>
## Contributors
Thanks to everyone contributing to this library, including those not mentioned here.
I included only contributors and people, who we can thank for their extensive reports to make the library better.
Contributors are added irrespective of order.
<ul>
<li>
<img src='https://avatars.githubusercontent.com/u/28951144?s=80&v=4' height='28' width='28'></img> <strong><a href='https://github.com/alexmercerind'>Hitesh Kumar Saini</a></strong>
<ul>
<li>Creator of this library, contributed most classes to this library.</li>
</ul>
</li>
<li>
<img src='https://avatars.githubusercontent.com/u/52399966?s=80&v=4' height='28' width='28'></img> <strong><a href='https://github.com/mytja'>mytja</a></strong>
<ul>
<li>Current maintainer of this library. Author of Core classes, Comments and Transcript classes, ytdlp migration</li>
</ul>
</li>
<li>
<img src='https://avatars.githubusercontent.com/u/64320078?s=80&v=4' height='28' width='28'></img> <strong><a href='https://github.com/raitonoberu'>Denis</a></strong>
<ul>
<li>Maintainer and reviewer of PRs. Author of Hashtag class.</li>
</ul>
</li>
<li>
<img src='https://avatars.githubusercontent.com/u/42294590?v=4' height='28' width='28'></img> <strong><a href='https://github.com/fabi321'>Fabian Wunsch</a></strong>
<ul>
<li>Fixes to ChannelSearch & retrieving Playlists from Channel class</li>
</ul>
</li>
<li>
<img src='https://avatars.githubusercontent.com/u/1645646?v=4' height='28' width='28'></img> <strong><a href='https://github.com/Zocker1999NET'>Felix Stupp</a></strong>
<ul>
<li>Video and Playlist class contributor. Extensive issues.</li>
</ul>
</li>
<li>
<img src='https://avatars.githubusercontent.com/u/30200788?v=4' height='28' width='28'></img> <strong><a href='https://github.com/dscrofts'>dscrofts</a></strong>
<ul>
<li>Extensive issues, mostly about Playlist and Video class.</li>
</ul>
</li>
<li>
<img src='https://avatars.githubusercontent.com/u/5200252?v=4' height='28' width='28'></img> <strong><a href='https://github.com/AlexandreOuellet'>AlexandreOuellet</a></strong>
<ul>
<li>Added publishDate and uploadDate to Video class.</li>
</ul>
</li>
<li>
<img src='https://avatars.githubusercontent.com/u/52490534?v=4' height='28' width='28'></img> <strong><a href='https://github.com/rking32'>None</a></strong>
<ul>
<li>Bumped httpx version to 0.14.2.</li>
</ul>
</li>
<li>
<img src='https://avatars.githubusercontent.com/u/64990477?v=4' height='28' width='28'></img> <strong><a href='https://github.com/Maple-Elter'>Elter</a></strong>
<ul>
<li>Fixes to Playlist class.</li>
</ul>
</li>
</ul>
## License
MIT License
Copyright (c) 2021 [Hitesh Kumar Saini](https://github.com/alexmercerind)
## Information
- All the research, for making this library possible, is entirely done by myself.
- You can use this library & segments of code from it in your projects in any way you want. Just respect the MIT license & credit the original author of the project.
- Current version of this project (`main` branch) simulates the requests made by YouTube's web client during client side rendering. In simple words, it does not fetch any specific webpage's HTML, but the JSONs internally fetched by YouTube when you navigate the website, after loading the webpage completely.
- I do not resist you from using this library in any possible manner, but YouTube T&C stop you from using this library commercially. Respect the law.
- As you might tell by the name of the project, this library initially only used to support searching of videos. Later on, as the project grew, I added a lot of additional features after requests from people. Now, its really powerful.
Raw data
{
"_id": null,
"home_page": "https://github.com/alexmercerind/youtube-search-python",
"name": "youtube-search-python",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "",
"author": "Hitesh Kumar Saini",
"author_email": "saini123hitesh@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/91/3c/dc669b0308e49f294df67bddbb16ff3eefe5b5da6fa37ead922a8301926b/youtube-search-python-1.6.6.tar.gz",
"platform": null,
"description": "# [youtube-search-python](https://github.com/alexmercerind/youtube-search-python)\n\n## This library will be/is no longer maintained as of 23rd June 2022. Have a look [here](https://github.com/alexmercerind/youtube-search-python/issues/189).\n\n##### Search for YouTube videos, channels & playlists. Get video & playlist information using link. Get search suggestions.\n\n##### Important: As of v1.6.1, we no longer use PyTube (see https://github.com/alexmercerind/youtube-search-python/pull/155). You have to install yt-dlp in order to use StreamURLFetcher: `pip install yt-dlp`\n\n#### WITHOUT YouTube Data API v3.\n\n[![PyPI - Version](https://img.shields.io/pypi/v/youtube-search-python?style=for-the-badge)](https://pypi.org/project/youtube-search-python)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/youtube-search-python?label=DOWNLOADS&style=for-the-badge)](https://pypi.org/project/youtube-search-python)\n\n## Installing\n\n```bash\npip3 install youtube-search-python\n```\n\n## Sync\n\n#### Search for only videos\n\n```python\nfrom youtubesearchpython import VideosSearch\n\nvideosSearch = VideosSearch('NoCopyrightSounds', limit = 2)\n\nprint(videosSearch.result())\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n{\n \"result\": [\n {\n \"type\": \"video\",\n \"id\": \"K4DyBUG242c\",\n \"title\": \"Cartoon - On & On (feat. Daniel Levi) [NCS Release]\",\n \"publishedTime\": \"5 years ago\",\n \"duration\": \"3:28\",\n \"viewCount\": {\n \"text\": \"389,673,774 views\",\n \"short\": \"389M views\"\n },\n \"thumbnails\": [\n {\n \"url\": \"https://i.ytimg.com/vi/K4DyBUG242c/hqdefault.jpg?sqp=-oaymwEjCOADEI4CSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBkTusCwcZQlmVAaRQ5rH-mvBuA1g\",\n \"width\": 480,\n \"height\": 270\n }\n ],\n \"richThumbnail\": {\n \"url\": \"https://i.ytimg.com/an_webp/K4DyBUG242c/mqdefault_6s.webp?du=3000&sqp=COCn64IG&rs=AOn4CLBeYxeJ_5lME4jXbFQlv7kIN37kmw\",\n \"width\": 320,\n \"height\": 180\n },\n \"descriptionSnippet\": [\n {\n \"text\": \"NCS: Music Without Limitations NCS Spotify: http://spoti.fi/NCS Free Download / Stream: http://ncs.io/onandon \\u25bd Connect with\\u00a0...\"\n }\n ],\n \"channel\": {\n \"name\": \"NoCopyrightSounds\",\n \"id\": \"UC_aEa8K-EOJ3D6gOs7HcyNg\",\n \"thumbnails\": [\n {\n \"url\": \"https://yt3.ggpht.com/a-/AOh14GhS0G5FwV8rMhVCUWSDp36vWEvnNs5Vl97Zww=s68-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 68,\n \"height\": 68\n }\n ],\n \"link\": \"https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg\"\n },\n \"accessibility\": {\n \"title\": \"Cartoon - On & On (feat. Daniel Levi) [NCS Release] by NoCopyrightSounds 5 years ago 3 minutes, 28 seconds 389,673,774 views\",\n \"duration\": \"3 minutes, 28 seconds\"\n },\n \"link\": \"https://www.youtube.com/watch?v=K4DyBUG242c\",\n \"shelfTitle\": null\n },\n {\n \"type\": \"video\",\n \"id\": \"yJg-Y5byMMw\",\n \"title\": \"Warriyo - Mortals (feat. Laura Brehm) [NCS Release]\",\n \"publishedTime\": \"3 years ago\",\n \"duration\": \"3:50\",\n \"viewCount\": {\n \"text\": \"153,353,801 views\",\n \"short\": \"153M views\"\n },\n \"thumbnails\": [\n {\n \"url\": \"https://i.ytimg.com/vi/yJg-Y5byMMw/hqdefault.jpg?sqp=-oaymwEjCOADEI4CSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDY-mve79IweErMo-71AsKEIB1m0A\",\n \"width\": 480,\n \"height\": 270\n }\n ],\n \"richThumbnail\": {\n \"url\": \"https://i.ytimg.com/an_webp/K4DyBUG242c/mqdefault_6s.webp?du=3000&sqp=COCn64IG&rs=AOn4CLBeYxeJ_5lME4jXbFQlv7kIN37kmw\",\n \"width\": 320,\n \"height\": 180\n },\n \"descriptionSnippet\": [\n {\n \"text\": \"NCS: Music Without Limitations NCS Spotify: http://spoti.fi/NCS Free Download / Stream: http://ncs.io/mortals Connect with NCS:\\u00a0...\"\n }\n ],\n \"channel\": {\n \"name\": \"NoCopyrightSounds\",\n \"id\": \"UC_aEa8K-EOJ3D6gOs7HcyNg\",\n \"thumbnails\": [\n {\n \"url\": \"https://yt3.ggpht.com/a-/AOh14GhS0G5FwV8rMhVCUWSDp36vWEvnNs5Vl97Zww=s68-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 68,\n \"height\": 68\n }\n ],\n \"link\": \"https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg\"\n },\n \"accessibility\": {\n \"title\": \"Warriyo - Mortals (feat. Laura Brehm) [NCS Release] by NoCopyrightSounds 3 years ago 3 minutes, 50 seconds 153,353,801 views\",\n \"duration\": \"3 minutes, 50 seconds\"\n },\n \"link\": \"https://www.youtube.com/watch?v=yJg-Y5byMMw\",\n \"shelfTitle\": null\n }\n ]\n}\n```\n\n</details>\n\n## Async\n\n#### Search for only videos\n\n```python\nfrom youtubesearchpython.__future__ import VideosSearch\n\nvideosSearch = VideosSearch('NoCopyrightSounds', limit = 2)\nvideosResult = await videosSearch.next()\nprint(videosResult)\n```\n\nRead more about usage & examples of newer asynchronous version of this library [HERE](https://github.com/alexmercerind/youtube-search-python/tree/main/youtubesearchpython/__future__).\n\n\n## More Examples\n\n#### Search for only channels\n\n```python\nfrom youtubesearchpython import ChannelsSearch\n\nchannelsSearch = ChannelsSearch('NoCopyrightSounds', limit = 10, region = 'US')\n\nprint(channelsSearch.result())\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n{\n \"result\": [\n {\n \"type\": \"channel\",\n \"id\": \"UC_aEa8K-EOJ3D6gOs7HcyNg\",\n \"title\": \"NoCopyrightSounds\",\n \"thumbnails\": [\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwngbenDpBxHNZlecDGyccHeVyQB22dPZnPuhbW8LHw=s88-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwngbenDpBxHNZlecDGyccHeVyQB22dPZnPuhbW8LHw=s176-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 176,\n \"height\": 176\n }\n ],\n \"videoCount\": \"850\",\n \"descriptionSnippet\": [\n {\n \"text\": \"NoCopyrightSounds\",\n \"bold\": true\n },\n {\n \"text\": \" is a copyright free / stream safe record label, providing free to use music to the content creator community.\"\n }\n ],\n \"subscribers\": \"28.7M subscribers\",\n \"link\": \"https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg\"\n },\n {\n \"type\": \"channel\",\n \"id\": \"UCg-vlcyvOyNVPV6Neogmubg\",\n \"title\": \"NoCopyrightSounds Hindi\",\n \"thumbnails\": [\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwnjDHXULXSvX7u71Rmb2f-Cqly0ron2F1N3szu8Y=s88-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwnjDHXULXSvX7u71Rmb2f-Cqly0ron2F1N3szu8Y=s176-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 176,\n \"height\": 176\n }\n ],\n \"videoCount\": \"56\",\n \"descriptionSnippet\": [\n {\n \"text\": \"The Official NCS HINDI Songs Channel for Nocopyright hindi audios.\"\n }\n ],\n \"subscribers\": \"13.7K subscribers\",\n \"link\": \"https://www.youtube.com/channel/UCg-vlcyvOyNVPV6Neogmubg\"\n },\n {\n \"type\": \"channel\",\n \"id\": \"UCrL9x8LllOU2LOVgTo951kA\",\n \"title\": \"NoCopyrightSounds\",\n \"thumbnails\": [\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwnhXShCsmo9VwL4KC8j3GNHgHyBBJ0RCmbAUKrwg=s88-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwnhXShCsmo9VwL4KC8j3GNHgHyBBJ0RCmbAUKrwg=s176-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 176,\n \"height\": 176\n }\n ],\n \"videoCount\": \"2\",\n \"descriptionSnippet\": [\n {\n \"text\": \"NCS [NopCopyrightSounds] is a channel dedicated to promoting the best FREE DOWNLOAD music on the net. Every track\\u00a0...\"\n }\n ],\n \"subscribers\": \"1.71K subscribers\",\n \"link\": \"https://www.youtube.com/channel/UCrL9x8LllOU2LOVgTo951kA\"\n },\n {\n \"type\": \"channel\",\n \"id\": \"UCYZvaL6G3m4-UbvWGlyFeLg\",\n \"title\": \"NoCopyrightSounds\",\n \"thumbnails\": [\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwnisxA4V_U0Ffh0K-cdnqwGZjs62hKv2-IAfzIqc=s88-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwnisxA4V_U0Ffh0K-cdnqwGZjs62hKv2-IAfzIqc=s176-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 176,\n \"height\": 176\n }\n ],\n \"videoCount\": \"33\",\n \"descriptionSnippet\": null,\n \"subscribers\": null,\n \"link\": \"https://www.youtube.com/channel/UCYZvaL6G3m4-UbvWGlyFeLg\"\n },\n {\n \"type\": \"channel\",\n \"id\": \"UCi7xVhyWWf2eTc0GO0Ty9HQ\",\n \"title\": \"NoCopyrightSounds\",\n \"thumbnails\": [\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwngOJ2zbLEkNs96PNp0g9h27l64mwRFhR1vZ9W7u=s88-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwngOJ2zbLEkNs96PNp0g9h27l64mwRFhR1vZ9W7u=s176-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 176,\n \"height\": 176\n }\n ],\n \"videoCount\": \"1 video\",\n \"descriptionSnippet\": null,\n \"subscribers\": \"2 subscribers\",\n \"link\": \"https://www.youtube.com/channel/UCi7xVhyWWf2eTc0GO0Ty9HQ\"\n },\n {\n \"type\": \"channel\",\n \"id\": \"UCOSiFTIAReRzkPBXaQAuXCQ\",\n \"title\": \"NoCopyrightSounds\",\n \"thumbnails\": [\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwng1UBDlLdYyqTofL6x_5hqPMTFnMXxAN9C9_t8Y=s88-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwng1UBDlLdYyqTofL6x_5hqPMTFnMXxAN9C9_t8Y=s176-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 176,\n \"height\": 176\n }\n ],\n \"videoCount\": \"8\",\n \"descriptionSnippet\": [\n {\n \"text\": \"YGW MEDIA GROUP 04.\"\n }\n ],\n \"subscribers\": \"11 subscribers\",\n \"link\": \"https://www.youtube.com/channel/UCOSiFTIAReRzkPBXaQAuXCQ\"\n },\n {\n \"type\": \"channel\",\n \"id\": \"UCSFpIv5SZlg4ub_IWgGKkIA\",\n \"title\": \"NoCopyrightSounds Lyrics\",\n \"thumbnails\": [\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwng_J1igSuKFWowZ8OFpT1dPCPgzqEvVkGImwM3Dpg=s88-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwng_J1igSuKFWowZ8OFpT1dPCPgzqEvVkGImwM3Dpg=s176-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 176,\n \"height\": 176\n }\n ],\n \"videoCount\": \"82\",\n \"descriptionSnippet\": [\n {\n \"text\": \"Welcome To \"\n },\n {\n \"text\": \"NoCopyrightSounds\",\n \"bold\": true\n },\n {\n \"text\": \" Lyrics \"\n },\n {\n \"text\": \"NoCopyrightSounds\",\n \"bold\": true\n },\n {\n \"text\": \" lyrics provides music from a variety of licenses that are certainly\\u00a0...\"\n }\n ],\n \"subscribers\": null,\n \"link\": \"https://www.youtube.com/channel/UCSFpIv5SZlg4ub_IWgGKkIA\"\n },\n {\n \"type\": \"channel\",\n \"id\": \"UCcE-Gvu5j55MdREM1a4_EqA\",\n \"title\": \"NoCopyrightSounds\",\n \"thumbnails\": [\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwnhbzZwQIVabdGA1SteO2BCtmrG3uT_cpzmJvtBY=s88-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwnhbzZwQIVabdGA1SteO2BCtmrG3uT_cpzmJvtBY=s176-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 176,\n \"height\": 176\n }\n ],\n \"videoCount\": \"6\",\n \"descriptionSnippet\": null,\n \"subscribers\": \"166 subscribers\",\n \"link\": \"https://www.youtube.com/channel/UCcE-Gvu5j55MdREM1a4_EqA\"\n },\n {\n \"type\": \"channel\",\n \"id\": \"UCCOWDgeFmwW--woYtCYws8Q\",\n \"title\": \"NoCopyrightSounds 1 HOUR\",\n \"thumbnails\": [\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwnipj6lV7p6i8Mq7uAlDj5qHsQkiwgwdtPs_vCKy=s88-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwnipj6lV7p6i8Mq7uAlDj5qHsQkiwgwdtPs_vCKy=s176-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 176,\n \"height\": 176\n }\n ],\n \"videoCount\": \"689\",\n \"descriptionSnippet\": [\n {\n \"text\": \"NoCopyrightSounds\",\n \"bold\": true\n },\n {\n \"text\": \" is a record label dedicated to releasing FREE music for the sole purpose of providing creators with the finest\\u00a0...\"\n }\n ],\n \"subscribers\": null,\n \"link\": \"https://www.youtube.com/channel/UCCOWDgeFmwW--woYtCYws8Q\"\n },\n {\n \"type\": \"channel\",\n \"id\": \"UCSI5zGuirscirQc6UOy_yww\",\n \"title\": \"NoCopyrightSounds\",\n \"thumbnails\": [\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwni92w-CAOUnlNfyIVxdCmvMoQmENZbw1wjFOQKjug=s88-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwni92w-CAOUnlNfyIVxdCmvMoQmENZbw1wjFOQKjug=s176-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 176,\n \"height\": 176\n }\n ],\n \"videoCount\": \"29\",\n \"descriptionSnippet\": [\n {\n \"text\": \"NoCopyrightSounds\",\n \"bold\": true\n },\n {\n \"text\": \" is a Record Label dedicated to giving a platform to the next generation of Artists in Electronic Music,\\u00a0...\"\n }\n ],\n \"subscribers\": null,\n \"link\": \"https://www.youtube.com/channel/UCSI5zGuirscirQc6UOy_yww\"\n }\n ]\n}\n```\n\n</details>\n\n#### Search for only playlists\n\n```python\nfrom youtubesearchpython import PlaylistsSearch\n\nplaylistsSearch = PlaylistsSearch('NoCopyrightSounds', limit = 1)\n\nprint(playlistsSearch.result())\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n{\n \"result\": [\n {\n \"type\": \"playlist\",\n \"id\": \"PLGde6kPURikrUszpUgafLZiOgr5o7pBF0\",\n \"title\": \"NoCopyrightSounds\",\n \"videoCount\": \"6\",\n \"channel\": {\n \"name\": \"Bruno Neves\",\n \"id\": \"UCtqpCV2HkMCSi5InFNBNv0g\",\n \"link\": \"https://www.youtube.com/channel/UCtqpCV2HkMCSi5InFNBNv0g\"\n },\n \"thumbnails\": [\n {\n \"url\": \"https://i.ytimg.com/vi/K4DyBUG242c/hqdefault.jpg?sqp=-oaymwEWCKgBEF5IWvKriqkDCQgBFQAAiEIYAQ==&rs=AOn4CLBw6Bf7J9COwl1LxqhmGbSQgdFj3w\",\n \"width\": 168,\n \"height\": 94\n },\n {\n \"url\": \"https://i.ytimg.com/vi/K4DyBUG242c/hqdefault.jpg?sqp=-oaymwEWCMQBEG5IWvKriqkDCQgBFQAAiEIYAQ==&rs=AOn4CLBjJCIZlrSGSPjc-7yKc0QQuWRdhg\",\n \"width\": 196,\n \"height\": 110\n },\n {\n \"url\": \"https://i.ytimg.com/vi/K4DyBUG242c/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCRIQ0IochteE0KM2tlK2PVVAQKhA\",\n \"width\": 246,\n \"height\": 138\n },\n {\n \"url\": \"https://i.ytimg.com/vi/K4DyBUG242c/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAQYBDz8gWKw_q4Zyb_H6J_DdZCaA\",\n \"width\": 336,\n \"height\": 188\n }\n ],\n \"link\": \"https://www.youtube.com/playlist?list=PLGde6kPURikrUszpUgafLZiOgr5o7pBF0\"\n }\n ]\n}\n```\n\n</details>\n\n#### Search with a filter or sort\n\n```python\nfrom youtubesearchpython import *\n\ncustomSearch = CustomSearch('NoCopyrightSounds', VideoSortOrder.uploadDate, limit = 1)\n\nprint(customSearch.result())\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n{\n \"result\": [\n {\n \"type\": \"video\",\n \"id\": \"k8-drvf4Ruo\",\n \"title\": \"Ambient Music 2020 \\ud83c\\udfb5 voices \\ud83c\\udfb5 NoCopyrightSounds\",\n \"publishedTime\": \"30 minutes ago\",\n \"duration\": \"2:29\",\n \"viewCount\": {\n \"text\": \"4 views\",\n \"short\": \"4 views\"\n },\n \"thumbnails\": [\n {\n \"url\": \"https://i.ytimg.com/vi/k8-drvf4Ruo/hq720.jpg?sqp=-oaymwEjCOgCEMoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDomB-9ivVHpwci6STdNAqQBMBzJA\",\n \"width\": 360,\n \"height\": 202\n },\n {\n \"url\": \"https://i.ytimg.com/vi/k8-drvf4Ruo/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCPrVwYygJ3627h8F-oU3khKehm4g\",\n \"width\": 720,\n \"height\": 404\n }\n ],\n \"richThumbnail\": {\n \"url\": \"https://i.ytimg.com/an_webp/K4DyBUG242c/mqdefault_6s.webp?du=3000&sqp=COCn64IG&rs=AOn4CLBeYxeJ_5lME4jXbFQlv7kIN37kmw\",\n \"width\": 320,\n \"height\": 180\n },\n \"descriptionSnippet\": [\n {\n \"text\": \"Don't forget to like & share if you enjoy it.\"\n }\n ],\n \"channel\": {\n \"name\": \"Sky Sound\",\n \"id\": \"UCQT8W5qZn7TCZBW39dVoaBw\",\n \"thumbnails\": [\n {\n \"url\": \"https://yt3.ggpht.com/a-/AOh14GhxrkkF27iL3sLTKzWLu3rrO-qtQ7uMPg4SqA=s68-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 68,\n \"height\": 68\n }\n ],\n \"link\": \"https://www.youtube.com/channel/UCQT8W5qZn7TCZBW39dVoaBw\"\n },\n \"accessibility\": {\n \"title\": \"Ambient Music 2020 \\ud83c\\udfb5 voices \\ud83c\\udfb5 NoCopyrightSounds by Sky Sound 30 minutes ago 2 minutes, 29 seconds 4 views\",\n \"duration\": \"2 minutes, 29 seconds\"\n },\n \"link\": \"https://www.youtube.com/watch?v=k8-drvf4Ruo\",\n \"shelfTitle\": null\n }\n ]\n}\n```\n\n</details>\n\n#### Search for everything\n\n```python\nfrom youtubesearchpython import Search\n\nallSearch = Search('NoCopyrightSounds', limit = 1)\n\nprint(allSearch.result())\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n{\n \"result\": [\n {\n \"type\": \"channel\",\n \"id\": \"UC_aEa8K-EOJ3D6gOs7HcyNg\",\n \"title\": \"NoCopyrightSounds\",\n \"thumbnails\": [\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwngbenDpBxHNZlecDGyccHeVyQB22dPZnPuhbW8LHw=s88-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"//yt3.ggpht.com/ytc/AAUvwngbenDpBxHNZlecDGyccHeVyQB22dPZnPuhbW8LHw=s176-c-k-c0x00ffffff-no-rj-mo\",\n \"width\": 176,\n \"height\": 176\n }\n ],\n \"videoCount\": \"850\",\n \"descriptionSnippet\": [\n {\n \"text\": \"NoCopyrightSounds\",\n \"bold\": true\n },\n {\n \"text\": \" is a copyright free / stream safe record label, providing free to use music to the content creator community.\"\n }\n ],\n \"subscribers\": \"28.7M subscribers\",\n \"link\": \"https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg\"\n },\n ]\n}\n```\n\n</details>\n\nYou may see the [example](https://github.com/alexmercerind/youtube-search-python/blob/main/syncExample.py) for more information.\n\n\n## Advanced\n\n#### Getting next page search results\n\nYou may call ```next``` method as follows, to get the results on the next pages.\n\nCalling ```result``` method after calling ```next``` will give you result on that the next page.\n\n```python\nfrom youtubesearchpython import VideosSearch\n\nsearch = VideosSearch('NoCopyrightSounds')\n\nprint(search.result()['result'])\n\n''' Getting result from 2nd page. '''\nsearch.next()\nprint(search.result()['result'])\n\n''' Getting result from 3rd page. '''\nsearch.next()\nprint(search.result()['result'])\n\n''' Getting result from 4th page. '''\nsearch.next()\nprint(search.result()['result'])\n```\n\n#### Getting video information using video link or video ID\n\n```python\n'''\nGetting information about video or its formats using video link or video ID.\n\n`Video.get` method will give both information & formats of the video\n`Video.getInfo` method will give only information about the video.\n`Video.getFormats` method will give only formats of the video.\n\nYou may either pass link or ID, method will take care itself.\n\nYouTube doesn't provide uploadDate and publishDate in its InnerTube API, thus we have to use HTML requests to get it.\nThis is disabled by default as it is very inefficient, but if you really need it, you can explicitly set parameter to Video.get() function: get_upload_date=True\nBy default, we use InnerTube API for Video.get() and Video.getFormats(), meanwhile we use HTML parsing on Video.getInfo()\nYou can set get_upload_date ONLY TO Video.get(), as you don't get info with Video.getFormats()\n'''\nvideo = Video.get('https://www.youtube.com/watch?v=z0GKGpObgPY', mode = ResultMode.json, get_upload_date=True)\nprint(video)\nvideoInfo = Video.getInfo('https://youtu.be/z0GKGpObgPY', mode = ResultMode.json)\nprint(videoInfo)\nvideoFormats = Video.getFormats('z0GKGpObgPY')\nprint(videoFormats)\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n{\n \"id\": \"E07s5ZYygMg\",\n \"title\": \"Harry Styles - Watermelon Sugar (Official Video)\",\n \"viewCount\": {\n \"text\": \"170389228\"\n },\n \"thumbnails\": [\n {\n \"url\": \"https://i.ytimg.com/vi/E07s5ZYygMg/hqdefault.jpg?sqp=-oaymwEiCKgBEF5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLCT6nkbmYf-zbqAFgzF0D9PUhtsOQ\",\n \"width\": 168,\n \"height\": 94\n },\n {\n \"url\": \"https://i.ytimg.com/vi/E07s5ZYygMg/hqdefault.jpg?sqp=-oaymwEiCMQBEG5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLA-JdoctyNp4aaj9dVtR0c6l5RDVw\",\n \"width\": 196,\n \"height\": 110\n },\n {\n \"url\": \"https://i.ytimg.com/vi/E07s5ZYygMg/hqdefault.jpg?sqp=-oaymwEjCPYBEIoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLBquHs9OWY5Dy1nE_syglwKP6-pMw\",\n \"width\": 246,\n \"height\": 138\n },\n {\n \"url\": \"https://i.ytimg.com/vi/E07s5ZYygMg/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDSjHwdHxt9aU8NTojucGLp4PurTA\",\n \"width\": 336,\n \"height\": 188\n },\n {\n \"url\": \"https://i.ytimg.com/vi/E07s5ZYygMg/maxresdefault.jpg?v=5ebedc0c\",\n \"width\": 1920,\n \"height\": 1080\n }\n ],\n \"description\": \"This video is dedicated to touching.\\nListen to Harry Styles\\u2019 new album \\u2018Fine Line\\u2019 now: https://HStyles.lnk.to/FineLineAY \\n\\nFollow Harry Styles:\\nFacebook: https://HarryStyles.lnk.to/followFI\\nInstagram: https://HarryStyles.lnk.to/followII\\nTwitter: https://HarryStyles.lnk.to/followTI\\nWebsite: https://HarryStyles.lnk.to/followWI\\nSpotify: https://HarryStyles.lnk.to/followSI\\nYouTube: https://HarryStyles.lnk.to/subscribeYD\\n\\nLyrics: \\n\\nTastes like strawberries\\nOn a summer evening\\nAnd it sounds just like a song\\nI want more berries\\nAnd that summer feeling\\nIt\\u2019s so wonderful and warm\\nBreathe me in\\nBreathe me out\\nI don\\u2019t know if I could ever go without\\nI\\u2019m just thinking out loud\\nI don\\u2019t know if I could ever go without\\n \\nWatermelon sugar high\\nWatermelon sugar high\\nWatermelon sugar high\\nWatermelon sugar high\\nWatermelon sugar\\n \\nStrawberries\\nOn a summer evening\\nBaby, you\\u2019re the end of June\\nI want your belly\\nAnd that summer feeling\\nGetting washed away in you\\nBreathe me in\\nBreathe me out\\nI don\\u2019t know if I could ever go without\\n \\nWatermelon sugar high\\n \\nI just wanna taste it\\nI just wanna taste it\\nWatermelon sugar high\\n \\nTastes like strawberries\\nOn a summer evening\\nAnd it sounds just like a song\\nI want your belly\\nAnd that summer feeling\\nI don\\u2019t know if I could ever go without\\n \\nWatermelon sugar high\\n \\nI just wanna taste it\\nI just wanna taste it\\nWatermelon sugar high\\nI just wanna taste it\\nI just wanna taste it\\nWatermelon sugar high\\n \\nWatermelon Sugar\\n\\n#HarryStyles #WatermelonSugar #FineLine\",\n \"channel\": {\n \"name\": \"HarryStylesVEVO\",\n \"id\": \"UCbOCbp5gXL8jigIBZLqMPrw\",\n \"link\": \"https://www.youtube.com/channel/UCbOCbp5gXL8jigIBZLqMPrw\"\n },\n \"averageRating\": 4.9043722,\n \"keywords\": [\n \"Fine Line\",\n \"Harry Styles Fine Line\",\n \"New Harry Styles\",\n \"Harry Styles Album\",\n \"HS2\",\n \"One Direction\",\n \"Eroda\",\n \"HStyles\",\n \"HarryStyles\",\n \"New HS\",\n \"Watermelon\",\n \"Sugar\",\n \"Watermlon Sugar\",\n \"Harry Styles Watermelon Sugar\",\n \"Fine Line Watermelon Sugar\",\n \"Watermelon Sugar Fine Line\",\n \"Harry Styles Watermelon Sguar Official Audio\",\n \"Harry Styles Watermelon Sugar Song\",\n \"HS Watermelon Sugar\",\n \"Harry Styles Watermelon Sugar Video\",\n \"Harry Styles Watermelon Sugar Official Video\",\n \"Harry\"\n ],\n \"link\": \"https://www.youtube.com/watch?v=E07s5ZYygMg\",\n \"streamingData\": [\n {\n \"adaptiveFormats\": [\n {\n \"itag\": 137,\n \"mimeType\": \"video/mp4; codecs=\\\"avc1.640028\\\"\",\n \"bitrate\": 4517689,\n \"width\": 1920,\n \"height\": 1080,\n \"initRange\": {\n \"start\": \"0\",\n \"end\": \"740\"\n },\n \"indexRange\": {\n \"start\": \"741\",\n \"end\": \"1228\"\n },\n \"lastModified\": \"1601811652909447\",\n \"contentLength\": \"75694686\",\n \"quality\": \"hd1080\",\n \"fps\": 24,\n \"qualityLabel\": \"1080p\",\n \"projectionType\": \"RECTANGULAR\",\n \"averageBitrate\": 3207181,\n \"approxDurationMs\": \"188813\",\n \"signatureCipher\": \"s=F%3DX%3DgIkn_MWCUvQZ__3tR_7gPNDBeOz8n9M0WGxNtIZ6zwxAiA-VALQ9F5bz%3DW8I_Z8WfXPLHjEGEn_JRVVu7BcNJJfjKAhIARw8JQ0qOAAOAQ&sp=sig&url=https://r7---sn-gwpa-5bge.googlevideo.com/videoplayback%3Fexpire%3D1609521167%26ei%3DrwPvX6ayN7GImgel4b2YDg%26ip%3D132.154.228.240%26id%3Do-AB56znPv_llgJ0v0XuIn4mf-4F2feyfn78hi9AowVgJP%26itag%3D137%26aitags%3D133%252C134%252C135%252C136%252C137%252C160%252C242%252C243%252C244%252C247%252C248%252C278%252C394%252C395%252C396%252C397%252C398%252C399%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DCl%26mm%3D31%252C29%26mn%3Dsn-gwpa-5bge%252Csn-gwpa-qxay%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D7%26pcm2cms%3Dyes%26pl%3D19%26gcr%3Din%26initcwndbps%3D156250%26vprv%3D1%26mime%3Dvideo%252Fmp4%26ns%3DAmm7Bly72tYhQYuUBTu4ougF%26gir%3Dyes%26clen%3D75694686%26dur%3D188.813%26lmt%3D1601811652909447%26mt%3D1609499069%26fvip%3D7%26keepalive%3Dyes%26c%3DWEB%26txp%3D5535432%26n%3DRBQO4tIQGFK2ymlT%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cgcr%252Cvprv%252Cmime%252Cns%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRQIgTGJdeFFnVZy97rzAeBnJCSdcY7KWBCa21RQ9ZvkH0KsCIQD1-Vzcj53p39l_DWtK1b69VjQmtBi_SIZOZD0hzXHJNA%253D%253D\"\n },\n {\n \"itag\": 248,\n \"mimeType\": \"video/webm; codecs=\\\"vp9\\\"\",\n \"bitrate\": 2677426,\n \"width\": 1920,\n \"height\": 1080,\n \"initRange\": {\n \"start\": \"0\",\n \"end\": \"219\"\n },\n \"indexRange\": {\n \"start\": \"220\",\n \"end\": \"861\"\n },\n \"lastModified\": \"1594499920972798\",\n \"contentLength\": \"54314997\",\n \"quality\": \"hd1080\",\n \"fps\": 24,\n \"qualityLabel\": \"1080p\",\n \"projectionType\": \"RECTANGULAR\",\n \"averageBitrate\": 2301324,\n \"colorInfo\": {\n \"primaries\": \"COLOR_PRIMARIES_BT709\",\n \"transferCharacteristics\": \"COLOR_TRANSFER_CHARACTERISTICS_BT709\",\n \"matrixCoefficients\": \"COLOR_MATRIX_COEFFICIENTS_BT709\"\n },\n \"approxDurationMs\": \"188813\",\n \"signatureCipher\": \"s=4WSWyDZ4VUW0FxNi5blaiF4ilQNYR-3uChA822Y034mMGICMPJy_OPOcgmaH7OjHiz7P3SA11EXoi7xWDBddADzQhXgIARw8JQ0qOAAOAA&sp=sig&url=https://r7---sn-gwpa-5bge.googlevideo.com/videoplayback%3Fexpire%3D1609521167%26ei%3DrwPvX6ayN7GImgel4b2YDg%26ip%3D132.154.228.240%26id%3Do-AB56znPv_llgJ0v0XuIn4mf-4F2feyfn78hi9AowVgJP%26itag%3D248%26aitags%3D133%252C134%252C135%252C136%252C137%252C160%252C242%252C243%252C244%252C247%252C248%252C278%252C394%252C395%252C396%252C397%252C398%252C399%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DCl%26mm%3D31%252C29%26mn%3Dsn-gwpa-5bge%252Csn-gwpa-qxay%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D7%26pcm2cms%3Dyes%26pl%3D19%26gcr%3Din%26initcwndbps%3D156250%26vprv%3D1%26mime%3Dvideo%252Fwebm%26ns%3DAmm7Bly72tYhQYuUBTu4ougF%26gir%3Dyes%26clen%3D54314997%26dur%3D188.813%26lmt%3D1594499920972798%26mt%3D1609499069%26fvip%3D7%26keepalive%3Dyes%26c%3DWEB%26txp%3D5535432%26n%3DRBQO4tIQGFK2ymlT%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cgcr%252Cvprv%252Cmime%252Cns%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRgIhAJHI4m9CrBPc-vEl_qXPYvACMjDAgC7dGWk5cZ5yc4DTAiEA36ijZkSFmCngvJZ5ULpRFJLGB3wWohsxABHZJL_q4_c%253D\"\n },\n {\n \"itag\": 399,\n \"mimeType\": \"video/mp4; codecs=\\\"av01.0.08M.08\\\"\",\n \"bitrate\": 2252425,\n \"width\": 1920,\n \"height\": 1080,\n \"initRange\": {\n \"start\": \"0\",\n \"end\": \"699\"\n },\n \"indexRange\": {\n \"start\": \"700\",\n \"end\": \"1187\"\n },\n \"lastModified\": \"1602396935824004\",\n \"contentLength\": \"40536309\",\n \"quality\": \"hd1080\",\n \"fps\": 24,\n \"qualityLabel\": \"1080p\",\n \"projectionType\": \"RECTANGULAR\",\n \"averageBitrate\": 1717521,\n \"colorInfo\": {\n \"primaries\": \"COLOR_PRIMARIES_BT709\",\n \"transferCharacteristics\": \"COLOR_TRANSFER_CHARACTERISTICS_BT709\",\n \"matrixCoefficients\": \"COLOR_MATRIX_COEFFICIENTS_BT709\"\n },\n \"approxDurationMs\": \"188813\",\n \"signatureCipher\": \"s=ZJwJxM3AbUoW4wiucKj-hgbD-KpvS21BYBD1lsDZa7SPCICMZo9flYaa2ePw-6CdA1a_DwNtjbk4KXaTb0U1btiIfDgIARw8JQ0qOAAOAA&sp=sig&url=https://r7---sn-gwpa-5bge.googlevideo.com/videoplayback%3Fexpire%3D1609521167%26ei%3DrwPvX6ayN7GImgel4b2YDg%26ip%3D132.154.228.240%26id%3Do-AB56znPv_llgJ0v0XuIn4mf-4F2feyfn78hi9AowVgJP%26itag%3D399%26aitags%3D133%252C134%252C135%252C136%252C137%252C160%252C242%252C243%252C244%252C247%252C248%252C278%252C394%252C395%252C396%252C397%252C398%252C399%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DCl%26mm%3D31%252C29%26mn%3Dsn-gwpa-5bge%252Csn-gwpa-qxay%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D7%26pcm2cms%3Dyes%26pl%3D19%26gcr%3Din%26initcwndbps%3D156250%26vprv%3D1%26mime%3Dvideo%252Fmp4%26ns%3DAmm7Bly72tYhQYuUBTu4ougF%26gir%3Dyes%26clen%3D40536309%26dur%3D188.813%26lmt%3D1602396935824004%26mt%3D1609499069%26fvip%3D7%26keepalive%3Dyes%26c%3DWEB%26txp%3D5531432%26n%3DRBQO4tIQGFK2ymlT%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cgcr%252Cvprv%252Cmime%252Cns%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRAIgB9Jm-n4o3HkYm1cr2pVG9NLb_7Tmp22lXGwKkWSiwZ0CIBKSMK5PqbPHniDqOFCPoqa4eT_Y8hQDSWM7k_V8A99p\"\n },\n {\n \"itag\": 136,\n \"mimeType\": \"video/mp4; codecs=\\\"avc1.4d401f\\\"\",\n \"bitrate\": 1247138,\n \"width\": 1280,\n \"height\": 720,\n \"initRange\": {\n \"start\": \"0\",\n \"end\": \"738\"\n },\n \"indexRange\": {\n \"start\": \"739\",\n \"end\": \"1226\"\n },\n \"lastModified\": \"1601811623765749\",\n \"contentLength\": \"18074560\",\n \"quality\": \"hd720\",\n \"fps\": 24,\n \"qualityLabel\": \"720p\",\n \"projectionType\": \"RECTANGULAR\",\n \"averageBitrate\": 765818,\n \"approxDurationMs\": \"188813\",\n \"signatureCipher\": \"s=y%3Dp%3DgBSUCkvVl7q-hefXAmtE95tx4YYx2uLiqm0fDKUL2hBCQICspkvlYjtn%3DvRH0iGB5p9zloazr8oDbuPc5yFs81PaJfgIARw8JQ0qOAAOAQ&sp=sig&url=https://r7---sn-gwpa-5bge.googlevideo.com/videoplayback%3Fexpire%3D1609521167%26ei%3DrwPvX6ayN7GImgel4b2YDg%26ip%3D132.154.228.240%26id%3Do-AB56znPv_llgJ0v0XuIn4mf-4F2feyfn78hi9AowVgJP%26itag%3D136%26aitags%3D133%252C134%252C135%252C136%252C137%252C160%252C242%252C243%252C244%252C247%252C248%252C278%252C394%252C395%252C396%252C397%252C398%252C399%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DCl%26mm%3D31%252C29%26mn%3Dsn-gwpa-5bge%252Csn-gwpa-qxay%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D7%26pcm2cms%3Dyes%26pl%3D19%26gcr%3Din%26initcwndbps%3D156250%26vprv%3D1%26mime%3Dvideo%252Fmp4%26ns%3DAmm7Bly72tYhQYuUBTu4ougF%26gir%3Dyes%26clen%3D18074560%26dur%3D188.813%26lmt%3D1601811623765749%26mt%3D1609499069%26fvip%3D7%26keepalive%3Dyes%26c%3DWEB%26txp%3D5535432%26n%3DRBQO4tIQGFK2ymlT%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cgcr%252Cvprv%252Cmime%252Cns%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRAIgKiY0iSKg4drfMpUtmsfY4DqN0dzkVo9z0NvbppT-vAUCIDajIym2RvvvqEqxK9XltraU3992scXuP8aZD_cXNK_0\"\n },\n ],\n \"formats\": [\n {\n \"itag\": 18,\n \"mimeType\": \"video/mp4; codecs=\\\"avc1.42001E, mp4a.40.2\\\"\",\n \"bitrate\": 635291,\n \"width\": 640,\n \"height\": 360,\n \"lastModified\": \"1594495537943093\",\n \"contentLength\": \"14993923\",\n \"quality\": \"medium\",\n \"fps\": 24,\n \"qualityLabel\": \"360p\",\n \"projectionType\": \"RECTANGULAR\",\n \"averageBitrate\": 635096,\n \"audioQuality\": \"AUDIO_QUALITY_LOW\",\n \"approxDurationMs\": \"188871\",\n \"audioSampleRate\": \"44100\",\n \"audioChannels\": 2,\n \"signatureCipher\": \"s=AsPsztt4ZltrQC0ijKLX83bx8smNjCLHwb5D-pJLJvDGAmAEiAhvbstJR8js%3D7g7hscPbPtwrjUDtzwb1GgpkTG53d9kMAhIARw8JQ0qOAAOAg&sp=sig&url=https://r7---sn-gwpa-5bge.googlevideo.com/videoplayback%3Fexpire%3D1609521167%26ei%3DrwPvX6ayN7GImgel4b2YDg%26ip%3D132.154.228.240%26id%3Do-AB56znPv_llgJ0v0XuIn4mf-4F2feyfn78hi9AowVgJP%26itag%3D18%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DCl%26mm%3D31%252C29%26mn%3Dsn-gwpa-5bge%252Csn-gwpa-qxay%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D7%26pcm2cms%3Dyes%26pl%3D19%26gcr%3Din%26initcwndbps%3D156250%26vprv%3D1%26mime%3Dvideo%252Fmp4%26ns%3Dw-Sn-YFRtfT0kLnFKpo3EA4F%26gir%3Dyes%26clen%3D14993923%26ratebypass%3Dyes%26dur%3D188.871%26lmt%3D1594495537943093%26mt%3D1609499069%26fvip%3D7%26c%3DWEB%26txp%3D5531432%26n%3DV2sNxp4tEzNJkZtb%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Citag%252Csource%252Crequiressl%252Cgcr%252Cvprv%252Cmime%252Cns%252Cgir%252Cclen%252Cratebypass%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRQIgbrfk-x_xucwjZedmoR8sR3UQHP4OUd1jDUL_91palCICIQC0w6urClsmCBTpK27I5DIKKED9T_ci6blRj-c8rSD86A%253D%253D\"\n }\n ],\n }\n ],\n \"expiresInSeconds\": \"21540\"\n}\n```\n\n</details>\n\n#### Getting playlist information using link\n\n```python\n'''\nGetting information about playlist or videos in it using its link.\n\n`Playlist.get` method will give both information & formats of the playlist\n`Playlist.getInfo` method will give only information about the playlist.\n`Playlist.getVideos` method will give only videos in the playlist.\n\n'''\nplaylist = Playlist.get('https://www.youtube.com/playlist?list=PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK', mode = ResultMode.json)\nprint(playlist)\nplaylistInfo = Playlist.getInfo('https://www.youtube.com/playlist?list=PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK', mode = ResultMode.json)\nprint(playlistInfo)\nplaylistVideos = Playlist.getVideos('https://www.youtube.com/playlist?list=PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK')\nprint(playlistVideos)\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n{\n \"id\": \"PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK\",\n \"title\": \"NCS: House\",\n \"videoCount\": \"209\",\n \"viewCount\": \"155,772,054 views\",\n \"thumbnails\": {\n \"thumbnails\": [\n {\n \"url\": \"https://i.ytimg.com/vi/LIvSF0fQPJc/hqdefault.jpg?sqp=-oaymwEWCKgBEF5IWvKriqkDCQgBFQAAiEIYAQ==&rs=AOn4CLDHZYoB-WNHmvT3CZy6SpdqygsO4A\",\n \"width\": 168,\n \"height\": 94\n },\n {\n \"url\": \"https://i.ytimg.com/vi/LIvSF0fQPJc/hqdefault.jpg?sqp=-oaymwEWCMQBEG5IWvKriqkDCQgBFQAAiEIYAQ==&rs=AOn4CLACCxCIRvCn65_OS1z_4tLAq5Jb8Q\",\n \"width\": 196,\n \"height\": 110\n },\n {\n \"url\": \"https://i.ytimg.com/vi/LIvSF0fQPJc/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBt00cYTIVBdrnHsSNLinhq7meCpQ\",\n \"width\": 246,\n \"height\": 138\n },\n {\n \"url\": \"https://i.ytimg.com/vi/LIvSF0fQPJc/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBFaqqO6kCAuqya1SIJo5Cf45Ndxg\",\n \"width\": 336,\n \"height\": 188\n }\n ]\n },\n \"link\": \"https://www.youtube.com/playlist?list=PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK\",\n \"channel\": {\n \"name\": \"NoCopyrightSounds\",\n \"id\": \"UC_aEa8K-EOJ3D6gOs7HcyNg\",\n \"thumbnails\": [\n {\n \"url\": \"https://yt3.ggpht.com/ytc/AAUvwnhwQpPaPL_w-2bQM3TXQN0bdsQQSeEW74TDNXDfHQ=s48-c-k-c0x00ffffff-no-rj\",\n \"width\": 48,\n \"height\": 48\n },\n {\n \"url\": \"https://yt3.ggpht.com/ytc/AAUvwnhwQpPaPL_w-2bQM3TXQN0bdsQQSeEW74TDNXDfHQ=s88-c-k-c0x00ffffff-no-rj\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"https://yt3.ggpht.com/ytc/AAUvwnhwQpPaPL_w-2bQM3TXQN0bdsQQSeEW74TDNXDfHQ=s176-c-k-c0x00ffffff-no-rj\",\n \"width\": 176,\n \"height\": 176\n }\n ],\n \"link\": \"https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg\"\n },\n \"videos\": [\n {\n \"id\": \"gQjAEbWZEgU\",\n \"title\": \"Mangoo - Happi (ft. bby ivy) [NCS Release]\",\n \"thumbnails\": [\n {\n \"url\": \"https://i.ytimg.com/vi/gQjAEbWZEgU/hqdefault.jpg?sqp=-oaymwEiCKgBEF5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLB8IrOoqB1vSj2SMptjc5pG8fyKOQ\",\n \"width\": 168,\n \"height\": 94\n },\n {\n \"url\": \"https://i.ytimg.com/vi/gQjAEbWZEgU/hqdefault.jpg?sqp=-oaymwEiCMQBEG5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLDjI1SuDEFCqskIfGEqr8HZi3v54Q\",\n \"width\": 196,\n \"height\": 110\n },\n {\n \"url\": \"https://i.ytimg.com/vi/gQjAEbWZEgU/hqdefault.jpg?sqp=-oaymwEjCPYBEIoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLCAFP_0cHcbUnt_eJwozqM0mOPkHg\",\n \"width\": 246,\n \"height\": 138\n },\n {\n \"url\": \"https://i.ytimg.com/vi/gQjAEbWZEgU/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLD4WajUJ8zGjQDuwT6uHBbvZzaCPA\",\n \"width\": 336,\n \"height\": 188\n }\n ],\n \"channel\": {\n \"name\": \"NoCopyrightSounds\",\n \"id\": \"UC_aEa8K-EOJ3D6gOs7HcyNg\",\n \"link\": \"https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg\"\n },\n \"duration\": \"2:41\",\n \"accessibility\": {\n \"title\": \"Mangoo - Happi (ft. bby ivy) [NCS Release] by NoCopyrightSounds 7 months ago 2 minutes, 41 seconds\",\n \"duration\": \"2 minutes, 41 seconds\"\n },\n \"link\": \"https://www.youtube.com/watch?v=gQjAEbWZEgU\"\n },\n {\n \"id\": \"2Kh4y7pJjfQ\",\n \"title\": \"MAGNUS x Unread - Cool (feat. Alessia Labate) [NCS Release]\",\n \"thumbnails\": [\n {\n \"url\": \"https://i.ytimg.com/vi/2Kh4y7pJjfQ/hqdefault.jpg?sqp=-oaymwEiCKgBEF5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLDBtmR1aLs9b5ULxWBpTitm2qfZgQ\",\n \"width\": 168,\n \"height\": 94\n },\n {\n \"url\": \"https://i.ytimg.com/vi/2Kh4y7pJjfQ/hqdefault.jpg?sqp=-oaymwEiCMQBEG5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLA1_KVxp3eun3REQPZM3qgdhGGKhw\",\n \"width\": 196,\n \"height\": 110\n },\n {\n \"url\": \"https://i.ytimg.com/vi/2Kh4y7pJjfQ/hqdefault.jpg?sqp=-oaymwEjCPYBEIoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDXxtiCKSoQ7qWsmbyK60HytHlKNg\",\n \"width\": 246,\n \"height\": 138\n },\n {\n \"url\": \"https://i.ytimg.com/vi/2Kh4y7pJjfQ/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLAO6xgKiU0ObnMbcsaLgd5Sp-HA_Q\",\n \"width\": 336,\n \"height\": 188\n }\n ],\n \"channel\": {\n \"name\": \"NoCopyrightSounds\",\n \"id\": \"UC_aEa8K-EOJ3D6gOs7HcyNg\",\n \"link\": \"https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg\"\n },\n \"duration\": \"2:22\",\n \"accessibility\": {\n \"title\": \"MAGNUS x Unread - Cool (feat. Alessia Labate) [NCS Release] by NoCopyrightSounds 8 months ago 2 minutes, 22 seconds\",\n \"duration\": \"2 minutes, 22 seconds\"\n },\n \"link\": \"https://www.youtube.com/watch?v=2Kh4y7pJjfQ\"\n },\n {\n \"id\": \"7dw8wphQ118\",\n \"title\": \"Jim Yosef - Let You Go [NCS Release]\",\n \"thumbnails\": [\n {\n \"url\": \"https://i.ytimg.com/vi/7dw8wphQ118/hqdefault.jpg?sqp=-oaymwEiCKgBEF5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLAI2xKhoLZTQSKy_E2qLI8vmmLwzQ\",\n \"width\": 168,\n \"height\": 94\n },\n {\n \"url\": \"https://i.ytimg.com/vi/7dw8wphQ118/hqdefault.jpg?sqp=-oaymwEiCMQBEG5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLBm88JTaXMyMXgPpH0ANOP-5M7cdg\",\n \"width\": 196,\n \"height\": 110\n },\n {\n \"url\": \"https://i.ytimg.com/vi/7dw8wphQ118/hqdefault.jpg?sqp=-oaymwEjCPYBEIoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDKDPLNxX6SpNNSCmp4oPA7gXZh2w\",\n \"width\": 246,\n \"height\": 138\n },\n {\n \"url\": \"https://i.ytimg.com/vi/7dw8wphQ118/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLCoilNTqi_D4Xu-EQFbiqcjyuewUw\",\n \"width\": 336,\n \"height\": 188\n }\n ],\n \"channel\": {\n \"name\": \"NoCopyrightSounds\",\n \"id\": \"UC_aEa8K-EOJ3D6gOs7HcyNg\",\n \"link\": \"https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg\"\n },\n \"duration\": \"3:40\",\n \"accessibility\": {\n \"title\": \"Jim Yosef - Let You Go [NCS Release] by NoCopyrightSounds 9 months ago 3 minutes, 40 seconds\",\n \"duration\": \"3 minutes, 40 seconds\"\n },\n \"link\": \"https://www.youtube.com/watch?v=7dw8wphQ118\"\n }\n ]\n}\n```\n\n</details>\n\n#### Get all videos of a channel\nYou can use a Playlist class for that, alongside some helpful functions.\n```python\nfrom youtubesearchpython import *\n\nchannel_id = \"UC_aEa8K-EOJ3D6gOs7HcyNg\"\nplaylist = Playlist(playlist_from_channel_id(channel_id))\n\nprint(f'Videos Retrieved: {len(playlist.videos)}')\n\nwhile playlist.hasMoreVideos:\n print('Getting more videos...')\n playlist.getNextVideos()\n print(f'Videos Retrieved: {len(playlist.videos)}')\n\nprint('Found all the videos.')\n```\n\n<details>\n <summary> Example Result</summary>\n\n```bash\nVideos Retrieved: 100\nGetting more videos...\nVideos Retrieved: 200\nGetting more videos...\nVideos Retrieved: 300\nGetting more videos...\nVideos Retrieved: 400\nGetting more videos...\nVideos Retrieved: 500\nGetting more videos...\nVideos Retrieved: 600\nGetting more videos...\nVideos Retrieved: 700\nGetting more videos...\nVideos Retrieved: 800\nGetting more videos...\nVideos Retrieved: 900\nGetting more videos...\nVideos Retrieved: 1000\nGetting more videos...\nVideos Retrieved: 1002\nFound all the videos.\n```\n\n</details>\n\n#### More to the playlists\n\nYou can directly instanciate the `Playlist` class as follows to access its information & videos in the `info` and `videos` fields respectively.\n\nYouTube offers only 100 videos in a single request, for getting more videos present in the playlist, you can check `hasMoreVideos` bool to see if playlist contains more videos.\nIf playlist has more videos, then you can call `getNextVideos` to fetch more videos.\n\nExample below demonstrates a simple way to retrive all videos of a playlist.\n\n```python\nfrom youtubesearchpython import *\n\nplaylist = Playlist('https://www.youtube.com/playlist?list=PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK')\n\nprint(f'Videos Retrieved: {len(playlist.videos)}')\n\nwhile playlist.hasMoreVideos:\n print('Getting more videos...')\n playlist.getNextVideos()\n print(f'Videos Retrieved: {len(playlist.videos)}')\n\nprint('Found all the videos.')\n```\n\n<details>\n <summary> Example Result</summary>\n\n```bash\nVideos Retrieved: 100\nGetting more videos...\nVideos Retrieved: 200\nGetting more videos...\nVideos Retrieved: 209\nFound all the videos.\n```\n\n</details>\n\n#### Getting search suggestions\n\n```python\nfrom youtubesearchpython import Suggestions\n\nsuggestions = Suggestions(language = 'en', region = 'US')\n\nprint(suggestions.get('NoCopyrightSounds', mode = ResultMode.json))\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n{\n \"result\": [\n \"nocopyrightsounds\",\n \"nocopyrightsounds best songs\",\n \"nocopyrightsounds gaming music\",\n \"nocopyrightsounds alan walker\",\n \"nocopyrightsounds fearless\",\n \"nocopyrightsounds invincible\",\n \"nocopyrightsounds background music\",\n \"nocopyrightsounds instrumental\",\n \"nocopyrightsounds fade\",\n \"nocopyrightsounds playlist\",\n \"nocopyrightsounds on and on\",\n \"nocopyrightsounds elektronomia\",\n \"nocopyrightsounds stronger\",\n \"nocopyrightsounds christmas\"\n ]\n}\n```\n\n</details>\n\n#### Getting videos by hashtag\n\n```python\nfrom youtubesearchpython import Hashtag\n\nhashtag = Hashtag('ncs', limit = 1)\n\nprint(hashtag.result())\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n{\n \"result\": [\n {\n \"type\": \"video\",\n \"id\": \"c9FF4Tfj2w8\",\n \"title\": \"Ascence - About You [NCS 1 HOUR]\",\n \"publishedTime\": \"1 year ago\",\n \"duration\": \"1:00:00\",\n \"viewCount\": {\n \"text\": \"226,354 views\",\n \"short\": \"226K views\"\n },\n \"thumbnails\": [\n {\n \"url\": \"https://i.ytimg.com/vi/c9FF4Tfj2w8/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLA8V3x_PigkymVQxQcptr8Wfz20-A\",\n \"width\": 168,\n \"height\": 94\n },\n {\n \"url\": \"https://i.ytimg.com/vi/c9FF4Tfj2w8/hqdefault.jpg?sqp=-oaymwEbCMQBEG5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLABh5Ylb5wbuulOAWLcSYtfYQKiAQ\",\n \"width\": 196,\n \"height\": 110\n },\n {\n \"url\": \"https://i.ytimg.com/vi/c9FF4Tfj2w8/hqdefault.jpg?sqp=-oaymwEcCPYBEIoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAykmTivOgjlW6a4tKWnLJpL9yqKw\",\n \"width\": 246,\n \"height\": 138\n },\n {\n \"url\": \"https://i.ytimg.com/vi/c9FF4Tfj2w8/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLC8qRkotPyH9kGGHe29QuyOh-F9KA\",\n \"width\": 336,\n \"height\": 188\n }\n ],\n \"richThumbnail\": {\n \"url\": \"https://i.ytimg.com/an_webp/c9FF4Tfj2w8/mqdefault_6s.webp?du=3000&sqp=CPGE-YgG&rs=AOn4CLAJAC5zmDOtySflLFMQpAoaPUqHjA\",\n \"width\": 320,\n \"height\": 180\n },\n \"descriptionSnippet\": null,\n \"channel\": {\n \"name\": \"Good Vibes Music\",\n \"id\": \"UChCPI0uvKwrkYhTEx8UVrnQ\",\n \"thumbnails\": [\n {\n \"url\": \"https://yt3.ggpht.com/ytc/AKedOLSFYY0mvwL0DbRzddMAQdbgFshM42R5byhI9FiEBQ=s68-c-k-c0x00ffffff-no-rj\",\n \"width\": 68,\n \"height\": 68\n }\n ],\n \"link\": \"https://www.youtube.com/channel/UChCPI0uvKwrkYhTEx8UVrnQ\"\n },\n \"accessibility\": {\n \"title\": \"Ascence - About You [NCS 1 HOUR] by Good Vibes Music 1 year ago 1 hour 226,354 views\",\n \"duration\": \"1 hour\"\n },\n \"link\": \"https://www.youtube.com/watch?v=c9FF4Tfj2w8\",\n \"shelfTitle\": null\n }\n ]\n}\n```\n\n</details>\n\n#### Getting videos and playlists in specific channel\n\n```python\nfrom youtubesearchpython import ChannelSearch,ResultMode\n\nsearch = ChannelSearch('Watermelon Sugar', \"UCZFWPqqPkFlNwIxcpsLOwew\")\nprint(search.result(mode = ResultMode.json))\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n{\n \"result\": [\n {\n \"id\": \"WMcIfZuRuU8\",\n \"thumbnails\": {\n \"normal\": [\n {\n \"url\": \"https://i.ytimg.com/vi/WMcIfZuRuU8/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLClFg6C1r5NfTQy7TYUq6X5qHUmPA\",\n \"width\": 168,\n \"height\": 94\n },\n {\n \"url\": \"https://i.ytimg.com/vi/WMcIfZuRuU8/hqdefault.jpg?sqp=-oaymwEbCMQBEG5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLAoOyftwY0jLV4geWb5hejULYp3Zw\",\n \"width\": 196,\n \"height\": 110\n },\n {\n \"url\": \"https://i.ytimg.com/vi/WMcIfZuRuU8/hqdefault.jpg?sqp=-oaymwEcCPYBEIoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCdqkhn7JDwLvRtTNx3jq-olz7k-Q\",\n \"width\": 246,\n \"height\": 138\n },\n {\n \"url\": \"https://i.ytimg.com/vi/WMcIfZuRuU8/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAhYedsqBFKI0Ra2qzIv9cVoZhfKQ\",\n \"width\": 336,\n \"height\": 188\n }\n ],\n \"rich\": null\n },\n \"title\": \"Harry Styles \\u2013 Watermelon Sugar (Lost Tour Visual)\",\n \"descriptionSnippet\": \"This video is dedicated to touching.\\nListen to Harry Styles\\u2019 new album \\u2018Fine Line\\u2019 now: https://HStyles.lnk.to/FineLineAY \\n\\nFollow Harry Styles:\\nFacebook: https://HarryStyles.lnk.to/followFI...\",\n \"uri\": \"/watch?v=WMcIfZuRuU8\",\n \"views\": {\n \"precise\": \"3,888,287 views\",\n \"simple\": \"3.8M views\",\n \"approximate\": \"3.8 million views\"\n },\n \"duration\": {\n \"simpleText\": \"2:55\",\n \"text\": \"2 minutes, 55 seconds\"\n },\n \"published\": \"10 months ago\",\n \"channel\": {\n \"name\": \"Harry Styles\",\n \"thumbnails\": [\n {\n \"url\": \"https://yt3.ggpht.com/ytc/AAUvwnhR81ocC_KalYEk5ItnJcfMBqaiIpuM1B0lJyg4Rw=s88-c-k-c0x00ffffff-no-rj\",\n \"width\": 68,\n \"height\": 68\n }\n ]\n },\n \"type\": \"video\"\n },\n ]\n}\n```\n\n</details>\n\n#### Getting direct stream URL of a video\n\nThis class is able to fetch video URLs without any additional web requests (that's fast), as one might already have same response at the time of showing it to the user.\n\nFor making use of this functionality, you must install [yt-dlp](https://github.com/yt-dlp/yt-dlp) as a dependency.\nStreamURLFetcher makes slight improvements & changes to YouTube class from [yt-dlp](https://github.com/yt-dlp/yt-dlp).\n\n```py\nfrom youtubesearchpython import *\nfetcher = StreamURLFetcher()\nvideo = Video.get(\"https://www.youtube.com/watch?v=aqz-KE-bpKQ\")\nurl = fetcher.get(video, 251)\nprint(url)\n\n'''\n`getAll` method returns all stream URLs unlike `get` method which needs itag in its second parameter.\n'''\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n\"https://r6---sn-gwpa-5bgk.googlevideo.com/videoplayback?expire=1610798125&ei=zX8CYITXEIGKz7sP9MWL0AE&ip=2409%3A4053%3A803%3A2b22%3Adc68%3Adfb9%3Aa676%3A26a3&id=o-APBakKSE2_eMDMegtCmeWXfuhhUfAzJTmOCWj4lkEjAM&itag=251&source=youtube&requiressl=yes&mh=aP&mm=31%2C29&mn=sn-gwpa-5bgk%2Csn-gwpa-qxad&ms=au%2Crdu&mv=m&mvi=6&pl=36&initcwndbps=146250&vprv=1&mime=audio%2Fwebm&ns=ULL4mkMO31KDtEhOjkOrmpkF&gir=yes&clen=10210834&dur=634.601&lmt=1544629945422176&mt=1610776131&fvip=6&keepalive=yes&c=WEB&txp=5511222&n=uEjSqtzBZaJyVn&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgKKIEiwQTgXsdKPEyOckgVPs_LMH6KJoeaYmZic_lelECIHXHs1ZnSP5mgtpffNlIMJM3DhxcvDbA-4udFFE6AmVP&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAPmhL745RYeL_ffgUJk_xJLC-8riXKMylLTLA_pITYWWAiB2qUIXur8ThW7cLfQ73mIVK61mMZc2ncK6FZWjUHGcUw%3D%3D\"\n```\n\n</details>\n\n#### Get comments of a video\nYou can use a Comments class for that.\n```python\nfrom youtubesearchpython import *\n\n# You can either pass an ID or a URL\nvideo_id = \"_ZdsmLgCVdU\"\ncomments = Comments(video_id)\n\nprint(f'Comments Retrieved: {len(comments.comments[\"result\"])}')\n\nwhile comments.hasMoreComments:\n print('Getting more comments...')\n comments.getNextComments()\n print(f'Comments Retrieved: {len(comments.comments[\"result\"])}')\n\nprint('Found all the comments.')\n```\n\n<details>\n <summary> Example Result</summary>\n\n```bash\n20\nGetting more comments...\n40\nGetting more comments...\n60\nGetting more comments...\n80\nGetting more comments...\n100\nGetting more comments...\n...\n```\n\n</details>\n\n#### Get first 20 comments of a video\nYou can use a Comments.get method for that.\n```python\nfrom youtubesearchpython import *\n\n# You can either pass an ID or a URL\nvideo_id = \"_ZdsmLgCVdU\"\ncomments = Comments.get(video_id)\n\nprint(comments)\n```\n\n<details>\n <summary> Example Result</summary>\n\n```bash\n{\n \"result\":[\n {\n \"id\":\"Ugh2UTT69BnjaHgCoAEC\",\n \"author\":{\n \"id\":\"UCBykgwvHh2SX5HH7dVWLkqQ\",\n \"name\":\"Daikaiju Danielle\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSC8WrgmUHF5l6DYEb8jabim9nE0Ko1vQ_KFOly0w=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSC8WrgmUHF5l6DYEb8jabim9nE0Ko1vQ_KFOly0w=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSC8WrgmUHF5l6DYEb8jabim9nE0Ko1vQ_KFOly0w=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"The boy probably represents youth and the pure, free spirit of being young. When you grow up, it's hard to find that spirit again. You have to search for it.\",\n \"published\":\"5 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"5.9K\",\n \"label\":\"5.9K likes\"\n },\n \"replyCount\":81\n },\n {\n \"id\":\"UgzyjWeS_wVmoVrcyVZ4AaABAg\",\n \"author\":{\n \"id\":\"UCMMJk2iiIanIFtTwnLK8XBA\",\n \"name\":\"naomi\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/wzrS0agEf0NBFXvcpQJFF-6BwdciRFqzVf_dmgv4Unk7e9AFA7Sb7K7hsLeXdZsOX26J0J4Y=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/wzrS0agEf0NBFXvcpQJFF-6BwdciRFqzVf_dmgv4Unk7e9AFA7Sb7K7hsLeXdZsOX26J0J4Y=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/wzrS0agEf0NBFXvcpQJFF-6BwdciRFqzVf_dmgv4Unk7e9AFA7Sb7K7hsLeXdZsOX26J0J4Y=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"Strange that I showed this to my brother three days before his death not knowing I would soon relate to it.\",\n \"published\":\"1 year ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"5.2K\",\n \"label\":\"5.2K likes\"\n },\n \"replyCount\":147\n },\n {\n \"id\":\"UgyP3NpP-qA9T80YRVh4AaABAg\",\n \"author\":{\n \"id\":\"UCCekImfpPQw94ZHeQy98S_A\",\n \"name\":\"Noura\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSA9_Di2v12v_MycDkKjvhD8D3dRSt9pyZIcCekeg=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSA9_Di2v12v_MycDkKjvhD8D3dRSt9pyZIcCekeg=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSA9_Di2v12v_MycDkKjvhD8D3dRSt9pyZIcCekeg=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"In Arabic when we want to express how much we love and cherish someone we say \\\"you are my eyes\\\".. And for some reason that line \\\"don\\\\'t you know you got my eyes\\\" makes me really nostalgic and sad.\",\n \"published\":\"1 year ago (edited)\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"3.8K\",\n \"label\":\"3.8K likes\"\n },\n \"replyCount\":65\n },\n {\n \"id\":\"Ugy-JqQw3w3MXwxGZHZ4AaABAg\",\n \"author\":{\n \"id\":\"UC6irqN4Fk_z-CdK47pkLTgQ\",\n \"name\":\"Leo Trombetta\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLTogXyBXEX1LAzehhiYyx9amCWGkcMRCaa3e-pEgg=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLTogXyBXEX1LAzehhiYyx9amCWGkcMRCaa3e-pEgg=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLTogXyBXEX1LAzehhiYyx9amCWGkcMRCaa3e-pEgg=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"As a mother whose had to let her son go for his life to be better, this song is about exactly that. The pain and sacrifice and love and the warm memories you pray they will have of the sweetest moments you've shared when you held them so long ago.. I miss you.\",\n \"published\":\"2 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"2K\",\n \"label\":\"2K likes\"\n },\n \"replyCount\":23\n },\n {\n \"id\":\"Ugwv8lwT4LS906Y9P1p4AaABAg\",\n \"author\":{\n \"id\":\"UClMs_LKpgCPC9acJQpGRcbQ\",\n \"name\":\"Arundhati\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLTHadgrB-BvJ2zqtN9_f2ttscQEH0Sc3awtvg73ug=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLTHadgrB-BvJ2zqtN9_f2ttscQEH0Sc3awtvg73ug=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLTHadgrB-BvJ2zqtN9_f2ttscQEH0Sc3awtvg73ug=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"It\u2019s been 3 years and I still can\u2019t sing that chorus without tearing up\",\n \"published\":\"2 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"1K\",\n \"label\":\"1K likes\"\n },\n \"replyCount\":16\n },\n {\n \"id\":\"Ugx5NiWjHQI1aGWI8ex4AaABAg\",\n \"author\":{\n \"id\":\"UCeuMECoMfhC9Fyn5veduj1w\",\n \"name\":\"dona nova\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLQC9P35p4nKLBaoDkWwsGjQCVrrBs_lPVCNsTQ5oPg=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLQC9P35p4nKLBaoDkWwsGjQCVrrBs_lPVCNsTQ5oPg=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLQC9P35p4nKLBaoDkWwsGjQCVrrBs_lPVCNsTQ5oPg=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"My dad passed away in 2012 and now he communicates to me sometimes through songs. If I ask him a question the next song I hear will have the answer. This year I had to start my life over completely and I have moved across the country away from a toxic person, and then I moved again from the next place I lived from another toxic person, all during the pandemic. I am also legally blind and otherwise disabled so I worried about how I would make it on my own after my losses and divorce. I don't know anybody here and I'm completely alone. This comes after 10 years of loss and change that started with his death. Anyway, When I asked him how could I ever have a life again he sent me this song. He always does. I have been told he is my spirit guide and I can tell when he's here. I love glass animals\",\n \"published\":\"1 year ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"1.6K\",\n \"label\":\"1.6K likes\"\n },\n \"replyCount\":72\n },\n {\n \"id\":\"UgyHLTfBhMAh39IcPAp4AaABAg\",\n \"author\":{\n \"id\":\"UCK8evpEndlyLgjcXTYfOVtQ\",\n \"name\":\"UnforgettableAlice\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSlrVENCyh_Wk6p8UrZAPEIS3pmUnGOiTb2zwIx1g=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSlrVENCyh_Wk6p8UrZAPEIS3pmUnGOiTb2zwIx1g=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSlrVENCyh_Wk6p8UrZAPEIS3pmUnGOiTb2zwIx1g=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"Vocalist/guitarist Dave Bayley explained the story behind this song to Paste magazine: \\\"The idea for this one came from a story someone told me once. They were telling me about their child, and something awful had happened to them. She was crying - but at the same time the memories that they had from that previous life made her so happy - so she was also smiling. That combination of emotions kind of made me feel like my heart was being ripped apart but also optimistic in a weird way. She had found a way to see happiness in this awful thing that had happened to her. That combination of emotions is what this song is getting at.\\\"\",\n \"published\":\"3 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"5.6K\",\n \"label\":\"5.6K likes\"\n },\n \"replyCount\":31\n },\n {\n \"id\":\"Ugwq4Hc5dcjphfdabi14AaABAg\",\n \"author\":{\n \"id\":\"UChtQ0Lhb3UvlSjPJ_1gcRdQ\",\n \"name\":\"Later\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLTmkn0CgPeiW8hmoP3VEokLg-AN2Y7xkTz7HeOa1w=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLTmkn0CgPeiW8hmoP3VEokLg-AN2Y7xkTz7HeOa1w=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLTmkn0CgPeiW8hmoP3VEokLg-AN2Y7xkTz7HeOa1w=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"\\\"Don\\\\'t you know you got my eyes\\\"\",\n \"published\":\"2 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"3.3K\",\n \"label\":\"3.3K likes\"\n },\n \"replyCount\":19\n },\n {\n \"id\":\"UgxC1mFXH9ddTB6qa5h4AaABAg\",\n \"author\":{\n \"id\":\"UC8iw4k1Ojbd5QsK35IeT5mg\",\n \"name\":\"Anna Dunne\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSzwmG3DSiHB8XuKUqe6CjdlbSPuln1e1kOKS7i6w=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSzwmG3DSiHB8XuKUqe6CjdlbSPuln1e1kOKS7i6w=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSzwmG3DSiHB8XuKUqe6CjdlbSPuln1e1kOKS7i6w=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"I lost my little sons to the care system because i had depression and experienced domestic abuse. I see them now sometimes. It doesn't get any easier and I miss them a lot. <3 This song means a lot. \",\n \"published\":\"2 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"1.9K\",\n \"label\":\"1.9K likes\"\n },\n \"replyCount\":25\n },\n {\n \"id\":\"Ugw4ux8km05TQ3kGHmV4AaABAg\",\n \"author\":{\n \"id\":\"UCfqMzgWyCUuUWBBaD4WgynA\",\n \"name\":\"Jemma Scott\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLT44n2_05S_bMU2ME_Z1WSk6xTIJ3cs82vSF920pg=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLT44n2_05S_bMU2ME_Z1WSk6xTIJ3cs82vSF920pg=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLT44n2_05S_bMU2ME_Z1WSk6xTIJ3cs82vSF920pg=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"Warning \u26a0\ufe0f: \",\n \"published\":\"2 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"2.1K\",\n \"label\":\"2.1K likes\"\n },\n \"replyCount\":5\n },\n {\n \"id\":\"Ugy5hJrVHhrZ25VZoDd4AaABAg\",\n \"author\":{\n \"id\":\"UCCooCkWoIN-QmHrVo0t5d9Q\",\n \"name\":\"Samy Lind\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSHCXYVj0EyiLYxeBvhP6E4gnS1gRzDSYleBQ=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSHCXYVj0EyiLYxeBvhP6E4gnS1gRzDSYleBQ=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSHCXYVj0EyiLYxeBvhP6E4gnS1gRzDSYleBQ=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"I know no one cares about stuff like this but I just wanted to speak on the power of art because it\u2019s beautiful. This video and this entire album has been a huge catalyst and help in me saving myself and my family. I was forcing my husband and 3 kids to live with my abusive parents so that I could try to make them love us before they died. All they did was hurt us more and instead of dealing with it I kept staying there and started doing pain pills. This video helped hit home how much I don\u2019t need my parents and it made me never want to escape from my reality again. I hadn\u2019t quite gotten to a stage of disgust, but I sure have done a lot of regrettable things. This album helps me have the strength to keep doing my best to learn to be better and to learn to be the best I can be for my kids. I don\u2019t want to be held back by anything anymore and I don\u2019t want to hold back my family. Thank you glass animal and crew:) your saving lives with this music\",\n \"published\":\"2 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"493\",\n \"label\":\"493 likes\"\n },\n \"replyCount\":7\n },\n {\n \"id\":\"UgyfG6DRZQZe5NtvY9t4AaABAg\",\n \"author\":{\n \"id\":\"UCFlsa-V7ZjC3SJG1MgHeTxA\",\n \"name\":\"Adi \u2606\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/2r2ZQYcZaViZp8n37bmAnJx-irYy7mOUkpkC7nprEaoeSY2jEJ9wQ-kQnpxN6Z4WMWFMT9JzUw=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/2r2ZQYcZaViZp8n37bmAnJx-irYy7mOUkpkC7nprEaoeSY2jEJ9wQ-kQnpxN6Z4WMWFMT9JzUw=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/2r2ZQYcZaViZp8n37bmAnJx-irYy7mOUkpkC7nprEaoeSY2jEJ9wQ-kQnpxN6Z4WMWFMT9JzUw=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"Lyrics:[Verse 1]\",\n \"published\":\"2 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"955\",\n \"label\":\"955 likes\"\n },\n \"replyCount\":9\n },\n {\n \"id\":\"Ugi30kIt00U573gCoAEC\",\n \"author\":{\n \"id\":\"UCZbJ_Q3ClurxYlthgTecgow\",\n \"name\":\"love, doggo\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/IJF61exnEIJZDlnphGN9yXnV_fQSJhdAyPqgF_e3pJ42iwvTQprgQaty-uVyvjiMJpnaekxeBg=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/IJF61exnEIJZDlnphGN9yXnV_fQSJhdAyPqgF_e3pJ42iwvTQprgQaty-uVyvjiMJpnaekxeBg=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/IJF61exnEIJZDlnphGN9yXnV_fQSJhdAyPqgF_e3pJ42iwvTQprgQaty-uVyvjiMJpnaekxeBg=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"This is a rare thing... I like every song a band makes\",\n \"published\":\"5 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"3.9K\",\n \"label\":\"3.9K likes\"\n },\n \"replyCount\":67\n },\n {\n \"id\":\"UgzDNmCLzmkNIGV_iB14AaABAg\",\n \"author\":{\n \"id\":\"UCrdOXfYndK2UEjAKRg-hUcw\",\n \"name\":\"Cherry\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/oRPZKN6SL1SoMc5J7FQIHiA1C1wQZe1YfRHbkxaLnNp9Vi7Vl2PCY11oTK5mDms-NHXSGqFsKQ=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/oRPZKN6SL1SoMc5J7FQIHiA1C1wQZe1YfRHbkxaLnNp9Vi7Vl2PCY11oTK5mDms-NHXSGqFsKQ=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/oRPZKN6SL1SoMc5J7FQIHiA1C1wQZe1YfRHbkxaLnNp9Vi7Vl2PCY11oTK5mDms-NHXSGqFsKQ=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"I hope the mother who inspired this can hear it and feel her child close to her again.\",\n \"published\":\"2 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"410\",\n \"label\":\"410 likes\"\n },\n \"replyCount\":1\n },\n {\n \"id\":\"UgyQEih224ElUkT2AXl4AaABAg\",\n \"author\":{\n \"id\":\"UC7M3_B55yIvo4DZS3BvgA1g\",\n \"name\":\"Sirce Guevara\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLRJhxg_aeXmbGuH8wbuCcGWVtRs6tFKPqkxw4-lcJ8=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLRJhxg_aeXmbGuH8wbuCcGWVtRs6tFKPqkxw4-lcJ8=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLRJhxg_aeXmbGuH8wbuCcGWVtRs6tFKPqkxw4-lcJ8=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"I cried watching this video, this is my first time seeing it.. It just reminded me of my mother, how she raised me alone. Seeing me happy and dancing all her life . How she works hard day by day just so I have a roof on my head and food on the table. She's amazing...\",\n \"published\":\"2 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"271\",\n \"label\":\"271 likes\"\n },\n \"replyCount\":1\n },\n {\n \"id\":\"UgxSKtnwJ1fL1cGECFN4AaABAg\",\n \"author\":{\n \"id\":\"UCaWu5P4tl4leNsq0d6K5JfA\",\n \"name\":\"Brylee D\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSnWU59WluXZehM5VxmcbX6Unk_rgJc699gUp7lxw=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSnWU59WluXZehM5VxmcbX6Unk_rgJc699gUp7lxw=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSnWU59WluXZehM5VxmcbX6Unk_rgJc699gUp7lxw=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"I have a crush on that background wind instrument\",\n \"published\":\"2 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"4.5K\",\n \"label\":\"4.5K likes\"\n },\n \"replyCount\":36\n },\n {\n \"id\":\"Ugx885faaugZ-KS2ht14AaABAg\",\n \"author\":{\n \"id\":\"UCAv-kFdFs9zZX4IR9y77sTg\",\n \"name\":\"berry tart subs \u273f\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/RIEhlWERKQrY6oscMFEVW9pyDVKwndKkfFfnMTGxJIFHV2np4asu1syE-C016cZlcgZYtkdvrCA=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/RIEhlWERKQrY6oscMFEVW9pyDVKwndKkfFfnMTGxJIFHV2np4asu1syE-C016cZlcgZYtkdvrCA=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/RIEhlWERKQrY6oscMFEVW9pyDVKwndKkfFfnMTGxJIFHV2np4asu1syE-C016cZlcgZYtkdvrCA=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"This song literally makes me cry every time I hear it it's just so sweet\",\n \"published\":\"1 year ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"73\",\n \"label\":\"73 likes\"\n },\n \"replyCount\":1\n },\n {\n \"id\":\"UgxfMf3PW8muQIKHeX54AaABAg\",\n \"author\":{\n \"id\":\"UCs5_3PBRo9VoCCbDWDMpa-g\",\n \"name\":\"Victor Rodriguez\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLRe_mumWc8G4a9DvzNQ7FBA_hctTvwTJskAdw=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLRe_mumWc8G4a9DvzNQ7FBA_hctTvwTJskAdw=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLRe_mumWc8G4a9DvzNQ7FBA_hctTvwTJskAdw=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"I hope my son can find some type of solace or message in this song one day. We lost his mother my wife when she passed suddenly three months ago at 23 years young. He was only 2 years old and 7 months when it happened. It was a short time for him but so many happy memories. They spent every single hour of every single day together. We\u2019re so lost and devasted without you, We love you Deja C Rodriguez\",\n \"published\":\"8 months ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"126\",\n \"label\":\"126 likes\"\n },\n \"replyCount\":2\n },\n {\n \"id\":\"UgiuS-ehhcqhHXgCoAEC\",\n \"author\":{\n \"id\":\"UCd6gX2dxkokyH70cbUocq7Q\",\n \"name\":\"bunnyluveable\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSt6NFUcOAfGB1C0BL0f18q8sPUX0UQBhYV_A=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSt6NFUcOAfGB1C0BL0f18q8sPUX0UQBhYV_A=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLSt6NFUcOAfGB1C0BL0f18q8sPUX0UQBhYV_A=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"their music is like being wrapped in a warm blanket on a chilly day.\",\n \"published\":\"5 years ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"563\",\n \"label\":\"563 likes\"\n },\n \"replyCount\":6\n },\n {\n \"id\":\"UgwEdhuY0RUuiyBqpVN4AaABAg\",\n \"author\":{\n \"id\":\"UC8GIfeF1UytnIdBUx7eODBg\",\n \"name\":\"TheBnjmnMiles\",\n \"thumbnails\":[\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLQjQG6jvrGnj9ejtjfO-pbXWwekST4e_qxK=s48-c-k-c0x00ffffff-no-rj\",\n \"width\":48,\n \"height\":48\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLQjQG6jvrGnj9ejtjfO-pbXWwekST4e_qxK=s88-c-k-c0x00ffffff-no-rj\",\n \"width\":88,\n \"height\":88\n },\n {\n \"url\":\"https://yt3.ggpht.com/ytc/AKedOLQjQG6jvrGnj9ejtjfO-pbXWwekST4e_qxK=s176-c-k-c0x00ffffff-no-rj\",\n \"width\":176,\n \"height\":176\n }\n ]\n },\n \"content\":\"Why is nobody talking about this kid\u2019s freakin\u2019 sweet dance moves?\",\n \"published\":\"7 months ago\",\n \"isLiked\":false,\n \"authorIsChannelOwner\":false,\n \"voteStatus\":\"INDIFFERENT\",\n \"votes\":{\n \"simpleText\":\"210\",\n \"label\":\"210 likes\"\n },\n \"replyCount\":4\n }\n ]\n}\n```\n\n</details>\n\n#### Retrieve video transcript\nYouTube auto-generates transcripts (subtitles) for videos. You can retrieve those transcripts using Transcript class:\n```py\nfrom youtubesearchpython import Transcript\n\nprint(Transcript.get(\"https://www.youtube.com/watch?v=-1xu0IP35FI\"))\n```\n\nIn response, you'll get available languages with `params` parameter. If you want to retrieve a different language, you have to pass the function that parameter. Example:\n```py\nfrom youtubesearchpython import Transcript\n\nurl = \"https://www.youtube.com/watch?v=-1xu0IP35FI\"\n\ntranscript_en = Transcript.get(url)\n# you actually don't have to pass a valid URL in following Transcript call. You can input an empty string, but I do recommend still inputing a valid URL.\ntranscript_2 = Transcript.get(url, transcript_en[\"languages\"][-1][\"params\"]) # in my case, it'd output Spanish.\nprint(transcript_2)\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n{\n \"segments\":[\n {\n \"startMs\":\"210\",\n \"endMs\":\"2129\",\n \"text\":\"- When Steve Jobs unveiled the original\",\n \"startTime\":\"0:00\"\n },\n {\n \"startMs\":\"2130\",\n \"endMs\":\"3670\",\n \"text\":\"iPhone back in 2007,\",\n \"startTime\":\"0:02\"\n },\n {\n \"startMs\":\"3670\",\n \"endMs\":\"4940\",\n \"text\":\"the year I graduated high school,\",\n \"startTime\":\"0:03\"\n },\n {\n \"startMs\":\"4940\",\n \"endMs\":\"7610\",\n \"text\":\"he pitched it as a music player, a phone,\",\n \"startTime\":\"0:04\"\n },\n {\n \"startMs\":\"7610\",\n \"endMs\":\"10760\",\n \"text\":\"and an internet communicator\\nall rolled into one.\",\n \"startTime\":\"0:07\"\n },\n {\n \"startMs\":\"10760\",\n \"endMs\":\"11593\",\n \"text\":\"- Are you getting it?\",\n \"startTime\":\"0:10\"\n },\n ...\n ],\n \"languages\":[\n {\n \"params\":\"CgstMXh1MElQMzVGSRIOQ2dBU0FtVnVHZ0ElM0QYASozZW5nYWdlbWVudC1wYW5lbC1zZWFyY2hhYmxlLXRyYW5zY3JpcHQtc2VhcmNoLXBhbmVsMAE%3D\",\n \"selected\":true,\n \"title\":\"English\"\n },\n {\n \"params\":\"CgstMXh1MElQMzVGSRISQ2dOaGMzSVNBbVZ1R2dBJTNEGAEqM2VuZ2FnZW1lbnQtcGFuZWwtc2VhcmNoYWJsZS10cmFuc2NyaXB0LXNlYXJjaC1wYW5lbDAB\",\n \"selected\":false,\n \"title\":\"English (auto-generated)\"\n },\n {\n \"params\":\"CgstMXh1MElQMzVGSRISQ2dBU0JYQjBMVUpTR2dBJTNEGAEqM2VuZ2FnZW1lbnQtcGFuZWwtc2VhcmNoYWJsZS10cmFuc2NyaXB0LXNlYXJjaC1wYW5lbDAB\",\n \"selected\":false,\n \"title\":\"Portuguese (Brazil)\"\n },\n {\n \"params\":\"CgstMXh1MElQMzVGSRIQQ2dBU0JtVnpMVFF4T1JvQRgBKjNlbmdhZ2VtZW50LXBhbmVsLXNlYXJjaGFibGUtdHJhbnNjcmlwdC1zZWFyY2gtcGFuZWwwAQ%3D%3D\",\n \"selected\":false,\n \"title\":\"Spanish (Latin America)\"\n }\n ]\n}\n```\n</details>\n\n\n#### Retrieve channel info\n```py\nfrom youtubesearchpython import Channel\n\nprint(Channel.get(\"UC_aEa8K-EOJ3D6gOs7HcyNg\"))\n```\n\n<details>\n <summary> Example Result</summary>\n\n```json\n{\n \"id\": \"UC_aEa8K-EOJ3D6gOs7HcyNg\",\n \"url\": \"https://www.youtube.com/channel/UC_aEa8K-EOJ3D6gOs7HcyNg\",\n \"description\": \"NoCopyrightSounds is a copyright free / stream safe record label, providing free to use music to the content creator community. \\n\\nWe work with artists from around the world in electronic music, representing genres from House to Dubstep via Trap, Drum & Bass, Electro Pop and more. \\n\\nNCS Music is free to use for independent Creators and their UGC (User Generated Content) on YouTube & Twitch - always remember to credit the Artist, track and NCS and link back to our original NCS upload.\\n\\nView our usage policy and some frequently asked questions here: http://ncs.io/UsagePolicy\\n\\nGrab our new apparel range here: http://ncs.io/Store\",\n \"title\": \"NoCopyrightSounds\",\n \"banners\": [\n {\n \"url\": \"https://yt3.ggpht.com/ZdXDhvCVn73Shu-QkqWFoUS_TlZ9MSkAXb8VJBeI6ZKSN6oH4QBvTG2BCfuFRegjXwdp6qH3=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj\",\n \"width\": 1060,\n \"height\": 175\n },\n {\n \"url\": \"https://yt3.ggpht.com/ZdXDhvCVn73Shu-QkqWFoUS_TlZ9MSkAXb8VJBeI6ZKSN6oH4QBvTG2BCfuFRegjXwdp6qH3=w1138-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj\",\n \"width\": 1138,\n \"height\": 188\n },\n {\n \"url\": \"https://yt3.ggpht.com/ZdXDhvCVn73Shu-QkqWFoUS_TlZ9MSkAXb8VJBeI6ZKSN6oH4QBvTG2BCfuFRegjXwdp6qH3=w1707-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj\",\n \"width\": 1707,\n \"height\": 283\n },\n {\n \"url\": \"https://yt3.ggpht.com/ZdXDhvCVn73Shu-QkqWFoUS_TlZ9MSkAXb8VJBeI6ZKSN6oH4QBvTG2BCfuFRegjXwdp6qH3=w2120-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj\",\n \"width\": 2120,\n \"height\": 351\n },\n {\n \"url\": \"https://yt3.ggpht.com/ZdXDhvCVn73Shu-QkqWFoUS_TlZ9MSkAXb8VJBeI6ZKSN6oH4QBvTG2BCfuFRegjXwdp6qH3=w2276-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj\",\n \"width\": 2276,\n \"height\": 377\n },\n {\n \"url\": \"https://yt3.ggpht.com/ZdXDhvCVn73Shu-QkqWFoUS_TlZ9MSkAXb8VJBeI6ZKSN6oH4QBvTG2BCfuFRegjXwdp6qH3=w2560-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj\",\n \"width\": 2560,\n \"height\": 424\n }\n ],\n \"subscribers\": {\n \"simpleText\": \"32.2M subscribers\",\n \"label\": \"32.2 million subscribers\"\n },\n \"thumbnails\": [\n {\n \"url\": \"https://yt3.ggpht.com/YIBi8NVC87fMfJHfQ2O0dyzjis7tUlO7VqWLhk1lq1fkIOQTrpX_Ip7G6S_u0IJosXYSe_Z9=s48-c-k-c0x00ffffff-no-rj\",\n \"width\": 48,\n \"height\": 48\n },\n {\n \"url\": \"https://yt3.ggpht.com/YIBi8NVC87fMfJHfQ2O0dyzjis7tUlO7VqWLhk1lq1fkIOQTrpX_Ip7G6S_u0IJosXYSe_Z9=s88-c-k-c0x00ffffff-no-rj\",\n \"width\": 88,\n \"height\": 88\n },\n {\n \"url\": \"https://yt3.ggpht.com/YIBi8NVC87fMfJHfQ2O0dyzjis7tUlO7VqWLhk1lq1fkIOQTrpX_Ip7G6S_u0IJosXYSe_Z9=s176-c-k-c0x00ffffff-no-rj\",\n \"width\": 176,\n \"height\": 176\n },\n {\n \"url\": \"https://yt3.ggpht.com/YIBi8NVC87fMfJHfQ2O0dyzjis7tUlO7VqWLhk1lq1fkIOQTrpX_Ip7G6S_u0IJosXYSe_Z9=s900-c-k-c0x00ffffff-no-rj\",\n \"width\": 900,\n \"height\": 900\n },\n {\n \"url\": \"https://yt3.ggpht.com/YIBi8NVC87fMfJHfQ2O0dyzjis7tUlO7VqWLhk1lq1fkIOQTrpX_Ip7G6S_u0IJosXYSe_Z9=s200-c-k-c0x00ffffff-no-rj?days_since_epoch=19098\",\n \"width\": 200,\n \"height\": 200\n }\n ],\n \"isFamilySafe\": true,\n \"keywords\": \"NoCopyrightSounds ncs no copyright sounds copyrighted music free royalty royaltyfree uncopyrighted copyrightfree\",\n \"tags\": [\n \"NoCopyrightSounds\",\n \"ncs\",\n \"no\",\n \"copyright\",\n \"sounds\",\n \"copyrighted\",\n \"music\",\n \"free\",\n \"royalty\",\n \"royaltyfree\",\n \"uncopyrighted\",\n \"copyrightfree\"\n ],\n \"views\": \"10,094,707,992 views\",\n \"joinedDate\": \"Aug 14, 2011\",\n \"country\": \"United Kingdom\"\n}\n```\n</details>\n\n\n\n#### Retrieve channel playlists\n```py\nfrom youtubesearchpython import Channel\n\nchannel = Channel(\"UC_aEa8K-EOJ3D6gOs7HcyNg\")\nprint(len(channel.result[\"playlists\"]))\nwhile channel.has_more_playlists():\n channel.next()\n print(len(channel.result[\"playlists\"]))\n```\n\n<details>\n <summary> Example Result</summary>\n\n```\n30\n49\n```\n</details>\n\n\n## Contributors\nThanks to everyone contributing to this library, including those not mentioned here.\n\nI included only contributors and people, who we can thank for their extensive reports to make the library better.\n\nContributors are added irrespective of order.\n\n<ul>\n <li>\n <img src='https://avatars.githubusercontent.com/u/28951144?s=80&v=4' height='28' width='28'></img> <strong><a href='https://github.com/alexmercerind'>Hitesh Kumar Saini</a></strong>\n <ul>\n <li>Creator of this library, contributed most classes to this library.</li>\n </ul>\n </li>\n <li>\n <img src='https://avatars.githubusercontent.com/u/52399966?s=80&v=4' height='28' width='28'></img> <strong><a href='https://github.com/mytja'>mytja</a></strong>\n <ul>\n <li>Current maintainer of this library. Author of Core classes, Comments and Transcript classes, ytdlp migration</li>\n </ul>\n </li>\n <li>\n <img src='https://avatars.githubusercontent.com/u/64320078?s=80&v=4' height='28' width='28'></img> <strong><a href='https://github.com/raitonoberu'>Denis</a></strong>\n <ul>\n <li>Maintainer and reviewer of PRs. Author of Hashtag class.</li>\n </ul>\n </li>\n <li>\n <img src='https://avatars.githubusercontent.com/u/42294590?v=4' height='28' width='28'></img> <strong><a href='https://github.com/fabi321'>Fabian Wunsch</a></strong>\n <ul>\n <li>Fixes to ChannelSearch & retrieving Playlists from Channel class</li>\n </ul>\n </li>\n <li>\n <img src='https://avatars.githubusercontent.com/u/1645646?v=4' height='28' width='28'></img> <strong><a href='https://github.com/Zocker1999NET'>Felix Stupp</a></strong>\n <ul>\n <li>Video and Playlist class contributor. Extensive issues.</li>\n </ul>\n </li>\n <li>\n <img src='https://avatars.githubusercontent.com/u/30200788?v=4' height='28' width='28'></img> <strong><a href='https://github.com/dscrofts'>dscrofts</a></strong>\n <ul>\n <li>Extensive issues, mostly about Playlist and Video class.</li>\n </ul>\n </li>\n <li>\n <img src='https://avatars.githubusercontent.com/u/5200252?v=4' height='28' width='28'></img> <strong><a href='https://github.com/AlexandreOuellet'>AlexandreOuellet</a></strong>\n <ul>\n <li>Added publishDate and uploadDate to Video class.</li>\n </ul>\n </li>\n <li>\n <img src='https://avatars.githubusercontent.com/u/52490534?v=4' height='28' width='28'></img> <strong><a href='https://github.com/rking32'>None</a></strong>\n <ul>\n <li>Bumped httpx version to 0.14.2.</li>\n </ul>\n </li>\n <li>\n <img src='https://avatars.githubusercontent.com/u/64990477?v=4' height='28' width='28'></img> <strong><a href='https://github.com/Maple-Elter'>Elter</a></strong>\n <ul>\n <li>Fixes to Playlist class.</li>\n </ul>\n </li>\n</ul>\n\n\n## License\n\nMIT License\n\nCopyright (c) 2021 [Hitesh Kumar Saini](https://github.com/alexmercerind)\n\n## Information\n\n- All the research, for making this library possible, is entirely done by myself.\n- You can use this library & segments of code from it in your projects in any way you want. Just respect the MIT license & credit the original author of the project.\n- Current version of this project (`main` branch) simulates the requests made by YouTube's web client during client side rendering. In simple words, it does not fetch any specific webpage's HTML, but the JSONs internally fetched by YouTube when you navigate the website, after loading the webpage completely.\n- I do not resist you from using this library in any possible manner, but YouTube T&C stop you from using this library commercially. Respect the law.\n- As you might tell by the name of the project, this library initially only used to support searching of videos. Later on, as the project grew, I added a lot of additional features after requests from people. Now, its really powerful.\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Search for YouTube videos, channels & playlists & get video information using link WITHOUT YouTube Data API v3",
"version": "1.6.6",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "da57d4a20f04264fb5b52dbde127b87296578e12f6eabbfb5a16a6578812988e",
"md5": "e4435bb59d57f3e212dda168b2bde3a2",
"sha256": "f0d835278bc32335f2ded48ba119bef39cafb290d98648a64deb22f6c4a705f2"
},
"downloads": -1,
"filename": "youtube_search_python-1.6.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e4435bb59d57f3e212dda168b2bde3a2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 89121,
"upload_time": "2022-06-23T20:43:11",
"upload_time_iso_8601": "2022-06-23T20:43:11.455478Z",
"url": "https://files.pythonhosted.org/packages/da/57/d4a20f04264fb5b52dbde127b87296578e12f6eabbfb5a16a6578812988e/youtube_search_python-1.6.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "913cdc669b0308e49f294df67bddbb16ff3eefe5b5da6fa37ead922a8301926b",
"md5": "87875ed4d48765fda5645863dbc29ccb",
"sha256": "4568d1d769ecd7eb4bb8365f04eec6e364c5f70eec7b3765f543daebb135fcf5"
},
"downloads": -1,
"filename": "youtube-search-python-1.6.6.tar.gz",
"has_sig": false,
"md5_digest": "87875ed4d48765fda5645863dbc29ccb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 115732,
"upload_time": "2022-06-23T20:43:14",
"upload_time_iso_8601": "2022-06-23T20:43:14.260961Z",
"url": "https://files.pythonhosted.org/packages/91/3c/dc669b0308e49f294df67bddbb16ff3eefe5b5da6fa37ead922a8301926b/youtube-search-python-1.6.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-06-23 20:43:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "alexmercerind",
"github_project": "youtube-search-python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "youtube-search-python"
}