Skip to content

An API to fetch latest videos sorted in reverse chronological order of their publishing date-time from YouTube for a given tag/search query in a paginated response.

Notifications You must be signed in to change notification settings

abhinavraj23/youtube_fetch_api

Repository files navigation

Youtube Fetch Api

An API to fetch latest videos from youtube sorted in reverse chronological order of their publishing date-time from YouTube for a given tag/search query in a paginated response.

The server fetches latest videos async after every 10 minutes and saves it to the db.

This project is completely based on Django.

Method Used

Used Cron Jobs django_cron to fetch videos after every 10 minutes using Youtube Data Api and save it to the db

Setup Guide

  • Clone the project
  • As this project is based on Django, your system need to have proper python setup, refer this
  • Go the project through the terminal and install all dependencies by using typing pip install -r requirements.txt in the terminal
  • Inside the setting.py file, fill the variable GOOGLE_API_KEYS with all the API Keys available,the list should be filled as ['API_KEY_1','API_KEY_2',...]
  • For getting an API key follow this
  • Setup crontab to run Job, Follow this
  • Run the server using python mange.py runserver

Screenshots

For visualization through a dashboard one may directly run the app locally and the get the UI provided through django-rest-framework

Dashboard

Dashboard

Filters

Filters

About

An API to fetch latest videos sorted in reverse chronological order of their publishing date-time from YouTube for a given tag/search query in a paginated response.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published