https://api.8k8.im/api/xy/dfcx
https://api.8k8.im/api/xy/dfcx
1北京 2天津 3辽宁 4江苏 5浙江 6山东 7湖南 8陕西 9冀北 10新疆 11宁夏 12安徽 13重庆 14福建 15河南 16青海 17湖北 18蒙东 19黑龙江 20吉林 21上海 22甘肃 23山西 24四川 25江西 26河北
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 你的key |
| account | string | 是 | 户号 |
| areaCode | string | 否 | 户号地区编号 |
| 状态码 | 说明 |
|---|
<?php
$url = 'https://api.8k8.im/api/xy/dfcx';
$params = ['key' => 'YOUR_VALUE', 'account' => 'YOUR_VALUE', 'areaCode' => 'YOUR_VALUE', ];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>import requests
url = "https://api.8k8.im/api/xy/dfcx"
params = {
"key": "YOUR_VALUE",
"account": "YOUR_VALUE",
"areaCode": "YOUR_VALUE",
}
response = requests.get(url, params=params)
print(response.text)const url = new URL('https://api.8k8.im/api/xy/dfcx');
const params = {
"key": "YOUR_VALUE",
"account": "YOUR_VALUE",
"areaCode": "YOUR_VALUE",
};
Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
fetch(url)
.then(response => response.text())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));| 参数名 | 类型 | 说明 | 参数示例 |
|---|---|---|---|
| success | bool | 是否请求成功 true or false | true |
| code | int | 请求状态码 200或其他 | 200 |
| msg | string | 请求说明 | 请求成功 |
| data | string | 请求数据集 | null |