配件OE信息查询

配件OE信息查询

  • 211
  • 211
查询一个配件OE信息,以及对应的销售车型、EPC车型、替换件、品牌件等信息。
400.00320.00/10000次
申请就送10次
2件8折   3件7折
https://api.jisuepc.com/parts/brand
JSON
GET POST
https://api.jisuepc.com/parts/brand?appkey=yourappkey

请求参数:

API在线测试
参数名称类型必填说明

返回参数:

参数名称类型说明
brandid int 品牌ID
name string 品牌名称
initial string 首字母

请求代码:

查看代码
<?php

require_once 'curl.func.php';

$appkey = 'your_appkey_here';//你的appkey
$url = "https://api.jisuepc.com/parts/brand?appkey=$appkey";
$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['0'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}
foreach($result['1'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}
foreach($result['2'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}
foreach($result['3'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}
foreach($result['4'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}
foreach($result['5'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}
foreach($result['6'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}
foreach($result['7'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}
foreach($result['8'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}
foreach($result['9'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}
foreach($result['10'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}
foreach($result['11'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}
foreach($result['12'] as $key=>$val)
{
	echo $val['brandid'].' '.$val['name'].' '.$val['initial'];
}

                                

JSON返回示例 :

{
	"status":0,
	"msg":"ok",
	"result":[
		{
			"brandid":1,
			"name":"奥迪",
			"initial":"A"
		},
		{
			"brandid":21,
			"name":"宾利",
			"initial":"B"
		},
		{
			"brandid":15,
			"name":"保时捷",
			"initial":"B"
		},
		{
			"brandid":13,
			"name":"标致",
			"initial":"B"
		},
		{
			"brandid":11,
			"name":"比亚迪",
			"initial":"B"
		},
		{
			"brandid":10,
			"name":"宝马",
			"initial":"B"
		},
		{
			"brandid":9,
			"name":"奔驰",
			"initial":"B"
		},
		{
			"brandid":7,
			"name":"本田",
			"initial":"B"
		},
		{
			"brandid":28,
			"name":"长安汽车",
			"initial":"C"
		},
		{
			"brandid":30,
			"name":"长城",
			"initial":"C"
		},
		{
			"brandid":36,
			"name":"大众",
			"initial":"D"
		},
		{
			"brandid":51,
			"name":"丰田",
			"initial":"F"
		},
		{
			"brandid":52,
			"name":"福特",
			"initial":"F"
		}
	]
}
                                

API错误码:

代号说明
201 零件ID和零件号不能都为空
202 配件ID错误
220 没有信息

系统错误码:

代号说明
101 APPKEY为空或不存在
102 APPKEY已过期
103 APPKEY无请求此数据权限
104 请求超过次数限制
105 IP被禁止
106 IP请求超过限制
107 接口维护中
108 接口已停用
计次套餐套餐规格价格
免费套餐 10次 0元 ≈0元/次
Level1 10000次 320元 ≈0.032元/次
Level2 20000次 624元 ≈0.0312元/次
Level3 50000次 1520元 ≈0.0304元/次
Level4 100000次 2760元 ≈0.0276元/次
×