Skip to main content

Python Youtube Data API v3

Project description

#### Python - Youtube Data API v3

**yapi** is a simple client api for youtube.It uses [Youtube Data API v3]( you can use, you must a create project in [here](

## Installation
sudo pip install yapi

## Using
import yapi
api = yapi.YoutubeAPI('api_key')

## References
video = api.get_video_info('video_id')

results = api.general_search('keyword', max_results=10)
videos = api.video_search('keyword', max_results=10, order=None)
videos = api.video_search_in_channel('keyword', 'channel_id', max_results=10, order=None)

channel = api.get_channel_by_name('channel_name')
channel = api.get_channel_by_id('channel_id')

playlist = api.get_playlist_by_id('playlist_id')
playlist = api.get_playlist_by_channel_id('channel_id')

playlistItems = api.get_playlist_items_by_playlist_id('playlist_id', max_results=20)

# Special
api_key = get_api_key()
bool = change_api_key('api_key')

## Pagination
results = api.general_search('keyword', max_results=10, pageToken=PAGETOKEN)
videos = api.video_search('keyword', max_results=10, order=None, pageToken=PAGETOKEN)
videos = api.video_search_in_channel('keyword', 'channel_id', max_results=10, order=None, pageToken=PAGETOKEN)
playlistItems = api.get_playlist_items_by_playlist_id('playlist_id', max_results=20, pageToken=PAGETOKEN)

## Contributing

## Youtube Data API v3
[Youtube Data API v3 Doc](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for yapi, version v1.3.1
Filename, size File type Python version Upload date Hashes
Filename, size yapi-v1.3.1.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page