$today = date("Y-m-d");
$ch = curl_init();
curl_setopt_array($ch, array( 
CURLOPT_URL => "https://tracking.dpd.de/rest/matchcodes/2406015903/401606002148/?dateFrom=2017-12-01&dateTo=$today&limit=10&messageLanguage=en_US&offset=0",
 CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_RETURNTRANSFER => true));
$exe = curl_exec($ch);
if($exe){ 
$exe = json_decode($exe); 
if($exe && isset($exe->matchcodesResponse->matchCodes[0])){  
$parcel = $exe->matchcodesResponse->matchCodes[0]->parcelLabelNumber; 
echo $parcel; // 01505171233643
}}