How to use youtube-mp3.org api?


I was looking for an youtube to mp3 api and found this code:

var __AM=65521; // the largest prime less than 2^16... function cc(a){ var c = 1, b = 0, d, e; for(e = 0; e < a.length; e++){ d = a.charCodeAt(e); c = (c+d)%__AM; b = (b+c)%__AM; } return b<<16|c; } // The generated media URL is : "http://www.youtube-mp3.org/get?ab=128&video_id="+video_id+"&h="+info.h+"&r="+timeNow+"."+cc(video_id+timeNow) // with var timeNow = Date.now().toString();

I think it's depricated now however this is the new youtube-mp3.orgs' API i think, <a href="http://www.youtube-mp3.org/get?video_id=KMU0tzLwhbE&ts_create=1465936462&r=MTEyLjE5OC4xMTguMTcy&h2=0cee970e770de6452d9d01ea95cd2133&s=60601" rel="nofollow">http://www.youtube-mp3.org/get?video_id=KMU0tzLwhbE&ts_create=1465936462&r=MTEyLjE5OC4xMTguMTcy&h2=0cee970e770de6452d9d01ea95cd2133&s=60601</a>, how can I apply it?

I also want to use this but I don;t know how to use and cannot understand the language.

<a href="https://github.com/victorsa/youtubetomp3" rel="nofollow">https://github.com/victorsa/youtubetomp3</a>

How can I call a function? a sample with explanation would be more acceptable


It is PHP.

Just call

YoutubeToMP3::get('http://www.youtube.com/watch?v=B2m_WnXjqnM', YoutubeToMP3::LINK);

if you want to get a link to the download or

YoutubeToMP3::get('http://www.youtube.com/watch?v=B2m_WnXjqnM', YoutubeToMP3::DOWNLOAD);

if you want to download it directly.


  • How to wrap with HTML tags a cross-boundary DOM selection range?
  • pdfmake use in an application with webpack
  • CodeMirror editor within a panel
  • What causes the different behaviors between “var” and “let” when assign them a returned value of a f
  • Does Perl currently (5.8 and 5.10) make any promises about the order alternations will be used?
  • Regex: Match everything except backreference
  • BackgroundMediaPlayer set Uri source of Media library item
  • ResponseBuilder is not working when used with entity object
  • Is it possible to control programs with Javascript?
  • How does extglob work with shell parameter expansion?
  • C - formatting MAC address
  • azure media services - The request body is too large and exceeds the maximum permissible limit
  • Read a local file using javascript
  • ImageMagick, replace semi-transparent white with opaque white
  • Cannot connect to cassandra from Spark
  • Illegal mix of collations for operation for date/time comparison
  • Optimizing database types to compact database (SQLite)
  • How to set/get protobuf's extension field in Go?
  • Cross-Platform Protobuf Serialization
  • Cassandra Data Model
  • Javascript convert timezone issue
  • Trying to switch camera back to front but getting exception
  • Importing jscolor library in angular 2
  • Release, debug version and Authorization Google?
  • Alternatives to the OPTIONAL fallback SPARQL pattern?
  • Do I've to free mysql result after storing it?
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • Circular dependency while pushing http interceptor
  • bootstrap to use multiple ng-app
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • How to get icons for entities from eclipse?
  • AngularJs get employee from factory
  • How to set the response of a form post action to a iframe source?
  • Hits per day in Google Big Query
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Change div Background jquery
  • Turn off referential integrity in Derby? is it possible?
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • apache spark aggregate function using min value
  • JaxB to read class hierarchy