Skip to main content

How to search among Youtube videos and extract their metadata using an easy interface.

Project description


An Easy Wrapper for Youtube API 3.0

This module provides you an easy interface to extract Youtube video metadata including title, comments, and stats. You must setup your API KEY before being able to use this module. If you have your Google API key, you can skip this section; otherwise, check out this video: Getting Started - Creating an API Key and Querying the API. You must enter the API_KEY when you want to initialize the youtube-easy-api module. For more information, you can look at the examples below.


The module requires the following libraries:

  • google-api-python-client
  • google-auth-oauthlib
  • google


It can be installed using pip:

pip3 install youtube-easy-api

Make sure the pip is upgraded to the latest version.


The module currently support the methods below.

  • search_videos_by_keywords
  • get_video_metadata

You can search Youtube service by passing a search_keyword to the search_videos_by_keywords method. You will receive an ordered lists of videos according to the search configs.

from youtube_easy_api.easy_wrapper import *

easy_wrapper = YoutubeEasyWrapper()
search_keyword = 'python'
results = easy_wrapper.search_videos_by_keywords(q=search_keyword,
order_id = 1
video_id = results[order_id]['video_id']


You can also extract the metadata of a video by passing its video_id to the method get_video_metadata.

from youtube_easy_api.easy_wrapper import *

easy_wrapper = YoutubeEasyWrapper()
metadata = easy_wrapper.get_video_metadata(video_id='rdjnkb4ONWk')

'The Pink Panther Show Episode 59 - Slink Pink'


And, that's pretty much it!

Project details

Download files

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

Source Distribution

youtube_easy_api-0.1.4.tar.gz (4.3 kB view hashes)

Uploaded source

Built Distribution

youtube_easy_api-0.1.4-py3-none-any.whl (5.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page