<?php require_once 'curl.func.php'; $appkey = 'your_appkey_here';//你的appkey $classid = '466'; $carid = '66602'; $vin = ''; $url = "https://api.jisuapi.com/epc2/parts?appkey=$appkey&classid=$classid&carid=$carid&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['vin']; foreach($result['list'] as $key=>$val) { echo $val['0'].' '.$val['partsid'].' '.$val['name'].' '.$val['number'].' '.$val['price'].' '.$val['remark'].' '.$val['marketprice']; }