| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| vin | string | 是 | 车架号 |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| manufacturer | string | 厂家名称 |
| brand | string | 品牌 |
| cartype | string | 车型 |
| name | string | 名称 |
| yeartype | string | 年款 |
| environmentalstandards | string | 排放标准 |
| comfuelconsumption | string | 油耗 |
| engine | string | 发动机 |
| gearbox | string | 变速箱 |
| drivemode | string | 驱动方式 |
| carbody | string | 车身形式 |
| fronttiresize | string | 前轮胎尺寸 |
| reartiresize | string | 后轮胎尺寸 |
| vin | string | 车架号 |
<?php
require_once 'curl.func.php';
$appkey = 'your_appkey_here';//你的appkey
$vin = 'LSVAL41Z882104202';
$url = "https://api.binstd.com/vin/query?appkey=$appkey&vin=$vin";
$result = curlOpen($url, ['ssl'=>true]);
$jsonarr = json_decode($result, true);
//exit(var_dump($jsonarr));
if($jsonarr['status'] != 0)
{
echo $jsonarr['msg'];
exit();
}
$result = $jsonarr['result'];
echo $result['manufacturer'].' '.$result['brand'].' '.$result['cartype'].'
';
echo $result['name'].' '.$result['yeartype'].' '.$result['environmentalstandards'].'
';
echo $result['comfuelconsumption'].' '.$result['engine'].' '.$result['gearbox'].'
';
echo $result['drivemode'].' '.$result['carbody'].' '.$result['fronttiresize'].' '.$result['reartiresize'].' '.$result['vin'].'
';
{
"status": "0",
"msg": "ok",
"result": {
"manufacturer": "上海大众",
"brand": "斯柯达",
"cartype": "明锐",
"name": "1.6 手自一体 逸仕版",
"yeartype": "2007",
"environmentalstandards": "国3",
"comfuelconsumption": "8",
"engine": "1.6L L4 105PS 多点电喷汽油发动机",
"gearbox": "手自一体变速器(AMT)",
"drivemode": "前置前驱",
"carbody": "硬顶 五门 5",
"fronttiresize": "205/55 R16 16英寸 铝合金",
"reartiresize": "205/55 R16 16英寸 铝合金",
"vin": "LSVAL41Z882104202"
}
}
| 代号 | 说明 |
|---|---|
| 201 | VIN为空 |
| 202 | VIN不正确 |
| 210 | 没有信息 |
| 代号 | 说明 |
|---|---|
| 101 | APPKEY为空或不存在 |
| 102 | APPKEY已过期 |
| 103 | APPKEY无请求此数据权限 |
| 104 | 请求超过次数限制 |
| 105 | IP被禁止 |
| 106 | IP请求超过限制 |
| 107 | 接口维护中 |
| 108 | 接口已停用 |
| 名称 | 权限 | 价格 | |
|---|---|---|---|
| 免费套餐 | 5次 | 免费 | |
| Level1 | 3000次 | 200.00元 | |
| Level2 | 5000次 | 300.00元 | |
| Level3 | 10000次 | 580.00元 |
开通账号: