GithubHelp home page GithubHelp logo

liwa-dev / ytaudioconverterapi Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 6 KB

YTAudioConverterAPI: A Flask-based RESTful API for converting YouTube videos to MP3 audio files. Retrieve direct download links with a simple HTTP request. Features rate limiting, file compression, and auto-deletion of expired files. Easily integrate and customize with the provided source code

License: MIT License

Python 100.00%
api audio audioconverter directlink youtube youtube-api youtube-dl youtube-downloader

ytaudioconverterapi's Introduction

YTAudioConverterAPI

Description

YTAudioConverterAPI is a Flask-based API that allows you to convert YouTube videos into MP3 audio files. It utilizes the pytube, youtubesearchpython, youtube_dl, and pydub libraries to search for videos, extract audio, and convert it to MP3 format.

Installation

  1. Clone the repository: git clone <https://github.com/liwa-dev/YTAudioConverterAPI.git>
  2. Navigate to the project directory: cd YTAudioConverterAPI
  3. Install the required dependencies: pip install -r requirements.txt

Usage

  1. Start the Flask server: python main.py
  2. Send a GET request to /search endpoint with the q parameter to search for YouTube videos.
  3. Send a GET request to /download endpoint with the video_url parameter to convert a YouTube video into an MP3 audio file.
  4. Access the converted audio file by sending a GET request to /audios/<filename> endpoint.

API Endpoints

  • /search: Searches for YouTube videos based on the provided query (q parameter).
  • /download: Converts a YouTube video into an MP3 audio file. Requires the video_url parameter.
  • /audios/<filename>: Retrieves the converted audio file.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

ytaudioconverterapi's People

Contributors

liwa-dev avatar

Stargazers

 avatar  avatar

Watchers

 avatar

ytaudioconverterapi's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.