这是我们的API,可帮助您轻松开发应用程序!

Basic

$ 0 /月
$ 0 /月
对于只希望基本知识快速入门的个人。
  • 1000 / 日配额
    + ($0.1 USD)
  • 50 / 日配额
    (Hard Limit)

Pro

$ 12.5 /月
$ 17.5 /月
对于需要更大数量的应用程序的专业人士。
  • 5000 / 日配额
    + ($0.003 USD)
  • 7500 / 日配额
    + ($0.1 USD)

Ultra

$ 30 /月
$ 27.5 /月
对于从事大规模应用程序的专业人员。
 
  • 20000 / 日配额
    + ($0.001 USD)
  • 15000 / 日配额
    + ($0.1 USD)

Mega

$ 60 /月
$ 47.5 /月
对于需要大量,生产级别使用的企业。
  • 50000 / 日配额
    + ($0.001 USD)
  • 45000 / 日配额
    + ($0.1 USD)

API的文档

您可以将任何Youtube视频转换为mp3(音频)或mp4(视频)

您可以在php中将API与Unirest一起使用!不仅有此方法,而且Php也可以连接到API!

$response = Unirest\Request::get("https://download-video-youtube1.p.rapidapi.com/{format}/{YouTube-Video-ID}?stime={Start}&etime={End}",
  array(
    "X-RapidAPI-Host" => "download-video-youtube1.p.rapidapi.com",
    "X-RapidAPI-Key" => "gh1gb68a3pfly2018cb9740c6909p18y34fjsn2d85p184bb0b"
      )
);

哪里 {format} 是以下之一 :

  • "mp3" : 用于MP3结果
  • "videos" : 视频带音频结果
  • "mp3-mp4" : 用于mp3和视频结果

{YouTube-Video-ID} 是任何有效的YouTube视频ID。

可选的 {Start} & {End} :

  • "Start" : 您希望视频开始播放的时间(例如00:01:00)
  • "End" : 您希望视频停止播放的时间(例如00:02:00)

如果您有错误(即使是最好的错误也会发生),即 error : true 错误代码如下 :

  • "403" : 无法生成下载URL
  • "400" : 无效的格式。请查看以前提交的格式
  • "404" : 找不到流
  • "451" : 应版权所有者的要求,该视频已被屏蔽
  • "415" : JSON回应无效
$response = Unirest\Request::get("https://download-video-youtube1.p.rapidapi.com/mp3/P0OCoCCMsUc",
                  array(
                    "X-RapidAPI-Host" => "download-video-youtube1.p.rapidapi.com",
                    "X-RapidAPI-Key" => "gh1gb68a3pfly2018cb9740c6909p18y34fjsn2d85p184bb0b"
                      )
                );
                

产生这个 :

{
  "vidID": "P0OCoCCMsUc",
  "vidTitle": "PNL - J'Comprends pas [Clip Officiel]",
  "vidThumb": "https://img.youtube.com/vi/P0OCoCCMsUc/0.jpg",
  "duration": 257,
  "vidInfo":{
      "0":{
          "dloadUrl": "https://dl.mp3-download.yt/@download/251-5ec153ebafa07-10280000-257-320-webm-4122938/mp3/P0OCoCCMsUc/PNL%2B-%2BJ%2526%2523039%253BComprends%2Bpas%2B%255BClip%2BOfficiel%255D.mp3",
          "bitrate": 320,
          "mp3size": "9.8 MB"
      },
      "1":{
          "dloadUrl": "https://dl.mp3-download.yt/@download/251-5ec153ebafa07-8224000-257-256-webm-4122938/mp3/P0OCoCCMsUc/PNL%2B-%2BJ%2526%2523039%253BComprends%2Bpas%2B%255BClip%2BOfficiel%255D.mp3",
          "bitrate": 256,
          "mp3size": "7.84 MB"
      },
      "2":{
          "dloadUrl": "https://dl.mp3-download.yt/@download/251-5ec153ebafa07-6168000-257-192-webm-4122938/mp3/P0OCoCCMsUc/PNL%2B-%2BJ%2526%2523039%253BComprends%2Bpas%2B%255BClip%2BOfficiel%255D.mp3",
          "bitrate": 192,
          "mp3size": "5.88 MB"
      },
      "3":{
          "dloadUrl": "https://dl.mp3-download.yt/@download/251-5ec153ebafa07-4112000-257-128-webm-4122938/mp3/P0OCoCCMsUc/PNL%2B-%2BJ%2526%2523039%253BComprends%2Bpas%2B%255BClip%2BOfficiel%255D.mp3",
          "bitrate": 128,
          "mp3size": "3.92 MB"
      },
      "4":{
          "dloadUrl": "https://dl.mp3-download.yt/@download/251-5ec153ebafa07-2056000-257-64-webm-4122938/mp3/P0OCoCCMsUc/PNL%2B-%2BJ%2526%2523039%253BComprends%2Bpas%2B%255BClip%2BOfficiel%255D.mp3",
          "bitrate": 64,
          "mp3size": "1.96 MB"
      }
    }
  }
        
