首页 交通出行 汽车配件EPC查询精简版
汽车配件EPC查询精简版

汽车配件EPC查询精简版

  • 212
  • 201
通过功能分组的方式检索一个车型的EPC信息。可以通过车型ID或者VIN进行查询。
500.00/10000次
申请就送10次
https://api.jisuapi.com/epc3/class
JSON
GET POST
https://api.jisuapi.com/epc3/class?carid=186751&appkey=yourappkey

请求参数:

在线测试
参数名称类型必填说明
carid int 车型ID

返回参数:

参数名称类型说明
classid int 分类ID
name string 分类名称
isend int 是否是最后一级

请求代码:

查看代码
<?php

require_once 'curl.func.php';

$appkey = 'your_appkey_here';//你的appkey
$carid = '';
$url = "https://api.jisuapi.com/epc3/class?appkey=$appkey&carid=$carid";
$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'];

foreach($result as $key=>$val)
{
	echo $val['classid'].' '.$val['name'];	
}
                    

JSON返回示例 :

{
    "status": 0,
    "msg": "ok",
    "result": [
        {
            "classid": 1,
            "name": "车身部分",
            "list": [
                {
                    "classid": 16,
                    "name": "前翼子板",
                    "isend": 0,
                    "list": [
                        {
                            "classid": 47,
                            "name": "左前翼子板",
                            "isend": 1
                        },
                        {
                            "classid": 48,
                            "name": "右前翼子板",
                            "isend": 1
                        }
                    ]
                },
                {
                    "classid": 18,
                    "name": "前门及其构件",
                    "isend": 0,
                    "list": [
                        {
                            "classid": 35,
                            "name": "左前门钣金件",
                            "isend": 1
                        },
                        {
                            "classid": 36,
                            "name": "左前门玻璃及其构件",
                            "isend": 1
                        }
                        {
                            "classid": 43,
                            "name": "右前门后视镜|下视镜",
                            "isend": 1
                        },
                        {
                            "classid": 44,
                            "name": "右前门金属构件",
                            "isend": 1
                        },
                        {
                            "classid": 45,
                            "name": "右前门内饰",
                            "isend": 1
                        },
                        {
                            "classid": 46,
                            "name": "右前门外饰",
                            "isend": 1
                        }
                    ]
                },
                {
                    "classid": 19,
                    "name": "控制操纵台",
                    "isend": 0,
                    "list": [
                        {
                            "classid": 50,
                            "name": "仪表台",
                            "isend": 1
                        },
                        {
                            "classid": 51,
                            "name": "操纵台",
                            "isend": 1
                        }
                    ]
                },
                {
                    "classid": 20,
                    "name": "座椅及其构件",
                    "isend": 0,
                    "list": [
                        {
                            "classid": 69,
                            "name": "驾驶员座椅",
                            "isend": 1
                        },
                        {
                            "classid": 70,
                            "name": "副驾驶员座椅",
                            "isend": 1
                        },
                        {
                            "classid": 71,
                            "name": "后排座椅",
                            "isend": 1
                        }
                    ]
                },
                {
                    "classid": 21,
                    "name": "车身构件",
                    "isend": 0,
                    "list": [
                        {
                            "classid": 75,
                            "name": "车身总成",
                            "isend": 1
                        },
                        {
                            "classid": 76,
                            "name": "车架|地板",
                            "isend": 1
                        },
                        {
                            "classid": 92,
                            "name": "后围",
                            "isend": 1
                        }
                    ]
                },
                {
                    "classid": 22,
                    "name": "后门及其构件",
                    "isend": 0,
                    "list": [
                        {
                            "classid": 78,
                            "name": "左后门内饰",
                            "isend": 1
                        },
                        {
                            "classid": 79,
                            "name": "左后门外饰",
                            "isend": 1
                        }
                    ]
                },
                {
                    "classid": 23,
                    "name": "行李箱及尾门",
                    "isend": 0,
                    "list": [
                        {
                            "classid": 101,
                            "name": "后行李箱及行李箱盖",
                            "isend": 1
                        }
                    ]
                }
            ]
        }        
    ]
}
                    

API错误码:

代号说明
201 分组ID错误
202 车型ID错误
203 VIN不正确
204 VIN无法锁定车型
205 图片ID错误
220 没有信息

系统错误码:

代号说明
101 APPKEY为空或不存在
102 APPKEY已过期
103 APPKEY无请求此数据权限
104 请求超过次数限制
105 IP被禁止
106 IP请求超过限制
107 接口维护中
108 接口已停用
计次套餐套餐规格价格
试用套餐 10次 0.00 元  ≈0元/次
Level1 10000次 500.00 元  ≈0.05元/次
Level2 20000次 840.00 元  ≈0.042元/次
Level3 50000次 1800.00 元  ≈0.036元/次
Level4 100000次 3000.00 元  ≈0.03元/次

活动推荐ACTIVITY 更多

  • orc活动

其它推荐RECOMMENDED DATA 更多