配件OE信息查询

配件OE信息查询

  • 211
  • 211
查询一个配件OE信息,以及对应的销售车型、EPC车型、替换件、品牌件等信息。
1.00/10次
https://api.jisuepc.com/parts/brand
JSON
GET POST
https://api.jisuepc.com/parts/brand

请求参数:

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

返回参数:

参数名称类型说明
brandid int 品牌ID
name 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'];
print_r($result);
                                

JSON返回示例 :

{
	"status":0,
	"msg":"ok",
	"result":[
		{
			"name":"奥迪",
			"brandid":1
		},
		{
			"name":"阿斯顿·马丁",
			"brandid":2
		},
		{
			"name":"阿尔法·罗密欧",
			"brandid":3
		},
		{
			"name":"本田",
			"brandid":7
		},
		{
			"name":"别克",
			"brandid":8
		},
		{
			"name":"奔驰",
			"brandid":9
		},
		{
			"name":"宝马",
			"brandid":10
		}
	]
}
                                

API错误码:

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

系统错误码:

代号说明
101 APPKEY为空或不存在
102 APPKEY已过期
103 APPKEY无请求此数据权限
104 请求超过次数限制
105 IP被禁止
106 IP请求超过限制
107 接口维护中
108 接口已停用
计次套餐套餐规格价格
试用套餐 10次 1.00元 ≈0.1元/次
Level1 10000次 1500.00元 ≈0.15元/次
Level2 20000次 2600.00元 ≈0.13元/次
Level3 50000次 6000.00元 ≈0.12元/次
Level4 100000次 10000.00元 ≈0.1元/次
×