Skip to content

An API to fetch the 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

durgeshmeena/Youtube-Fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fampay-Backend Assignment -Extern

Project Goal

To make 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.

Basic Requirements:

-Server should call the YouTube API continuously in background (async) with some interval (say 10 seconds) for fetching the latest videos for a predefined search query and should store the data of vid eos (specifically these fields - Video title, description, publishing datetime, thumbnails URLs and any other fields you require) in a database with proper indexes.

-A GET API which returns the stored video data in a paginated response sorted in descending order of published datetime.

-It should be scalable and optimised.

To Run the project:

step 1 :

create .env file containg

  MONGO_URI='mongodb+srv://'
  YOUTUBE_API_URL='https://www.googleapis.com/youtube/v3/search/'
  GOOGLE_API_KEY=''

step 2 :

Download required libraries by pip install -m requirements.txt

step 3 :

Start project using batchfile in cmd enter run

References

Home -

referce images

Quering(Paginated) -

referce images

referce images

referce images

referce images

Searching -

referce images

Fetching Videos -

referce images

referce images

referce images

About

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

Topics

Resources

Stars

Watchers

Forks