Route traffic by country, state & city using redirects or popups. Learn More ->
January 1, 2020

How to get a visitor's city from IP address?

AE

How to get a visitor's city from IP address?

GT
Answer
by Geo Targetly

You can get a visitor's city from their IP address by using an IP geolocation API service.


This service will lookup the visitor's IP address against a database of IP addresses and locations to extract the visitor's city.

Geo Targetly provides both a paid and free IP geolocation API that you can use to get visitor city in your website.

Tags:
visitor, city, ip address, geolocation

"Hands down one of the best marketing tools you are not using"

Chad T. - Web & Digital Media Director

Get started in minutes
No credit card required
Free on-boarding support
Your Privacy

We uses cookies to improve your experience on our site, analyse site traffic and to show you relevant content. By using our website, you consent to our use of cookies. For more information please, see our Privacy Policy

ACCEPT