The tiktok interface is designed to support API interface, such as jitter, Kwai, watermelon video, little red book and so on.

Vnil interface document

Vnil(https://www.vnil.cn)

Tiktok, K wai, volcano, video, today's headlines, clips, red books, micro-blog, QQ video, Tencent news, fun headlines, hot pot video, beautiful beat, car king, fast shadow, mini view, volcano video, pewter shrimp, good looking frequency, oasis, VUE, second pat, pear video, Duan You, brush treasure, shelter, all the small video. Momo video, Meitu XiuXiu, UC browser, tiktok, Twitter, Youtube, light video, bilibilibili, eggplant short video, inspiration, WIDE, eye opening, national karaoke, rightmost, little coffee show, Pipi funny, AcFun, Netease cloud music, Migu circle, Keep, pear vortex, Xiaoying, new studio, library, sunshine broadband network, Bixin, tease Short videos from more than 50 platforms such as Meijie are de Watermarked and analyzed.

Tiktok volcano, tiktok, two, the author's home page list analysis interface has been supported: shaking, watermelon videos, today's headlines, micro vision, small video, Bilibili, jitter, volcano, beauty pat, car, video, Tencent news, penguin, express, QQ browser, AcFun, light video, shelter, hot pot video, UC browser, etc.

About interfaces:

1,Interface adoption RESTful API Mode, without limiting the development language. Provided in the current document PHP and Python The code examples of the two languages are convenient for developers to access.
	
2,Interface support GET and POST Two parameter submission methods
	
3,For interface error code, please refer to "Appendix 1: description of error code"

1, De watermark analysis interface

URL: https://api.vnil.cn/api/parse/deal
Request method: GET/POST
Request parameters:

fieldtypeRequiredremarksassignment
appkeystringYappkeywww.vnil.cn developer background access
urlstringYResource address information to be resolved

Return field comments

Field namenotesremarks
codeError codeError code: please refer to the description of error code
msgerror messageError code: please refer to the description of error code
body
platformPlatformbody, such as taobao and xiaohongshu
urlurl requested by the developerbody
textCopywriting informationbody
coverCover map addressbody
imagesHD large picture collectionbody
video_infovideo information The video addresses of some platforms have validity limits and cannot be stored permanently

PHP instance code:

<?php
//appkey generated by the developer in the background
$appkey = '';
	
//url to resolve
$url = '';

$param = [
	'appkey'	=> $appkey,
	'url'		=> $url,
];

//Get the requested address: https://api.vnil.cn/api/parse/deal?appkey=appkey&url=url

$apiUrl = 'https://api.vnil.cn/api/parse/deal?'.http_build_query($param);

$ch = curl_init();
curl_setopt ( $ch, CURLOPT_URL, $apiUrl );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, FALSE );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, 0 );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYHOST, 0 );
curl_setopt ( $ch, CURLOPT_MAXREDIRS, 5 );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt ( $ch, CURLOPT_FOLLOWLOCATION, 1 );
curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 );
$content = curl_exec( $ch );
curl_close ( $ch);

print_r($content);

II Interface for obtaining author information:

Request address: https://api.vnil.cn/api/customparse/getAuthorInfo
Request method: GET/POST
Request parameters:

fieldtypeRequiredremarksassignment
appkeystringYappidappkey generated by the developer in the background
urlstringYAuthor sharing page url

Failed:

{"code":10001,"msg":"parameter lost","body":[]}

Return field comments

Field namenotesremarks
codeError codeError code: please refer to the description of error code
msgerror messageError code: please refer to the description of error code
body
uidAuthor uid
namenickname
numbernumber
short_idInternal short ID
avatarhead portrait
descbrief introduction
followerNumber of fans
focusNumber of concerns
likesNumber of likes
worksNumber of works

PHP EXAMPLE:

PHP file_get_contents:

//appkey generated by the developer in the background
$appkey = '';

//url of the author sharing page of the short video platform that needs to be parsed
$url= '';

$param = [
	'appkey'	=> $appkey,
	'url'		=> $url,
];

//Get the requested address: https://api.vnil.cn/api/customparse/getAuthorInfo?appid=&appsecret=&url=
$apiUrl = 'https://api.vnil.cn/api/customparse/getAuthorInfo?'.http_build_query($param);
$videoInfo = file_get_contents($apiUrl);
print_r($videoInfo);

Take PHP curl as an example:

//appkey generated by the developer in the background
$appkey = '';

//url of the author sharing page of the short video platform that needs to be parsed
$url= '';

$param = [
	'appkey'	=> $appkey,
	'url'		=> $url,
];

//Get the requested address: https://api.vnil.cn/api/customparse/getAuthorInfo?appid=&appsecret=&url=
$apiUrl = 'https://api.vnil.cn/api/customparse/getAuthorInfo?'.http_build_query($param);

$ch = curl_init();
curl_setopt ( $ch, CURLOPT_URL, $apiUrl );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, 0 );
curl_setopt ( $ch, CURLOPT_SSL_VERIFYHOST, 0 );
curl_setopt ( $ch, CURLOPT_MAXREDIRS, 5 );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt ( $ch, CURLOPT_FOLLOWLOCATION, 1 );
curl_setopt ( $ch, CURLOPT_TIMEOUT, 10 );
$content = curl_exec( $ch );
curl_close ( $ch);

print_r($content);

III Get a list of author works

Request address: https://api.vnil.cn/api/customparse/getList
Request method: GET/POST
Request parameters:

fieldtypeRequiredremarksassignment
appkeystringYappkeyappkey generated by the developer in the background
uidstringYAuthor uid (returned in the author information interface)
platformstringYPlatform information (returned in the author information interface)
cursorstringN"next_cursor" returned in the last call of this interface

Return result:

Return field comments

Field namenotesremarks
codeError codeError code: please refer to the description of error code
msgerror messageError code: please refer to the description of error code
body
descIntroduction to works video
video_urlNo watermark address
coverWork video cover
durationVideo duration: seconds
like_countNumber of likes
share_countShare number
to_parseWhether secondary parsing is required: when it is 0, it is not required; when it is 1, it is required
next_cursorPage turning request cursor
has_moreAre there moretrue indicates that there are more page turning requests, and false indicates that there is no page turning request

Access attention point

The instructions here are:
1,Returned works list“ video_url"It is the video address without watermark, if returned“ video_url"It is empty. To obtain video information without watermark, please"share_url"Call the de watermark resolution interface for the parameter
2,When"page"Lower"has_more"by"true"If yes, it means that there are still contents below. Please turn the page to get them"next_cursor"As a parameter"cursor",Call the current interface again(Get a list of author works)

Added by azuka on Fri, 18 Feb 2022 06:22:23 +0200