调用示例
$url = 'https://api.bugpk.com/api/xydetail';
$params = [
'key' => 'value' // 请替换实际参数
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . '?' . http_build_query($params));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
import requests
url = "https://api.bugpk.com/api/xydetail"
params = {
"key": "value" # 请替换实际参数
}
response = requests.get(url, params=params)
print(response.text)
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class ApiTest {
public static void main(String[] args) {
try {
String url = "https://api.bugpk.com/api/xydetail?key=value";
URL obj = new URL(url);
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
}
const url = 'https://api.bugpk.com/api/xydetail';
const params = new URLSearchParams({
key: 'value' // 请替换实际参数
});
fetch(`${url}?${params}`)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
返回结果示例
{
"code": 200,
"msg": "success",
"data": {
"city": "北京",
"signature": null,
"userRegDay": 2436,
"hasSoldNumInteger": 2,
"nick": "JHAhua",
"sellerId": 2200581743033,
"lastVisitTime": "14小时前来过",
"replyRatio24h": "100%",
"replyInterval": "2小时",
"registerTime": 1544709841000,
"text": null,
"portraitUrl": "http://img.alicdn.com/bao/uploaded/i3/O1CN01rjJWVV1YHAJXDe1U9_!!4611686018427380153-0-mtopupload.jpg",
"wantCnt": 14,
"browseCnt": 331,
"soldPrice": 1,
"desc": "【开源项目】2025年最新短视频解析接口源码,github已开源!
麻烦点点star★★
目前支持平台:抖音,快手,小红书,微博,皮皮虾,皮皮搞笑,哔哩哔哩,网易云,汽水音乐,酷我音乐,QQ音乐,微视,最右。
github地址:https://github.com/jiuhunwl/short_videos
解析体验地址sv.bugpk.com
【勿拍】【勿拍】【勿拍】",
"playUrl": null,
"images": [
"http://img.alicdn.com/bao/uploaded/i3/O1CN01XMCQ1d1YHAL7ckZdv_!!4611686018427380153-53-fleamarket.heic",
"http://img.alicdn.com/bao/uploaded/i1/O1CN01WakcM21YHAJzdLUYg_!!4611686018427380153-53-fleamarket.heic",
"http://img.alicdn.com/bao/uploaded/i3/O1CN01LFzdnW1YHAKNvW7H2_!!4611686018427380153-53-fleamarket.heic"
],
"cpvLabels": "无标签",
"starttime": 1755247031.780418,
"endtime": 1755247033.509676,
"process_time_seconds": 1.729258
}
}
返回参数说明
| 参数名 |
类型 |
说明 |
示例 |
| code |
int |
响应码 |
|
| msg |
string |
解析结果 |
|
| data |
json |
商品数据 |
|