Hi Bubblers, weâve released a free plugin.
No sign up or API keys required, you donât need to ask for the userâs permission & best request limit we found. For example Geo.ipify. offers only 1000 queries per month. With Freegeoip youâre allowed up to 50,000 queries per hour! We used a service from Cloudflare to get the userâs IP, doesnât seem to be blocked by client and is accurate even when using vpns.
$.get('https://1.1.1.1/cdn-cgi/trace', function (data) {
const regex = /^(?:ip)=(.*)$/gm;
let ip = "";
match = regex.exec(data);
while (match != null) {
ip = match[1];
match = regex.exec(data)
}
$.getJSON(`https://freegeoip.live/json/${ip}`, function (data) {
let response = {
"_p_City": data.city,
"_p_Country Code": data.country_code,
"_p_Country Name": data.country_name,
"_p_IP": data.ip,
"_p_Latitude": data.latitude,
"_p_Longitude": data.longitude,
"_p_Metro Code": data.metro_code,
"_p_Region Code": data.region_code,
"_p_Region Name": data.region_name,
"_p_Timezone": data.time_zone,
"_p_Zip Code": data.zip_code
};
instance.publishState('data', response)
})
})
We made another plugin reusing this code to calculate sun position. The element returns simple yes/no state, helpful for designing automatic dark/light UI.
Hi Bubblers, some good news here!
This plugin has been acquired by Zeroqode a while ago, and in a recent update become even more useful, getting more states to be used.
To check changes, please upgrade your plugin to the latest version (Version 1.13.0: Added more states) and give it a try.
In case there will be any plugin-related questions, the Zeroqode Support Team will be glad to help you
No, IP Geolocation Plugin is using https://ipapi.co/ to fetch the data via API.
The Free Plan on https://ipapi.co/ allows you to pull up to 1,000 requests per day so 30,000 requests per month in total. If you require more than 1000 requests per day we suggest getting one of the paid plans which allows more versatility.
Weâre truly sorry to learn about the challenges youâre encountering with our plugin. To better assist you, could you please describe the specific issue youâre facing? Also, it would be helpful if you could check your browser console for any error messages or alerts.
One possible cause for the problem might be exceeding the daily request limit, which is currently set at 1000 requests per day. To overcome this limitation, we suggest obtaining a paid API Access key directly from ipapi.co. For detailed instructions on how to acquire and integrate this key into your application, please refer to our documentation here: IP Geolocation Plugin Documentation.
We hope this guidance is useful to you, please let us know about your findings.
Thank you for reaching out and sharing your suggestion.
The current plugin is designed to work specifically with ipapi.co. Integrating with ip2location would require adapting to a different API architecture. Nevertheless, Iâve noted your idea of incorporating ip2location.io into this or a future plugin.
Itâs worth mentioning that ip2location.io offers the same number of free API queries per month as the ipapi service we currently use.
Hi @ZeroqodeSupport,
Is this plugin still functional?
I cannot seem to make it work and the demo is also not working. Though the map updates to my approximate location.
I confirmed my IP by navigating to ipapi.co, that shows my IP just fine.
We just checked the live demo of the IP geolocation plugin and itâs working as expected. You can refer to the demo editor here: Appkit | Bubble Editor
It seems youâre having some trouble getting the plugin to work fully. Here is plugin documentation: IP Geolocation
Weâd be happy to help troubleshoot this further. Could you describe in more detail the issues youâre encountering? Any error messages or unexpected behavior would be helpful information.
Thanks for your response.
I have gone through your documentation and I cannot figure out why I cannot see my IP with your app.
Here is some screenshots of my setup:
To confirm, are the screenshots you sent showing your experience with our live demo, or your own Bubble application using our plugin?
For the live demo to function properly, it wonât require you to enter an API access key. However, if youâre using the plugin within your own Bubble app, youâll need to enter an API access key from Ipapi and enter it into the designated field:
The screenshots are from your live demo, but mine is identical.
Do I need an API key from Ipapi if I want to use the free version? Since I cannot register without selecting a paid plan.
Thank you for the information. Weâve checked, and the plugin should work without the API keys as well.
Please note that in some cases, the current userâs IP might not be returned due to browser/security settings, third-party browser extensions, or VPN blocking services.
Could you please let us know which browser you are using? Additionally, please try testing in Chrome incognito mode to see if the issue persists.