A small, private IP-to-region lookup service that powers anonymous location insights across Erpli products. Country, state and city only. Nothing is stored.
Addresses are resolved in memory and discarded. No logs, no history.
Returns country, state and city. Never coordinates, never GPS.
Lookups run against a local DB-IP Lite database. No third-party calls.
Request
POST /geo/
X-Geo-Key: <XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX>
Content-Type: application/json
{ "ip": "203.0.113.42" }
Response
{
"country": "IN",
"state": "Delhi",
"city": "New Delhi"
}
| Code | Meaning |
|---|---|
200 | Lookup succeeded. Fields may be empty if the IP isn't in the database. |
400 | Missing or malformed IP address. |
401 | Missing or invalid X-Geo-Key header. |
405 | Only POST is accepted. |