Geocode IP addresses in Stata
geocode_ip
: Geocode IP addresses in Stata
clear
input str20 ip
104.79.139.192
175.203.224.172
end
geocode_ip ip, clear
list ip country_name zip_code
This do file has an example that merges the new data back into the original dataset.
geocode_ip
varname [if] [in], clear [sleep(0.4)]
net install geocode_ip, from(https://github.com/sergiocorreia/geocode_ip/raw/master/src/)