Our API is a alternative way to access our convertion services directly through HTTP requests. Its recommended to use the SDK unless your environment does not support npm packages. We have simplified the API to make it easy to use with clear endpoints and consistent request/response structures.Documentation Index
Fetch the complete documentation index at: https://docs.ip2geo.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
All API requests require thex-api-key header. You can use either key type:
- Secret key (
i2g_sk_…) — for server-side requests. Generated from the Secret Keys section in your dashboard. - Public key (
i2g_pk_…) — for client-side (browser) requests. Generated from the Websites section. Must include a validOriginheader matching the registered domain.
When to Use the API Instead of the SDK?
- Environment Limitations: If your environment doesn’t support npm (e.g., a non-JavaScript runtime).
- Direct Control: If you need direct control over HTTP requests for specific use cases that the SDK doesn’t cover.
- Lightweight Needs: If you want to avoid adding an additional dependency to your project.