Get User's Location (Country, State, City) with Free Unlimited API Access | PHP & JavaScript

preview_player
Показать описание
Free location finders have limits regarding API requests. In this video I am going to show you how can you use an API absolutely free and for unlimited requests. Without limits this API is fast and is absolutely free and unlimited. It is also accurate in results. You can get a lot of user location data. You can use this API with JavaScript and PHP. We can get user's IP address, Country, Country Code, State, State Code, City, Continent Code, Longitude, Latitude, Timezone, Currency Code, Currency Symbol, and more. We can even convert currency with this API. To use this API, search for geoplugin and go to its website. We need to include a script in our site. After we include it, we have few functions at our command like:

geoplugin_request
geoplugin_countryName
geoplugin_countryCode
geoplugin_regionName
geoplugin_regionCode
geoplugin_city
geoplugin_continentCode
geoplugin_longitude
geoplugin_latitude
geoplugin_timezone
geoplugin_currencyCode
geoplugin_currencySymbol_UTF8

And to convert currency, we can set default currency for the API and use available currency converter function to convert currency using geoplugin_currencyConverter. Default base currency is USD. We can change that by adding a base_currency parameter in API URl.

So this is a free plugin or API without any limits, that you can use to show or get a lot of information about user location. Use this API and let me know your thoughts. If you have a better alternative, share in comments.

This API answers following questions:
How to get user's IP Address?
How to get user's Country?
How to get user's Country Code?
How to get user's region?
How to get user's region code?
How to get user's city?
How to get user's state?
How to get user's continent?
How to get user's longitude latitude?
How to get user's timezone?
How to get user's currency name and symbol?
How to convert currency free?

Also have a look at this:
Get User Location (Country, State, City) for Free | Multiple Programming Languages Support

Thank You!
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT

#Location #API #GeoLocation #JavaScript #JS #PHP #GeoPlugin #CurrencyConverter #TimeZone #WebStylePress #webdevelopment
Рекомендации по теме
Комментарии
Автор

Thank you, at last a useful video that shows a way to do something I am trying to do.

apntv
Автор

I literary had to duff my hat after watching this concise and powerful tutorial. Thanks a lot

biwxodv
Автор

when i deploy it on server, it is always return false, could i have some ideal for it?

JinSheng
Автор

Thanks sir. I will give due credit in our project. However, how do I get area code for a country, for telephone numbers for example.

mirzashah
Автор

It is slowing down may page load. Anyone experience this? I tried it in shopify

mysterymosaichub
Автор

Can I use this API free unlimited for a website

enoshkumar
visit shbcf.ru