An open API service indexing awesome lists of open source software.

https://github.com/siddhant-k-code/yt-fetch


https://github.com/siddhant-k-code/yt-fetch

api downloader youtube youtube-api youtube-dl

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# YT-Fetch - An API to fetch YouTube video metadata

There are a lot of YouTube video downloaders out there. By making use of tools like `youtube-dl`, they get the job done. But `YT-Fetch` is different. It is an API that returns necessary data to create your own downloader. Now you can create beautiful frontends with your favourite tools like, Reactjs, Vuejs, Sveltejs and whatnot.

It returns data including `title`, `views`, `links to thumbnail` and `various formats along with links to them`. Just an API call and get all the data you need in quick time.

### Usage

For Now:

Run it On `Repl.it`: https://repl.it/@SiddhantKcode/YT-Fetch

Press `Ctrl+shift+s` to open shell and run following commands:

`pip install -r requirements.txt`

`python main.py`

Now, Go to the following Link:https://yt-fetch.siddhantkcode.repl.co/api/7jwiIn_1YXE

Example: https://yt-fetch.siddhantkcode.repl.co/api/7jwiIn_1YXE

> Original Video Link: https://www.youtube.com/watch?v=7jwiIn_1YXE

This should return all the necessary data required to create an app.

### Future Possible Updates:

>` curl https://YT-Fetch.siddhantkcode.repl.co/api/{video_id}`

### Response Contents

| Name | Key | Description |
| ------------ | ---------- | -------------------------------------------------------------------- |
| Title | title | Title of the video |
| Channel Name | channel | Channel the video belongs to |
| Views | views | Total view count(when the API call was made) |
| Length | length | Duration of the video in seconds |
| Thumbnails | thumbnails | List of dictionary containing various thumbnail sizes and their URLs |
| Formats | formats | List of dictionary containing different video formats |