Latest 1.0.1
License MIT
Platforms ios 8.0


Everyone has at least wanted to download a video from youtube, and everyone know many website that provide you that feature (, etc..), but why not having it straight from your app !.

So as the main technicial issue is to get the downloadable link from a youtube video link.

So this cocoapod library get you the direct link to the mp4 a youtube video link.


I made that project as I really want this feature available for the user, as a safari extension or an app extension. The user should be able to download a video from youtube on his gallery on the easiest way.


This library is compatible for iOS 8 + and written in Swift 3.0

Via CocoaPods :

Add the dependency in your podfile as below

source ''
platform :ios, '8.0'

target 'TargetName' do
pod 'YoutubeVideoLinkProcessor'

Then, run the following command:

$ pod install

Via normal import :

Just import the swift classes on the classes folder :

  1. LinkProcessor.swift
  2. StringExtension.swift
  3. YoutubeRequestVideoProcessor.swift
  4. YoutubeVideoManager.swift

Code Example

A simple example of an use case :

     let youtubeManager : YoutubeVideoManager = YoutubeVideoManager(url: "")

     youtubeManager.fetchVideoLink(completion: { (link : String, error : NSError?) in

        if(error == nil)
     //Do what you want with the returned link (download the video or stream it from a webview on that case)
    self.webView.loadRequest(URLRequest(url: URL(string: link)!))


Checkout the Example App in the folder Example.


Simple Demo


The license used is under MIT.

Latest podspec

    "name": "YoutubeVideoLinkProcessor",
    "version": "1.0.1",
    "summary": "YoutubeVideoLinkProcessor give you the direct link of a Youtube Video to download it !",
    "description": "The goal was to create a library that gather the downloadable video url from a youtube video.nWe all know how it's a pain  to download a youtube video inside our gallery. nI'm sure all know many website in order to get the link of some mp4 video ! Now you can do it straightaway from your app",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Mohamed Arradi-Alaoui": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.1"
    "social_media_url": "",
    "platforms": {
        "ios": "8.0"
    "source_files": "YoutubeVideoLinkProcessor/Classes/**/*",
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This