1
Have an Account
Create your Ip2Geo account or login to your existing account if you haven’t already. You can do that by visiting the Ip2Geo Dashboard. Once logged in, select the project you want to add a website to from your dashboard.
2
Add a Website
Navigate to the Websites section within your project. Click on “Add Website”, enter your domain (e.g.
myapp.com), and confirm. A public key (i2g_pk_…) will be generated automatically.3
Authenticate Your Project
Use the public key to authenticate your project when using the SDK or making direct API calls from your frontend.
Public keys are safe to expose in client-side code. They only work from the domain they are registered to, so even if someone copies the key, it won’t work from a different origin.