Look up where a request came from — country, city, coordinates and network operator.

1import { getCurrentUserGeodata, getUserGeodata } from "apiker";
2
3const here = await getCurrentUserGeodata(); // the caller
4const other = await getUserGeodata("8.8.8.8"); // any address
5
6console.log(here.city, here.country, here.isp);

Lookups go to the public ip-api.com service, so no credentials are needed. An empty object comes back when there is no address to resolve.

For a country code alone, read the CF-IPCountry header instead — Cloudflare sets it on every request, so there is no external call and no latency.

The admin panel uses these lookups to enforce the ISP and city whitelists that gate access to it.