ip.codebros.czv1

Fast IP geolocation API.

Look up IPv4 and IPv6 locations with simple API key auth, backed by Better Auth.

Example request
GET /api/lookup
Returns city, region, country, latitude, longitude, and more.
curl -H "Authorization: Bearer $IP_API_KEY" \
  "https://ip.codebros.cz/api/lookup?ip=1.1.1.1"

Rate limits are enforced per API key.

API key auth
Issue keys per user, rotate anytime, and keep access scoped to geo:read by default.
Fast lookups
Cached geolocation lookups with automatic rate limiting and efficient response times.
Vercel-ready
Runs as Next.js API routes on Vercel with Neon Postgres for auth storage.