$response = Unirest\Request::get("https://download-video-youtube1.p.rapidapi.com/videos/P0OCoCCMsUc",
                  array(
                    "X-RapidAPI-Host" => "download-video-youtube1.p.rapidapi.com",
                    "X-RapidAPI-Key" => "gh1gb68a3pfly2018cb9740c6909p18y34fjsn2d85p184bb0b"
                      )
                );
                

产生这个 :

{
  "vidID": "P0OCoCCMsUc",
  "vidTitle": "PNL - J'Comprends pas [Clip Officiel]",
  "vidThumb": "https://img.youtube.com/vi/P0OCoCCMsUc/0.jpg",
  "duration": 257,
  "vidInfo":{
      "0":{
          "rSize": "12.68 MB",
          "quality": "360",
          "directurl": "https://redirector.googlevideo.com/videoplayback?type=video%252Fmp4%253B%2Bcodecs%253D%2522avc1.42001E%252C%2Bmp4a.40.2%2522&quality=medium&sp=sig&expire=1589776288&ei=QLvBXqGLCtqA7gOMv72oBQ&ip=196.19.9.176&id=o-AG0eyLpf44YIUsW4KeZH95ntOqRZt3SKYxKgkH0PKg6e&itag=18&source=youtube&requiressl=yes&mh=vC&mm=31%2C26&mn=sn-4g5e6ns6%2Csn-5hnekn7l&ms=au%2Conr&mv=m&mvi=2&pl=22&initcwndbps=897500&vprv=1&mime=video%2Fmp4&gir=yes&clen=13300460&ratebypass=yes&dur=256.696&lmt=1541630795064286&mt=1589754632&fvip=3&beids=9466585&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAJ1E6yLXZpDSObcxcvmnBNIf1w2JZl-JK1NzbuRYCKrBAiB0TnNGhvpZ-dymPxK1EE_mfE1mk7Pyvj2IODkCsZKwQQ%3D%3D&sig=AOq0QJ8wRQIgLJSUhtyNOLtwUGPUnBbE0HSeaS5_nECpb9Cn97FxzVMCIQDTppgIaMuKQL-0HAgWWAxRUSExSVQsR6RmRs-wCE1BkA%3D%3D&title=PNL%2B-%2BJ%2527Comprends%2Bpas%2B%255BClip%2BOfficiel%255D",
          "dloadUrl": "https://dl.mp3-download.yt/@download/18-5ec264c41ac4b-mp4-13300460/videos/P0OCoCCMsUc/PNL%2B-%2BJ%2526%2523039%253BComprends%2Bpas%2B%255BClip%2BOfficiel%255D.mp4",
          "ftype": "mp4",
          "framerate": "",
          "bitrate": "",
          "codec": "",
          "itag": 18
      }
  }
}
                          
$response = Unirest\Request::get("https://download-video-youtube1.p.rapidapi.com/mp3-mp4/P0OCoCCMsUc",
                  array(
                    "X-RapidAPI-Host" => "download-video-youtube1.p.rapidapi.com",
                    "X-RapidAPI-Key" => "gh1gb68a3pfly2018cb9740c6909p18y34fjsn2d85p184bb0b"
                      )
                );
                

产生这个 :

