IP to Location using Javascript

后端 未结 13 1409
死守一世寂寞
死守一世寂寞 2020-11-27 03:46




        
13条回答
  •  余生分开走
    2020-11-27 04:12

    you can use ipinfodb after getting your api key you can query for a location against a specific ip like this http://api.ipinfodb.com/v2/ip_query.php?key=" + apiKey + "&ip=" + ip + "&output=xml you can then then extract the location from the xml response

提交回复
热议问题