百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
Y

Youtube-API

> 编程语言
开源

一种托管自己的 API 的方式,该 API 可以将 youtube 视频转换为 mp3/mp4 并返回下载/流式链接和信息。

175 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一种托管自己的 API 的方式,该 API 可以将 youtube 视频转换为 mp3/mp4 并返回下载/流式链接和信息。

Youtube-API

With these files you are able to create your own Youtube API with ability to search also.

Laravel version of this package

Software requirements

  • youtube-dl
  • ffmpeg (+ libmp3lame)

General installation

First we install the dependencies on the server, then website.

VPS

  • Install ffmpeg (+ libmp3lame - see wiki for tutorial)
  • install youtube-dl or yt-dlp

Website

  • Get a google developer api key
  • Go to your webserver files to run composer into
  • Run composer create-project michaelbelgium/youtube-to-mp3 [directoryname] - where directoryname is .. a directory where people can access the API from.

Configuration

To configure everything, you need to create a copy of .env.example as .env. This file should contain your settings. For more information on the settings, check the comments in the .env or .env.example file.

Documentation

Check out the wiki for more docs.

Docker

You can deploy this project using docker-compose.yml and the Dockerfile to build from. Please add your google API Key to the .env file. It will expose port 80 from the container, out to port 80 on the host. This can also be changed in .env under HOST_PORT. The docker image uses yt-dlp.

How to run with docker-compose

Put docker-compose.yml and Dockerfile together in a new, empty folder. Create .env, and set the values listed in the example .env in this repo. To run, use the following command:

bash
docker-compose up -d

To stop:

bash
docker-compose down
# Or use this to remove the attached volume, to clear up space-
docker-compose down -v

Issues· 2 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPffmpegmp3-apiyoutube-api-v3youtube-dl

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言