项目作者: kijart

项目描述 :
YouTube proxy API that search and stream videos/audios
高级语言: JavaScript
项目地址: git://github.com/kijart/youtube-proxy.git
创建时间: 2019-11-23T12:08:18Z
项目社区:https://github.com/kijart/youtube-proxy

开源协议:

下载


YouTube Proxy

YouTube proxy API that search and stream videos/audios

Usage

Search:

  • /api/search?query=:searchString (default limit 1)
  • /api/search?query=:searchString&limit=5

Play:

  • /api/play/:id (default type video)
  • /api/play/:id?type=video
  • /api/play/:id?type=audio

Manual

  • Node version: 14
  • Install dependencies: npm install
  • Run: npm start

Docker compose

  • Create a container using docker-compose: docker-compose up --no-start
  • Install dependencies: docker-compose run app npm install
  • Start the project in background: docker-compose up -d
  • Check logs of the services: docker-compose logs -f
  • Stop the project: docker-compose stop
  • If the project was stopped, start it with start: docker-compose start
  • Exposed port: 3000

Docker setup

Install docker: https://docs.docker.com/engine/installation/

Install docker compose: https://docs.docker.com/compose/install/

Docker documentation: https://docs.docker.com/

Libraries included in the project

  • express
  • ytdl-core
  • ytsr