{
  "vidID": "P0OCoCCMsUc",
  "vidTitle": "PNL - J'Comprends pas [Clip Officiel]",
  "vidThumb": "https://img.youtube.com/vi/P0OCoCCMsUc/0.jpg",
  "duration": 257,
  "vidInfo":{
    "mp3":{
      "0":{
          "dloadUrl": "https://dl.mp3-download.yt/@download/251-5ec265fa5fdb9-10280000-257-320-webm-4122938/mp3/P0OCoCCMsUc/PNL%2B-%2BJ%2526%2523039%253BComprends%2Bpas%2B%255BClip%2BOfficiel%255D.mp3",
          "bitrate": 320,
          "mp3size": "9.8 MB"
      },
      "1":{
          "dloadUrl": "https://dl.mp3-download.yt/@download/251-5ec265fa5fdb9-8224000-257-256-webm-4122938/mp3/P0OCoCCMsUc/PNL%2B-%2BJ%2526%2523039%253BComprends%2Bpas%2B%255BClip%2BOfficiel%255D.mp3",
          "bitrate": 256,
          "mp3size": "7.84 MB"
      },
      "2":{
          "dloadUrl": "https://dl.mp3-download.yt/@download/251-5ec265fa5fdb9-6168000-257-192-webm-4122938/mp3/P0OCoCCMsUc/PNL%2B-%2BJ%2526%2523039%253BComprends%2Bpas%2B%255BClip%2BOfficiel%255D.mp3",
          "bitrate": 192,
          "mp3size": "5.88 MB"
      },
      "3":{
          "dloadUrl": "https://dl.mp3-download.yt/@download/251-5ec265fa5fdb9-4112000-257-128-webm-4122938/mp3/P0OCoCCMsUc/PNL%2B-%2BJ%2526%2523039%253BComprends%2Bpas%2B%255BClip%2BOfficiel%255D.mp3",
          "bitrate": 128,
          "mp3size": "3.92 MB"
      },
      "4":{
          "dloadUrl": "https://dl.mp3-download.yt/@download/251-5ec265fa5fdb9-2056000-257-64-webm-4122938/mp3/P0OCoCCMsUc/PNL%2B-%2BJ%2526%2523039%253BComprends%2Bpas%2B%255BClip%2BOfficiel%255D.mp3",
          "bitrate": 64,
          "mp3size": "1.96 MB"
      }
    },
    "mp4":{
          "0":{
              "rSize": "12.68 MB",
              "quality": "360",
              "directurl": "https://redirector.googlevideo.com/videoplayback?type=video%252Fmp4%253B%2Bcodecs%253D%2522avc1.42001E%252C%2Bmp4a.40.2%2522\u0026quality=medium\u0026sp=sig\u0026expire=1589819993\u0026ei=-WXCXrPhD8vIgAeVmIDgBg\u0026ip=196.19.9.176\u0026id=o-AN4yDS4_o02Lp862FLOVnkmRguclZyV9WbXtd7nlmnMi\u0026itag=18\u0026source=youtube\u0026requiressl=yes\u0026mh=vC\u0026mm=31%2C26\u0026mn=sn-4g5e6ns6%2Csn-5hne6nsr\u0026ms=au%2Conr\u0026mv=m\u0026mvi=2\u0026pl=22\u0026initcwndbps=498750\u0026vprv=1\u0026mime=video%2Fmp4\u0026gir=yes\u0026clen=13300460\u0026ratebypass=yes\u0026dur=256.696\u0026lmt=1541630795064286\u0026mt=1589798314\u0026fvip=3\u0026beids=9466586\u0026c=WEB\u0026txp=5531432\u0026sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt\u0026lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps\u0026lsig=AG3C_xAwRgIhALx9gewnIT2aG8UwDhT0rLEtn6BHeRgAL-Ua57xyMsVXAiEA9CjLpNszRt0-Uiuw280XgIWTbWn4ZYQGZSvzKBjCFYY%3D\u0026sig=AOq0QJ8wRQIgWlBavYj_9MFkrS_-Nu0afJ_4loMWmwP7JhBsNW7xJE0CIQDLqPfH90KyuM4oSfjU0x42ZCM0fSa3J0sjqETxbmlC0w%3D%3D\u0026title=PNL%2B-%2BJ%2527Comprends%2Bpas%2B%255BClip%2BOfficiel%255D",
              "dloadUrl": "https://dl.mp3-download.yt/@download/18-5ec265fa5fdb9-mp4-13300460/videos/P0OCoCCMsUc/PNL%2B-%2BJ%2526%2523039%253BComprends%2Bpas%2B%255BClip%2BOfficiel%255D.mp4",
              "ftype": "mp4",
              "framerate": "",
              "bitrate": "",
              "codec": "",
              "itag": 18
              }
            }
          }
        }

经常问的问题

信用卡由RapidApi网站上的PCI兼容银行合作伙伴处理。
我们建议您使用我们的API,以便您的服务器不会过载,并在转换方面具有安全性。您只需要稍等片刻,您将获得几个下载链接或与执行搜索有关的所有信息。
您无法转换Dailymotion,Vimeo,Twitter,Instagram等视频。我们的YouTube Mp3 Converter API仅允许您转换YouTube视频。
根据计划的规格,您将不得不支付超额费用或被停职。例如,如果您选择了BASIC计划并且提出了1200个请求,则您将额外支付20美元。
对于YouTube转换器API,最大延迟时间为2-3秒。此外,对于YouTube搜索API,延迟时间不到1秒。这使我们的API成为市场上最好的API。

还有更多问题吗?

联系我们 😃. 我们非常乐于提供帮助。

立即开始

选择最适合您的计划,然后立即转换/搜索YouTube视频!