I already have the google api key and want to know if it is possible to get country name of user(not share location) without any account from google Api
i think it is possible from user ip address but don't know how
You can try like this, No need for Google Api
Check here : https://freegeoip.net
$geo_location = file_get_contents('http://freegeoip.net/json/'.$_SERVER['HTTP_CLIENT_IP']);
print_r($geo_location);
Hope this will help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With