@radzor/ip-geolocation
Look up geographic data from IP addresses using the free ip-api.com service. Get country, city, coordinates, timezone, ISP, and organization info for single or bulk IP lookups.
Securityv0.1.0typescriptpythonServeripgeolocationgeolocationcountrysecurityby Radzor
Install
View source on GitHub →$npx radzor@latest add ip-geolocation
⚠ Constraints: Uses the free ip-api.com service which is limited to 45 requests/minute for non-commercial use (HTTP only). For production, consider a paid plan or self-hosted MaxMind database. Bulk lookups are limited to 100 IPs per batch. Results are cached in-memory.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| cacheTtl | number | 3600000 | Cache TTL in milliseconds for lookup results (default: 1 hour). |
| lang | string | en | Language code for localized city/region names (e.g. 'en', 'de', 'fr', 'ja'). |
cacheTtlnumber
Cache TTL in milliseconds for lookup results (default: 1 hour).
default: 3600000
langstring
Language code for localized city/region names (e.g. 'en', 'de', 'fr', 'ja').
default: en
Outputs
| Name | Type | Description |
|---|---|---|