Is there a Youtube API that only provides audio?

I searched this question several times

Many suggested "get both audio and video." And hide the video. and said that "there is no audio API only"

But this requires more traffic than when only audio is extracted if I want to listen to music through Youtube.

What scares me, an Android app called Firetube only provides audio.

Is this just a trick or is Google providing an API for AUDIO only?

+36
source share
9 answers

Regarding YouTube API Terms of Service

https://developers.google.com/youtube/terms

YOU CAN NOT:

Separate, isolate, or modify the audio or video components of any YouTube Audiovisual Content accessible through the YouTube API;

separately promote the audio or video components of any YouTube audio-visual content accessible through the YouTube API;

+16
source

YES, YOU CAN

Yes, it is certainly possible, here is the API for this:

https://market.mashape.com/ehmo/savedeo

Despite the fact that this contradicts the YouTube Terms of Service, it’s technically possible to hack the link to download only audio, as well as how the API works above.

Here's how I imagine that the SaveDeo API does its magic: Download ONLY audio from YouTube videos

Here's what the guy at SaveDeo told me:

Youtube only has audio files. Savedeo does nothing by providing you a link. As we do this, the reason you use saveeo is not it.

+104
source

Use the YouTube YouTube API. The iframe code generates download buttons in different qualities, and it's free and without ads.

https://youtubemp3api.com/

See also this Github link: YouTube-MP3-API @GitHub

+4
source

Well, I know its old thread, but still I'm sending my answer because it hasn't been answered yet.

I know its youtube policy for downloading videos, but there is a way to download youtube videos as an audio / mp 3 file.

First of all: http://api.youtube6download.top These guys will give you the easiest way to convert yt to mp3 using HTML LINK, Javascript / iframe widgets there.

I also saw their APIs listed on the mashape link: https://market.mashape.com/CoolGuruji/youtube-to-mp3-download

All you need to enter the youtube video id will extract / convert the video in audio format.

It is not an official API for youtube itself.

I use it on my sites, it works very well for me.

I hope that this question will now be answered.

+3
source

youtube-dl

This is technically possible and very easy to do with youtube-dl . Note: this is not an "api". It is not supported by Google, and it can technically be against TOS. I assume that if you have access to North Korea, this is absolutely legal .

 # Download the stream and extract the audio. youtube-dl -x # If you just need the url you can use youtube-dl -x --get-url <URL> 
+1
source

Update because I think no one thought it was easy. Just read it if you want to use it for private use (you know the terms youtube and the like).

After doing some research with various APIs and libraries and studying the source code, I just tried this on my own and wolla.

Simply put, only audio links are in the source page of each video.

You just need to know what you are looking for;)

Open the youtube video, browse the source of the page and find "mime% 3Daudio". There should be 5 matches, full URL, for example:

"HTTPS% 3A% 2F% 2Fr2 --- sn-35cxanpbo5a-8pxl.googlevideo.com% 2Fvideoplayback% 3Fsource% 3Dyoutube% 26signature% 3D30EC556F55533FBFD9003767730D10556681F33A.B12E021CA54CCB9E225F58A4430E9BB528081FB5% 26requiressl% 3Dyes% 26expire% 3D1527306011% 26clen% 3D3064602% 26initcwndbps% 3D1152500% 26ipbits % 3D0% 26mime% 3Daudio% 252Fmp4% 26dur% 3D192.911% 26fvip% 3D5% 26lmt% 3D1524946334873350% 26key% 3Dyt6% 26sparams% 3Dclen% 252Cdur% 252Cei% 252Cgir% 252Cid% 252C2c2% 252C2C2C2Ci2 252% 252C2C2Ci2 252C2Ci2 252C2CiCIT2 % 252Cmime% 252Cmm% 252Cmn% 252Cms% 252Cmv% 252Cpl% 252Crequiressl% 252Csource% 252Cexpire% 26itag% 3D140% 26gir% 3Dyes% 26ip% 3D81.217.53.239% 26id% 3He-ALNxMeQYw4LLc1FAjxt4h795wKTdqJnzc_SBgzEJVBxR% 26c% 3DWEB% 26keepalive% 3Dyes% 26mm % 3D31% 252C29% 3Dsn% 26 ppm-35cxanpbo5a-8pxl% 252Csn-2gb7sn7r% 26ei% 3Du4IIW7DfC46rgAfrrpnICw% 26ms% 3Dau% 252Crdu% 26mt% 3D1527284230% 26v% 3Dm1616 3D16M 3D16% 3Dm

Just decrypt the URL and you get what you want.

+1
source

I have developed YouTuber small software to extract mp3s from YouTube.

You can clone the source code https://github.com/maythamfahmi/YouTuber

Or just use the command line release version (cmd) for windows https://github.com/maythamfahmi/YouTuber/releases .

disclaimer: added github for my personal repo

0
source

using loadercdn, you can apply for your own download API.

0
source

Try this API https://www.yt2mp3.ws/developers/ it produces quality YouTube for Mp3 / Mp4. What can be easily implemented.

-2
source

All Articles