https://qiita.com/hotstaff/items/e116f77403cab01e585b
下記サイトにログインして
https://login.yahoo.co.jp/config/login
アプリケーション登録し下記を取得
アプリケーションID:
dj0zaiZpPWNBejA0S1ZhVFlFSiZzPWNvbnN1bWVyc2Vjcxxxxx
シークレット:
0c71dd2161531af936a32246b15fe7c2xxxxx
//URLの直接のアドレスを設定するhttps://は含まない!!
$url="shopping.yahooapis.jp/ShoppingWebService/V3/itemSearch?appid=アプリケーションID&jan_code=バーコード&results=1";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
// 転送を実行
$json = curl_exec($ch);