A keyless AbstractAPI alternative for IP geolocation

AbstractAPI's IP geolocation needs an API key and sign-up even on the free tier. countries.dev resolves an IP to its country with no key at all — and returns the full country record.

Back

AbstractAPI offers IP geolocation among its API suite, but every call needs an API key and a sign-up, even on the free plan. countries.dev resolves IP-to-country with no key and nothing to register for.

IP → country, no key

curl https://countries.dev/ip          # the caller's own IP
curl https://countries.dev/ip/8.8.8.8  # any IP
{ "ip": "8.8.8.8", "countryCode": "US", "country": { "name": "United States of America", "flag": "🇺🇸" } }

No API key in the query string, no account — and CORS is open so it runs from the browser. The full country record is attached, and you can POST up to 100 IPs at once.

Being straight about scope

countries.dev is country level — it doesn't do city, ISP/ASN or VPN/threat flags. If you need those, AbstractAPI's paid tiers cover them. For free, keyless country-level lookups, countries.dev is the simpler swap.

Switching over

Drop the api_key parameter, call GET /ip (or /ip/{address}) and read countryCode. That's the whole migration.

See the IP geolocation API page for a live demo, or the docs.

Written by

Dov Azencot

At

Fri Jun 26 2026