Skip to content

Asynchronously ping the YouTube API at fixed time intervals to fetch and save videos on a particular search query, exposed via a REST API

Notifications You must be signed in to change notification settings

SwarnimWalavalkar/youtube-fetcher-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube fetcher API

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.

Start Server

Make sure to populate the enviroment variables from .env.local into a .env file

Then, from the project's root, run:

docker-compose up -d --build

Endpoints

GET /videos/

Query Parameters: {
  page: string
  search: string
}

Response Schema

{
  count: number,
  next: string | null
  previous: string | null
  results: {
    title: string, 
    description: string, 
    published_on: string, 
    thumbnail_url: string, 
    video_url: string
  }[]
}

About

Asynchronously ping the YouTube API at fixed time intervals to fetch and save videos on a particular search query, exposed via a REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published