VideoFk API Doc

Use this tool for the first time?Sign up now


Description:

This interface only supports "Youtube, Bilibili, Tumblr" video download. The advantages of comparing websites are as follows:

  • The website query can be found up to "9" records. The API interface can query up to "68" records.
  • Website query "Youtube" does not provide reoptions, API interface is available.
  • Website query "Youtube" list query does not provide subtitles and MP3 downloads, API interface is available. .
  • ...

Account description


  • Get the registration code: Add a public account by using WeChat, reply "register", you will receive a temporary password message.。
  • Website registration: Click on the website "Register now", fill in the temporary password, new mobile number and login password, and you can directly use the mobile phone number and password you set next time
  • Reset password: If you have forgotten your login password, you can reply to “Crowd” in the public number and you will receive a new login password.
  • Number of queries: If you want to see how many times the current account has more queries, you can reply to the number of times in the public number, and you will receive the number of times your account has left.

The newly registered account is free of 10。

Payment instructions


Paying through WeChat scan code, support the server and interface fees of the webmaster, and put more effort into improving the website function.

  • Record the query only if the query is successful and there is data back.。
  • After logging in, click on the number of purchases, 1 yuan = 30times, please leave your mobile number in the note.
  • If you have any questions, please my WeChat for consultation.

Support query link


Youtube

  • playlist:https://www.youtube.com/playlist?list=UUJ1U-sS5pyuTG0fRIpQYEww
  • Single video:https://www.youtube.com/watch?v=rzTBJL759TQ

Bilibili

  • playlist:https://space.bilibili.com/777536
  • Single video:https://www.bilibili.com/video/av18857413

Tumblr

  • playlist:http://katudaisoku.tumblr.com
  • Single video:https://www.tumblr.com/docs/en/api/v1

lang_api_remark


Resources URL

GET https://www.videofk.com/vip/v1?api_key=#Please login to get#&url=#Query link#

Resources Properties:

Property Description Youtube Bilibili Tumblr
titleVideo title Y Y Y
imagecover picture Y Y Y
urlDownload link Y Y Y
mp3Mp3 download link Y N N
srtsSubtitle download link Y N N

Status:


Bilibili:

{
    "status": 1,
    "data": [
        {
            "url": "http:\/\/cn-jsnj3-cmcc-v-02.acgvideo.com/upgcxcode/69/12/44171269/44171269-1-6.mp4?expires=1533231900&platform=html5&ssig=LRO9kPy8Ik7fip-4DJnvdg&oi=1974896048&nfa=7VMUDqBQpI8VGBbhQ1faUQ==&dynamic=1&hfa=2035288589&hfb=M2Y2ZWYwZjM2YmRiYmY5MDljYTBiOWE2ZmEwYjJmYTM=&trid=ed03b39ce41d48a988e64dfc408fa4f3&nfc=1",
            "title": "【Lex】史上最NB新番,它改变了中国的“二次元”!",
            "image": "https://i0.hdslb.com/bfs/archive/8ac9541e9b1cf7bdd6b2e018d4f5a02b0d673818.jpg"
        },
        {
            "url": "http:\/\/cn-zjtz-cmcc-v-03.acgvideo.com/upgcxcode/52/89/48368952/48368952-1-6.mp4?expires=1533231900&platform=html5&ssig=bZ6Z6_gMAe9zjeLbosz_QQ&oi=1974896048&nfa=7VMUDqBQpI8VGBbhQ1faUQ==&dynamic=1&hfa=2035288587&hfb=M2Y2ZWYwZjM2YmRiYmY5MDljYTBiOWE2ZmEwYjJmYTM=&trid=bc49ff984d064db48be117d7b97721e5&nfc=1",
            "title": "【Lex】补番报告!2017年B站最厉害的正版新番!",
            "image": "https://i1.hdslb.com/bfs/archive/55708aca00e10a476da01cdab1be3a2276a5ee01.jpg"
        },
        ....
    ]
}


