Skip to content

server code used for RabbitTube app (app for downloading and searching youtube videos as songs)

Notifications You must be signed in to change notification settings

gilmaimon/RabbitTube-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RabbitTube-Server

server code used for RabbitTube app (app for downloading and searching youtube videos as songs)

RabbitTube-Server

Server used for RabbitTube app (app for downloading and searching youtube videos as songs)

Requirements

Usage

Searching Youtube Songs

Method: POST
Path: '/search/songs'
Body:
{
    "query": "SOME_QUERY_STRING"
}

Assuming the request is valid, the server response will be:

{
   "prevPageToken":null,
   "items":[
      {
         "thumbnails":{
            "high":{
               "url":"https://i.ytimg.com/vi/vhMlaCdlLbc/mqdefault.jpg",
               "height":180,
               "width":320
            },
            "default":{
               "url":"https://i.ytimg.com/vi/vhMlaCdlLbc/mqdefault.jpg",
               "height":180,
               "width":320
            }
         },
         "title":"Khesari Lal Yadav - Bandhan - Bhojpuri  Songs 2015 new",
         "videoID":"vhMlaCdlLbc",
         "channelTitle":"Wave Music",
         "description":"Subscribe Now:- http://goo.gl/ip2lbk..."
      },
      {...},
      {...},
      ...
    ]
}

Downloading a Youtube Song

Request:

Method: POST
Path: '/download/song'
Body:
{
    "url": "VALID_YOUTUBE_VIDEO_URL"
}

Response: The server will respond with either the mp3 file or an error message. In case of an error message the Content-Type header will be application/json and for success it will be audio/mpeg.

About

server code used for RabbitTube app (app for downloading and searching youtube videos as songs)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published