Hat jemand eine Ahnung, wieso bei
nichts ausgegeben wird?
Der Link ist richtig.
Code
$link = 'https://ipapi.co/' . $ip . '/json/';
$details = json_decode(file_get_contents($link));
$country = $details->country_name;
$country_code = $details->country;
$city = $details->city;
$org = $details->org;
$timezone = $details->time_zone;
$continent = $details->continent_code;
$subd = $details->Region;