Web Tools location

API Provider


Developer links

IP to Location API
IP to Location API

Locate and identify website visitors' info (latitude, logintude, connection, currency, timezone etc...) by IP address.

Ever noticed how often apps and service providers ask your permission to get info to open up some of their functions? That’s because they use your geolocation -the exact place you’re standing right now with your device in your hand connected to the internet- to offer their service.

IP to Location API is a REST API which provides the essential data from any IP address in JSON format over HTTPS such as:

  • Country / City / State / Continent
  • Latitude and Longitude
  • Local currency
  • Internet Service Provider (ISP) lookup
  • Country calling code and Time Zone

How do I use IP to Location API?

Below is a sample code querying for IP address

curl --location --request \
GET '' \
--header 'apikey: YOUR API KEY'

Check out the response below

    "ip": "",
    "type": "ipv4",
    "country_code": "BD",
    "country_name": "Bangladesh",
    "region_name": "Dhaka",
    "city": "Dhaka",
    "latitude": 23.7104,
    "longitude": 90.40744,
    "continent_code": "AS",
    "continent_name": "Asia",
    "is_eu": false,
    "connection": {
        "asn": 58715,
        "isp": "Earth Telecommunication ( pvt ) Limited"
    "location": {
        "capital": "Dhaka",
        "native_name": "Bangladesh",
        "flag": "",
        "top_level_domains": [
        "calling_codes": [
    "currencies": [
            "name": "Bangladeshi taka",
            "code": "BDT",
            "symbol": "৳"
    "timezones": [

Use cases for IP to Location API

Knowing from where people access you extends your brand’s reach through the market and helps you create a more accurate customer base. You can think of any service to relate with a user’s location information but here are the most popular location-based use cases:

  • For geo-targeting your customers by content personalization
  • For any service that sends location-based push notifications
  • For mapping any social experiences through photos, trips, check-ins etc.
  • For using targeted ads and any other location-based marketing purposes
  • For any kind of services offering solutions for local community needs such as healthcare, municipality, social services, transportation
  • For detecting any abnormal activities within an area worth considering in terms of security concerns
  • For collecting user behavior data on specific purposes such as a new investment for businesses

How secure is this service?

Prompt API is a legal entity in European Union and regulated by its laws. We never store any sensitive information on our servers and fully respect your privacy.

Is it free?

IP to Location API is a paid service but we have a free plan that will be more than enough for you to test its functionalities and see if it works for your needs.

How does Prompt API's pricing work?

Our subscriptions are tiered. We offer a monthly subscription scheme and you decide which tier works for you the best. No strings attached.

Can I cancel/upgrade/downgrade at any time?

Sure you can. You can cancel your subscription or upgrade/downgrade yourself, anytime without any restrictions.

Ultra fast
Competitive price

Ready to try it out?

We offer a free plan. No credit cards required!

or see documentation

See Also

View All