This is JSON data
{"clanSearch":{"results":[{"tag":"#G90G8RCU","name":"codex2015.asia","type":"open","locationName":"Indonesia","clanBadgeImg":{"s":"https://api-assets.clashofclans.com/badges/70/FDduXa8Fmz_KmJyPsFTTms00YDykkmlZRu4ev-juBQQ.png, https://api-assets.clashofclans.com/badges/200/FDduXa8Fmz_KmJyPsFTTms00YDykkmlZRu4ev-juBQQ.png 2x","m":"https://api-assets.clashofclans.com/badges/200/FDduXa8Fmz_KmJyPsFTTms00YDykkmlZRu4ev-juBQQ.png, https://api-assets.clashofclans.com/badges/200/FDduXa8Fmz_KmJyPsFTTms00YDykkmlZRu4ev-juBQQ.png 2x","l":"https://api-assets.clashofclans.com/badges/200/FDduXa8Fmz_KmJyPsFTTms00YDykkmlZRu4ev-juBQQ.png","xl":"https://api-assets.clashofclans.com/badges/200/FDduXa8Fmz_KmJyPsFTTms00YDykkmlZRu4ev-juBQQ.png"},"warFrequency":"always","clanLevel":1,"clanPoints":6867,"warWins":0,"requiredTrophies":0,"members":12}]}}
Here is the link
and my PHP code
$json = json_decode(file_get_contents("https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanSearch&name=codex2015.asia"));
$info = "$json->{'tag'}";
echo $info;
In this case, I want to get tag data, but if I run this script I get nothing.