Youtube:
{
    "status": 1,
    "data": [
        {
            "title": "기이한 능력을 타고난 유튜버",
            "image": "https://img.youtube.com/vi/ZG-Cb2_2rNQ/maxresdefault.jpg",
            "url": {
                "17": {
                    "url": "https://r5---sn-i3beln7k.googlevideo.com/videoplayback?key=yt6&initcwndbps=2287500&c=WEB&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&clen=6979908&expire=1533316439&lmt=1508715491822933&ipbits=0&requiressl=yes&signature=06AD0AA9DA85F56313EDDA7F5D4B661B7814B2D9.16A3CA20E4624E01FB84DA10B1048C9D2CD5B69A&mime=video%2F3gpp&dur=710.391&itag=17&ip=47.91.223.137&gir=yes&mm=31%2C29&source=youtube&mn=sn-i3beln7k%2Csn-i3b7knl6&ei=9jhkW-SMOteLqQG7-bDYCg&id=o-AF31oQ3jQg4mcOU3L61SfAHojtydqbpEYe2cNBrp4zze&ms=au%2Crdu&mt=1533294766&pl=17&mv=m&fvip=5",
                    "format": "3GP144P"
                },
                "18": {
                    "url": "https://r5---sn-i3beln7k.googlevideo.com/videoplayback?key=yt6&initcwndbps=2287500&c=WEB&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&clen=46884523&expire=1533316439&lmt=1508716243447219&ipbits=0&requiressl=yes&signature=929ECE44CF2FFC542B637FE82B7272E6C86AA709.A4C80FCB381E937F8005F74D2695298A5A224ABC&mime=video%2Fmp4&dur=710.344&itag=18&ratebypass=yes&ip=47.91.223.137&gir=yes&mm=31%2C29&source=youtube&mn=sn-i3beln7k%2Csn-i3b7knl6&ei=9jhkW-SMOteLqQG7-bDYCg&id=o-AF31oQ3jQg4mcOU3L61SfAHojtydqbpEYe2cNBrp4zze&ms=au%2Crdu&mt=1533294766&pl=17&mv=m&fvip=5",
                    "format": "360P"
                }
            },
            "mp3": {
                "133": {
                    "url": "https://r5---sn-i3b7knl6.googlevideo.com/videoplayback?sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2%2Cpl%2Crequiressl%2Csource%2Cexpire&gir=yes&pcm2=yes&requiressl=yes&clen=10042366&key=yt6&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&ip=47.91.223.137&keepalive=yes&itag=133&mm=31%2C29&ipbits=0&mn=sn-i3b7knl6%2Csn-i3beln7k&source=youtube&mv=m&mime=video%2Fmp4&ms=au%2Crdu&signature=361051A827810AC6C706542B560DB7FF3D4EB592.795DE7F1A2A9F5F2C0F9FE4D56C4734ED496AB5F&dur=710.292&fvip=5&initcwndbps=2287500&id=o-ABW9CisDF_TP97Um4uT0-Sqzkr5yugS2RnREDp8h-RKZ&pl=17&c=WEB&ei=9jhkW9bqIoSeqQH9lYjABA&mt=1533294766&lmt=1508716180648862&expire=1533316438",
                    "format": "Unknown",
                    "type": "video/mp4; codecs=\"avc1.4d4015\"",
                    "clen": "10042366"
                },
                "134": {
                    "url": "https://r5---sn-i3b7knl6.googlevideo.com/videoplayback?sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2%2Cpl%2Crequiressl%2Csource%2Cexpire&gir=yes&pcm2=yes&requiressl=yes&clen=24574029&key=yt6&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&ip=47.91.223.137&keepalive=yes&itag=134&mm=31%2C29&ipbits=0&mn=sn-i3b7knl6%2Csn-i3beln7k&source=youtube&mv=m&mime=video%2Fmp4&ms=au%2Crdu&signature=49165F7C81C9B1164EC48CA6692A951DC4028117.0113A1C19F1638080B5DF15A3DD2B0A3B890F6AE&dur=710.292&fvip=5&initcwndbps=2287500&id=o-ABW9CisDF_TP97Um4uT0-Sqzkr5yugS2RnREDp8h-RKZ&pl=17&c=WEB&ei=9jhkW9bqIoSeqQH9lYjABA&mt=1533294766&lmt=1508716180552082&expire=1533316438",
                    "format": "Unknown",
                    "type": "video/mp4; codecs=\"avc1.4d401e\"",
                    "clen": "24574029"
                },
                "135": {
                    "url": "https://r5---sn-i3b7knl6.googlevideo.com/videoplayback?sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2%2Cpl%2Crequiressl%2Csource%2Cexpire&gir=yes&pcm2=yes&requiressl=yes&clen=46934043&key=yt6&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&ip=47.91.223.137&keepalive=yes&itag=135&mm=31%2C29&ipbits=0&mn=sn-i3b7knl6%2Csn-i3beln7k&source=youtube&mv=m&mime=video%2Fmp4&ms=au%2Crdu&signature=44D62A0B47C7C911DDF071EA0F1170EC824F15F6.DEC0AB272509F63FA19811B0EBFC93BFFEA89C05&dur=710.292&fvip=5&initcwndbps=2287500&id=o-ABW9CisDF_TP97Um4uT0-Sqzkr5yugS2RnREDp8h-RKZ&pl=17&c=WEB&ei=9jhkW9bqIoSeqQH9lYjABA&mt=1533294766&lmt=1508716180647343&expire=1533316438",
                    "format": "Unknown",
                    "type": "video/mp4; codecs=\"avc1.4d401e\"",
                    "clen": "46934043"
                }
            }
        }
    ]
}

