去轉盤網API接口參數說明

[email protected] ?3年前 ?閱讀:1873次

大家好,我是管理員。應很多站長、媒體人、愛好者的要求,去轉盤留出了api接口以供qq群、微信公眾號、網站、小程序等對接。

1、接口如下:

http://www.alckmc.live/api/search_data_wcl?q=hello&currentPage=1&pageSize=10&auth=anyone&highlight=0

2、輸入參數解析:

q:查詢關鍵字,不能為空格,空字符串

currentPage:當前頁數,需為大于1的整數

pageSize:請求頁大小,最大值為20

auth:唯一認證碼,示例為anyone,任何人可以參看(不具備實用功能)

highlight:搜索結果是否高亮,0為不高亮,1為高亮,默認不高亮

auth是您可以使用去轉盤api的唯一標識,任何注冊了去轉盤的用戶皆有權使用,請到這里去獲取:點我獲取auth

3、輸出參數解析:

{"amount":600,"invalidate":0,"source":[{"name":"SD Card Test Pro-v1.5.4_build_43.apk_去轉盤網_www.alckmc.live","uid":"1871015658","shareId":"1434821318","url":"1Ue9SmC6p9hk4bzlX7djRKw","username":"zn***cc","id":14959,"shareTime":1521380763000,"typeId":-1,"showUrl":"https://pan.baidu.com/s/1Ue9SmC6p9hk4bzlX7djRKw","describ":null,"size":"1.6 MB","belong":0,"category":"5","categoryName":"軟件","likeCount":0,"commentCount":0,"hot":0,"isDir":0,"dirName":"文件","dircount":1,"fileCount":1,"homePageUrl":"https://pan.baidu.com/share/home?uk=1871015658","detailUrl":"download/detail.action?id=1Ue9SmC6p9hk4bzlX7djRKw"},{"name":"SD+Card+Test+Pro-v1.5.4_build_43.apk_去轉盤網_www.alckmc.live","uid":"1093731083","shareId":"3317515796","url":"1gKRiMUjd-0dteXQVGFVlmw","username":"et***x5","id":10476,"shareTime":1521371535000,"typeId":-1,"showUrl":"https://pan.baidu.com/s/1gKRiMUjd-0dteXQVGFVlmw","describ":null,"size":"1.6 MB","belong":0,"category":"5","categoryName":"軟件","likeCount":0,"commentCount":0,"hot":0,"isDir":0,"dirName":"文件","dircount":1,"fileCount":1,"homePageUrl":"https://pan.baidu.com/share/home?uk=1093731083","detailUrl":"download/detail.action?id=1gKRiMUjd-0dteXQVGFVlmw"},{"name":"new_tdx_test0317.rar_去轉盤網_www.alckmc.live","uid":"2669902728","shareId":"2130290477","url":"1QgGFDeNEFtyKt-P2CTs12g","username":"分**公式","id":7909,"shareTime":1521308982000,"typeId":-1,"showUrl":"https://pan.baidu.com/s/1QgGFDeNEFtyKt-P2CTs12g","describ":null,"size":"48.8 MB","belong":0,"category":"6","categoryName":"壓縮包","likeCount":0,"commentCount":0,"hot":0,"isDir":0,"dirName":"文件","dircount":1,"fileCount":1,"homePageUrl":"https://pan.baidu.com/share/home?uk=2669902728","detailUrl":"download/detail.action?id=1QgGFDeNEFtyKt-P2CTs12g"}]}

輸出結果為json數據類型

error: 為1表示出錯(出錯才顯示)

message:出錯原因(出錯才顯示)

amount:一共搜索到多少數據

source:搜索結果,現分別對結果參數做簡要說明:

category:分類編號
categoryName:分類名稱
commentCount:評論數
describ:描述
dirName:目錄名字
dircount:目錄數量
fileCount:文件數量
hot:熱度
isDir:是否是文件夾,1是,0不是
likeCount:點贊數
name:資源名稱,默認加了去轉盤字樣水印
shareId:分享id,重要
uid:百度用戶id,重要
ps:這里強調說明 https://pan.baidu.com/share/link?uk=uid&shareid=shareId 即為資源下載鏈接
shareTime:資源分享時間
showUrl:下載鏈接
size:資源大小
url:下載短碼,也可以組成下載鏈接,如:http://pan.baidu.com/s/1mgvFca0, 1mgvFca0部分即為短碼
username:分享人
其他一切參數請忽略

4、轉義字符如何過濾(僅供參考)

java為例,其他語言類推:
html=html.replace("\\","");//獲得無轉義字符的json字符串

5、js如何解析json(僅供參考)

amount=rec.amount                                                                   
list=rec.source

for(var i=0;i<list.length;i++){
	var obj=list[i];
	buildHtml(obj);
}

function buildHtml(obj){
	do something;
}



注:如果沒有解析成功,麻煩百度下js解析json,都很簡單,上邊的代碼僅供參考。python、java、php等語言的解析也麻煩百度下,都很簡單的。

6、使用說明

賬號認證:點擊這里去認證 獲得auth

任何認證賬號默認可以免費使用20000 次http 請求。

超過部分開始計費,價格為 2.3¥/10000 http請求,也就是1000次兩毛錢左右。

付費請說明購買量,付款后發郵件到[email protected],我們看到后會自動為您加量

有問題可以加qq:3047689758 或者微信:quzhuanpan

申明:由于團隊人力有限,拒絕無聊咨詢,拒絕無聊盤問,拒絕惡意添加,謝謝配合。




2
分享 微信掃一掃 舉報
竞赛足球半全场开奖结果