Tumblr:
{
    "status": 1,
    "data": [
        {
            "title": "",
            "image": "https://78.media.tumblr.com/tumblr_p03n5fIrNr1s6441y_smart1.jpg",
            "url": "https://vt.media.tumblr.com/tumblr_p03n5fIrNr1s6441y.mp4"
        },
        {
            "title": "",
            "image": "https://78.media.tumblr.com/tumblr_p002dfcHJP1uci7qt_smart1.jpg",
            "url": "https://vt.media.tumblr.com/tumblr_p002dfcHJP1uci7qt_720.mp4"
        },
        {
            "title": "have you ever heard a line as relatable as this one",
            "image": "https://78.media.tumblr.com/tumblr_okb4d6k8A81tnt2fv_smart1.jpg",
            "url": "https://vt.media.tumblr.com/tumblr_okb4d6k8A81tnt2fv.mp4"
        }
    ]
}

Code: Java Download Video Code Example:


package com.hubs;

import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;


public class DownVideo {

	public static void main(String[] args) {
		String video_url ="https://r2---sn-i3b7kn7d.googlevideo.com/videoplayback?clen=82678105&mt=1543816471&c=WEB&fvip=2&lmt=1539948346466520&dur=2300.308&ratebypass=yes&mn=sn-i3b7kn7d%2Csn-i3belnel&initcwndbps=2422500&requiressl=yes&key=yt6&mime=video%2Fmp4&gir=yes&itag=18&txp=5431432&signature=D914478176ACCD8812E1BA14305C5BA88663EBAD.BF80A1113035CE4673B2089F172622E806B6F1BA&ip=47.91.223.137&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&source=youtube&pl=20&mv=m&ipbits=0&ms=au%2Crdu&ei=UcUEXJylGpnpgQO-qa8o&expire=1543838129&mm=31%2C29&id=o-ABowK58DwKoxInPPWro3tzkBRFi-S1gs6x0t2WQ96qlr";
		try{
			downVideo(video_url);
		}catch(Exception e){
			e.printStackTrace();
		}

	}

	private static void downVideo(String video_url) throws Exception{
	    URL url = new URL(video_url);
	    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
	    conn.setRequestMethod("GET");
	    long alreadySize = 0;
	    File file = new File("/Users/hubs/Desktop/hello.mp4");
	    if (file.exists()) {
	        alreadySize = file.length();
	    }
	    /**
	     * Range头域可以请求实体的一个或者多个子范围。 例如: 表示头500个字节:bytes=0-499
	     * 表示第二个500字节:bytes=500-999 表示最后500个字节:bytes=-500
	     * 表示500字节以后的范围:bytes=500- 第一个和最后一个字节:bytes=0-0,-1
	     * 同时指定几个范围:bytes=500-600,601-999
	     * 但是服务器可以忽略此请求头,如果无条件GET包含Range请求头,响应会以状态码206(PartialContent)返回而不是以200
	     * (OK)。
	     */
	    conn.addRequestProperty("range", "bytes=" + alreadySize + "-");
	    conn.connect();

	    // 206,一般表示断点续传
	    // 获取服务器回馈的状态码
	    int code = conn.getResponseCode();
	    // 如果响应成功,因为使用了range请求头,那么响应成功的状态码为206,而不是200
	    if (code == 206) {
	        // 获取未下载的文件的大小
	        // 本方法用来获取响应正文的大小,但因为设置了range请求头,那么这个方法返回的就是剩余的大小
	        long unfinishedSize = conn.getContentLength();
	        // 文件的大小
	        long size = alreadySize + unfinishedSize;

	        // 获取输入流
	        InputStream in = conn.getInputStream();
	        // 获取输出对象,参数一:目标文件,参数2表示在原来的文件中追加
	        OutputStream out = new BufferedOutputStream(new FileOutputStream(file, true));

	        // 开始下载
	        byte[] buff = new byte[2048];
	        int len;
	        while ((len = in.read(buff)) != -1) {
	            out.write(buff, 0, len);
	            // 将下载的累加到alreadSize中
	            alreadySize += len;
	            // 下载进度
	            System.out.printf("%.2f%%\n", alreadySize * 1.0 / size * 100);
	            // 由于文件大小可以看得到,那么我们这里使用阻塞
	            //Thread.sleep(2);
	            //break;
	        }
	        out.close();
	        System.out.println("下载完成!!!");
	    } else {
	        System.out.println("下载失败!!!");
	    }

	    // 断开连接
	    conn.disconnect();
	}
}